//------------------------------------------------------- private DesignFrame FindDesignerFrame(string text) { Content[] documents = dockManager.Documents; foreach (Content C in documents) { DesignFrame frm = C as DesignFrame; // ERROR HERE if (frm != null) { if (frm.FileName == text) { return frm; } } } return null; } //------------------------------------------------------- private void dockManager_ActiveDocumentChanged(object sender, EventArgs e) { DesignFrame df = dockManager.ActiveDocument as DesignFrame; // ERROR HERE if (df != null && m_PropertyWindow != null) { df.UpdatePropertyWindow(); } } //------------------------------------------------------- private Content GetContentFromPersistString(string persistString) { if (persistString == typeof(PropertyWindow).ToString()) return m_PropertyWindow; // ERROR HERE else if (persistString == typeof(Toolbox).ToString()) return m_toolbox; else return null; }
Cannot convert type 'WeifenLuo.WinFormsUI.Content' to 'SharpDesignerTest.Forms.DesignFrame' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion<br /> <br /> <br /> Cannot convert type 'WeifenLuo.WinFormsUI.Content' to 'SharpDesignerTest.Forms.DesignFrame' via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion<br /> <br /> Cannot implicitly convert type 'VBDevelop.NET.Forms.PropertyWindow' to 'WeifenLuo.WinFormsUI.Content'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)