/// <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); } }
/// <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); } }