public ProviderEditor(TokenManagerModel model, string name) : base(model) { InitializeComponent(); Name = name; Text = Name; RevertChanges(); AcceptChanges(); UpdateProviderUrlButtonState(); Disposed += LocalDispose; }
public SettingsEditor(TokenManagerModel model, string name) : base(model) { InitializeComponent(); numericUpDownWarnAt.Left = labelWarnAtPrefix.Right; labelWarnAtPostfix.Left = numericUpDownWarnAt.Right; Name = name; Text = name; RevertChanges(); AcceptChanges(); UpdateAddButtonState(); UpdateRemoveButtonState(); UpdateRemoveList(); Disposed += LocalDispose; }
public TokenManagerMainForm(TokenManagerModel model) { InitializeComponent(); Model = model; Model.ProviderAdded += ProviderAddedHandler; Model.ProviderRemoved += ProviderRemovedHandler; tabControlMain.AddSettingsPage(Model); foreach (string providerName in Model.GetProviderNames()) { tabControlMain.AddProviderPage(Model, providerName); } tabControlMain.SelectedIndex = 0; Disposed += LocalDispose; }
public void AddSettingsPage(TokenManagerModel model) { TabPages.Add(new SettingsEditor(model, SettingsTabName)); }
public void AddProviderPage(TokenManagerModel model, string name) { TabPages.Add(new ProviderEditor(model, name)); SelectedTab = TabPages[name]; }
protected TokenManagerEditor(TokenManagerModel model) { Model = model; }