Exemplo n.º 1
0
 public Login(Configuration _config, RCUserHandler rcUser, ServerMonitorControl control)
 {
     this.InitializeComponent();
     this.config               = _config;
     this.RCUserHandler        = rcUser;
     this.ServerMonitorControl = control;
     this.TBoxID.GotFocus     += this.OnFocusIdBox;
     this.TBoxPasswd.GotFocus += this.OnFocusPasswdBox;
     this.LbVersion.Text       = string.Format("Build: {0}", this.BuildDate().ToShortDateString());
 }
Exemplo n.º 2
0
 private void RebuildServerGroupCache()
 {
     if (this.commandBridgeModified)
     {
         this.serverGroupCache = new Dictionary <string, RCProcess>();
         foreach (RCProcess rcprocess in this.commandBridges.Keys)
         {
             IEnumerable <string> commandBridgeServer = RCUserHandler.GetCommandBridgeServer(rcprocess);
             foreach (string key in commandBridgeServer)
             {
                 if (!this.serverGroupCache.ContainsKey(key))
                 {
                     this.serverGroupCache.Add(key, rcprocess);
                 }
             }
         }
         this.commandBridgeModified = false;
     }
 }