Exemple #1
0
        private void ShowWidgetProperties(IWidget widget)
        {
            bool value = EnabledDesign && IsContentVisible;

            m_widgetInPropertyGrid = value ? widget : null;
            HDesigner.CallShowProperties(m_widgetInPropertyGrid);
        }
Exemple #2
0
 protected virtual void OnFinishDesign()
 {
     if (m_ctrl != null)
     {
         m_ctrl.OnFinishDesign();
     }
     HDesigner.CallHideProperties(this);
 }
Exemple #3
0
 private void hostToolbox1_DoubleClick(object sender, EventArgs e)
 {
     if (hostToolbox1.SelectedItem != null)
     {
         var item = (IToolboxItem)hostToolbox1.SelectedItem.Tag;
         HDesigner.CallUseToolBoxItem(item);
     }
 }
Exemple #4
0
        private void UpdateEnablingAndToolbars()
        {
            UpdateToolbarVisibility();
            bool value = EnabledDesign && IsContentVisible;

            //btnShowProperties.Enabled = btnSaveDesign.Enabled = btnShowToolbox.Enabled = btnSettings.Enabled = EnabledDesign;
            HDesigner.CallShowInToolbox(value ? this : null);
            if (value && IsContentVisible)
            {
                ShowWidgetProperties(SelectedWidget);
            }
            MainWindow.Instance.UpdateFrameEnabling(this);
        }
 protected void RefreshList()
 {
     HDesigner.CallChangedWidget(this, HDesigner.WidgetPart.Data);
 }