Esempio n. 1
0
 public PanelItem(OptionDialog parent, int index, Image image, string caption)
 {
     _parent      = parent;
     _index       = index;
     _image       = image;
     _caption     = caption;
     this.Size    = _defaultSize;
     this.TabStop = true;
     AdjustBackColor();
 }
Esempio n. 2
0
 public static CommandResult OpenOptionDialog(ICommandTarget target)
 {
     IPoderosaMainWindow window = CommandTargetUtil.AsWindow(target);
     OptionDialog dlg = new OptionDialog();
     if (dlg.ShowDialog(window.AsForm()) == DialogResult.OK) {
         return CommandResult.Succeeded;
     }
     else
         return CommandResult.Cancelled;
 }
Esempio n. 3
0
 public OptionDialog()
 {
     _instance = this;
     //
     // Windows フォーム デザイナ サポートに必要です。
     //
     InitializeComponent();
     IOptionPanelExtension[] extps = (IOptionPanelExtension[])OptionDialogPlugin.Instance.PoderosaWorld.PluginManager.FindExtensionPoint(OptionDialogPlugin.OPTION_PANEL_ID).GetExtensions();
     _entries = new PanelEntry[extps.Length];
     for (int i = 0; i < extps.Length; i++)
         _entries[i] = new PanelEntry(i, extps[i]);
     InitItems();
     FillText();
     Debug.Assert(_entries.Length == _categoryItems.Controls.Count); //拡張と同数のパネルがあること
 }
Esempio n. 4
0
 public OptionDialog()
 {
     _instance = this;
     //
     // Windows �t�H�[�� �f�U�C�i �T�|�[�g�ɕK�v�ł��B
     //
     InitializeComponent();
     IOptionPanelExtension[] extps = (IOptionPanelExtension[])OptionDialogPlugin.Instance.PoderosaWorld.PluginManager.FindExtensionPoint(OptionDialogPlugin.OPTION_PANEL_ID).GetExtensions();
     _entries = new PanelEntry[extps.Length];
     for (int i = 0; i < extps.Length; i++)
         _entries[i] = new PanelEntry(i, extps[i]);
     InitItems();
     FillText();
     Debug.Assert(_entries.Length == _categoryItems.Controls.Count); //�g���Ɠ����̃p�l�������邱��
 }
Esempio n. 5
0
 public OptionDialog()
 {
     _instance = this;
     //
     // Windows フォーム デザイナ サポートに必要です。
     //
     InitializeComponent();
     IOptionPanelExtension[] extps = (IOptionPanelExtension[])OptionDialogPlugin.Instance.PoderosaWorld.PluginManager.FindExtensionPoint(OptionDialogPlugin.OPTION_PANEL_ID).GetExtensions();
     _entries = new PanelEntry[extps.Length];
     for (int i = 0; i < extps.Length; i++)
     {
         _entries[i] = new PanelEntry(i, extps[i]);
     }
     InitItems();
     FillText();
     Debug.Assert(_entries.Length == _categoryItems.Controls.Count); //拡張と同数のパネルがあること
 }
Esempio n. 6
0
 public PanelItem(OptionDialog parent, int index, Image image, string caption)
 {
     _parent = parent;
     _index = index;
     _image = image;
     _caption = caption;
     this.Size = _defaultSize;
     this.TabStop = true;
     AdjustBackColor();
 }
 public CommandResult ShowOptionDialog()
 {
     OptionDialog dlg = new OptionDialog();
     GCUtil.ShowModalDialog(_frame, dlg);
     return CommandResult.Success;
 }