Ejemplo n.º 1
0
        void displayingOptionDialog(object sender, TabbedDialogEventArgs e)
        {
            //创建一个自定义控件的实例,这里使用的是显示图片的自定义控件
            PictureTab optionTab = new PictureTab();
            //为确定按钮添加动作,也可以为取消、应用、帮助按钮添加动作
            TabbedDialogAction onOkPress = new TabbedDialogAction(OnOptionOK);

            //将显示图片的控件作为标签页添加到选项对话框,并处理确定按钮所引发的动作
            e.AddTab("图片", new TabbedDialogExtension(optionTab, onOkPress));
        }
Ejemplo n.º 2
0
        private static void Application_DisplayingOptionDialog(object sender, TabbedDialogEventArgs e)
        {
            if (_gSettings == null)
            {
                _gSettings = new SettingsGui();
            }

            _gSettings.SetComp.UpdateGui();

            var tde = new TabbedDialogExtension(_gSettings, OnOK, OnCancel, OnHelp, OnApply);

            e.AddTab(SettingsInternal.CommandGroup, tde);
        }
Ejemplo n.º 3
0
 private void callback_DisplayingDraftingSettingsDialog(Object sender, TabbedDialogEventArgs e)
 {
     WriteLine(String.Format("DisplayingDraftingSettingsDialog"));
 }
Ejemplo n.º 4
0
 private void callback_DisplayingCustomizeDialog(Object sender, TabbedDialogEventArgs e)
 {
     WriteLine(String.Format("DisplayingCustomizeDialog"));
 }
Ejemplo n.º 5
0
 private void callback_DisplayingOptionDialog(Object sender, TabbedDialogEventArgs e)
 {
     WriteLine(String.Format("DisplayingOptionDialog"));
 }
Ejemplo n.º 6
0
 event_DisplayingOptionDialog(object sender, TabbedDialogEventArgs e)
 {
     PrintEventMessage("Displaying Option Dialog");
 }
Ejemplo n.º 7
0
 event_DisplayingDraftingSettingsDialog(object sender, TabbedDialogEventArgs e)
 {
     PrintEventMessage("Displaying Drafting Settings Dialog");
 }
Ejemplo n.º 8
0
 event_DisplayingCustomizeDialog(object sender, TabbedDialogEventArgs e)
 {
     PrintEventMessage("Displaying Customize Dialog");
 }
Ejemplo n.º 9
0
 public void OptionsTab1(object sender, TabbedDialogEventArgs e)
 {
 }