Exemplo n.º 1
0
 public ProviderEditor(TokenManagerModel model, string name) : base(model)
 {
     InitializeComponent();
     Name = name;
     Text = Name;
     RevertChanges();
     AcceptChanges();
     UpdateProviderUrlButtonState();
     Disposed += LocalDispose;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
 public void AddSettingsPage(TokenManagerModel model)
 {
     TabPages.Add(new SettingsEditor(model, SettingsTabName));
 }
Exemplo n.º 5
0
 public void AddProviderPage(TokenManagerModel model, string name)
 {
     TabPages.Add(new ProviderEditor(model, name));
     SelectedTab = TabPages[name];
 }
Exemplo n.º 6
0
 protected TokenManagerEditor(TokenManagerModel model)
 {
     Model = model;
 }