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

            m_widgetInPropertyGrid = value ? widget : null;
            HDesigner.CallShowProperties(m_widgetInPropertyGrid);
        }
예제 #2
0
 protected virtual void OnFinishDesign()
 {
     if (m_ctrl != null)
     {
         m_ctrl.OnFinishDesign();
     }
     HDesigner.CallHideProperties(this);
 }
예제 #3
0
 private void hostToolbox1_DoubleClick(object sender, EventArgs e)
 {
     if (hostToolbox1.SelectedItem != null)
     {
         var item = (IToolboxItem)hostToolbox1.SelectedItem.Tag;
         HDesigner.CallUseToolBoxItem(item);
     }
 }
예제 #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);
        }
예제 #5
0
 protected void RefreshList()
 {
     HDesigner.CallChangedWidget(this, HDesigner.WidgetPart.Data);
 }