private void ShowWidgetProperties(IWidget widget) { bool value = EnabledDesign && IsContentVisible; m_widgetInPropertyGrid = value ? widget : null; HDesigner.CallShowProperties(m_widgetInPropertyGrid); }
protected virtual void OnFinishDesign() { if (m_ctrl != null) { m_ctrl.OnFinishDesign(); } HDesigner.CallHideProperties(this); }
private void hostToolbox1_DoubleClick(object sender, EventArgs e) { if (hostToolbox1.SelectedItem != null) { var item = (IToolboxItem)hostToolbox1.SelectedItem.Tag; HDesigner.CallUseToolBoxItem(item); } }
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); }