예제 #1
0
파일: cTerminus.cs 프로젝트: cmllr/terminus
 /// <summary>
 /// Adds the config tab.
 /// </summary>
 /// <param name='_nb'>
 /// Nb.
 /// </param>
 public static void addConfigTab(Notebook _nb)
 {
     try {
         if (isConfigTabOpen != true)
         {
             libTerminus.cConfig config = new libTerminus.cConfig(Configuration);
             _nb.AppendPage(config, new Label(Catalog.GetString("Preferences"), ref _nb, config));
             _nb.ShowAll();
             _nb.Page       = _nb.NPages - 1;
             ConfigTabIndex = _nb.Page;
         }
         else
         {
             //BUGGY:_nb.Page = ConfigTabIndex;
         }
     } catch (Exception ex) {
         MessageBox.Show(ex.Message, cTerminus.g_programName, ButtonsType.Close, MessageType.Error);
     }
 }
예제 #2
0
 /// <summary>
 /// Adds the config tab.
 /// </summary>
 /// <param name='_nb'>
 /// Nb.
 /// </param>
 public static void addConfigTab(Notebook _nb)
 {
     try {
         if (isConfigTabOpen != true) {
             libTerminus.cConfig config = new libTerminus.cConfig (Configuration);
             _nb.AppendPage (config, new Label (Catalog.GetString ("Preferences"), ref _nb, config));
             _nb.ShowAll ();
             _nb.Page = _nb.NPages - 1;
             ConfigTabIndex = _nb.Page;
         } else {
             //BUGGY:_nb.Page = ConfigTabIndex;
         }
     } catch (Exception ex) {
         MessageBox.Show (ex.Message, cTerminus.g_programName, ButtonsType.Close, MessageType.Error);
     }
 }