Пример #1
0
 private void Ctrl_TreeElements_e_AfterCreateElement(object sender, TreeViewEventArgs e)
 {
     if (ctrl_TreeElements.p_SelectedElement != null && ctrl_TreeElements.p_SelectedElement.p_Element != null)
     {
         UC_ElementsPropertyPanel panel = m_PanelManager.f_SetElement <UC_ElementsPropertyPanel>();
         panel.p_EditableElement = ctrl_TreeElements.p_SelectedElement;
         panel.p_IsReadOnly      = false;
     }
 }
Пример #2
0
        private void f_LoadCustomValues()
        {
            Control ctrl = null;

            if (p_EditableElement.p_Element.f_IsImage())
            {
                ctrl = m_PanelManager.f_SetElement <UC_EditorImage>();
            }
            else if (p_EditableElement.p_Element.f_IsText())
            {
                ctrl = m_PanelManager.f_SetElement <UC_EditorTextual>();
            }
            if (ctrl != null)
            {
                ctrl.Dock = DockStyle.Top;
                p_EditPanel.f_SetElement(p_EditableElement.p_Element);
                p_IsReadOnly = true;
            }
        }