コード例 #1
0
ファイル: DockAreasEditor.cs プロジェクト: rudybear/moai-ide
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider sp, object value)
        {
            if (m_ui == null)
                m_ui = new DockAreasEditor.DockAreasEditorControl();

            m_ui.SetStates((DockAreas)value);

            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)sp.GetService(typeof(IWindowsFormsEditorService));
            edSvc.DropDownControl(m_ui);

            return m_ui.DockAreas;
        }
コード例 #2
0
ファイル: DockAreasEditor.cs プロジェクト: slagusev/moai-ide
		public override object EditValue(ITypeDescriptorContext context, IServiceProvider sp, object value)
		{
			if (m_ui == null)
				m_ui = new DockAreasEditor.DockAreasEditorControl();

			m_ui.SetStates((DockAreas)value);

            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)sp.GetService(typeof(IWindowsFormsEditorService));
			edSvc.DropDownControl(m_ui);

			return m_ui.DockAreas;
		}