/// <summary> /// Switch to a specific tab in the configuration GUI. /// </summary> /// <param name="configTab">The tab to switch to.</param> public void SelectTab(ConfigTab configTab) { switch (configTab) { case ConfigTab.Updates: tabOptions.SelectTab(tabPageUpdates); break; case ConfigTab.Storage: tabOptions.SelectTab(tabPageStorage); break; case ConfigTab.Catalog: tabOptions.SelectTab(tabPageCatalog); break; case ConfigTab.Trust: tabOptions.SelectTab(tabPageTrust); break; case ConfigTab.Sync: tabOptions.SelectTab(tabPageSync); break; case ConfigTab.Language: tabOptions.SelectTab(tabPageLanguage); break; case ConfigTab.Advanced: tabOptions.SelectTab(tabPageAdvanced); break; } }
/// <inheritdoc/> public void ShowConfig(Config config, ConfigTab configTab) { #region Sanity checks if (config == null) throw new ArgumentNullException(nameof(config)); #endregion Console.Write(config.ToString()); }
/// <inheritdoc/> public void ShowConfig(Config config, ConfigTab configTab) { #region Sanity checks if (config == null) { throw new ArgumentNullException("config"); } #endregion Console.Write(config.ToString()); }
/// <inheritdoc/> public void ShowConfig(Config config, ConfigTab configTab) { #region Sanity checks if (config == null) { throw new ArgumentNullException(nameof(config)); } #endregion // TODO: Implement }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { ConfigTab?.Dispose(); GemsTab?.Dispose(); PortalsTab?.Dispose(); AdvertisementsTab?.Dispose(); InventoryTab?.Dispose(); EquipmentTab?.Dispose(); View?.Dispose(); } disposedValue = true; } }
public BotManagerView(Machine machine) { try { Machine = machine; VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser(); parser.ParseFromResource("ACManager.Views.botManagerView.xml", out ViewProperties Properties, out ControlGroup Controls); View = new HudView(Properties, Controls); ConfigTab = new ConfigTab(this); PortalsTab = new PortalsTab(this); GemsTab = new GemsTab(this); AdvertisementsTab = new AdvertisementsTab(this); InventoryTab = new InventoryTab(this); EquipmentTab = new EquipmentTab(this); } catch (Exception ex) { Debug.LogException(ex); } }
/// <inheritdoc/> public void ShowConfig(Config config, ConfigTab configTab) { #region Sanity checks if (config == null) { throw new ArgumentNullException(nameof(config)); } #endregion ThreadUtils.RunSta(() => { using var dialog = new ConfigDialog(config); dialog.SelectTab(configTab); if (dialog.ShowDialog() != DialogResult.OK) { throw new OperationCanceledException(); } }); }
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e) { switch (tabControl1.SelectedIndex) { case 0: SelectedTab = ConfigTab.Configuration; break; case 1: SelectedTab = ConfigTab.KeyConfiguration; break; case 2: SelectedTab = ConfigTab.Tester; break; case 3: SelectedTab = ConfigTab.Log; UpdateLog(); break; default: SelectedTab = ConfigTab.Configuration; break; } }
/// <inheritdoc/> public void ShowConfig(Config config, ConfigTab configTab) { // No UI, so nothing to do }
/// <inheritdoc/> public Configure(ICommandHandler handler) : base(handler) { Options.Add("tab=", () => Resources.OptionConfigTab, (ConfigTab tab) => _configTab = tab); }
/// <inheritdoc/> public Configure([NotNull] ICommandHandler handler) : base(handler) { Options.Add("tab=", () => Resources.OptionConfigTab, (ConfigTab tab) => _configTab = tab); }
private void TabControl1SelectedIndexChanged(object sender, EventArgs e) { switch (tabPanel.TabPages[tabPanel.SelectedIndex].Name) { case "tbTestCommands": _selectedTab = ConfigTab.Tester; break; case "LogOutput": _selectedTab = ConfigTab.Log; UpdateLog(); break; default: _selectedTab = ConfigTab.Configuration; break; } }
/// <inheritdoc/> public void ShowConfig(Config config, ConfigTab configTab) { #region Sanity checks if (config == null) throw new ArgumentNullException(nameof(config)); #endregion // TODO: Implement }