Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1098


Ignore:
Timestamp:
01/08/09 17:07:25 (16 years ago)
Author:
aleitner
Message:

change page on clicking on job/user/client - first general information about this state (#452)

Location:
trunk/sources/HeuristicLab.Hive.Server.Console
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.Designer.cs

    r1089 r1098  
    3838      this.scClientControl = new System.Windows.Forms.SplitContainer();
    3939      this.tvClientControl = new System.Windows.Forms.TreeView();
    40       this.plClientDetails = new System.Windows.Forms.Panel();
    41       this.pbClientControl = new System.Windows.Forms.PictureBox();
    4240      this.lvClientControl = new System.Windows.Forms.ListView();
    4341      this.ilClientControl = new System.Windows.Forms.ImageList(this.components);
     
    5048      this.scUserControl = new System.Windows.Forms.SplitContainer();
    5149      this.tvUserControl = new System.Windows.Forms.TreeView();
     50      this.plUserDetails = new System.Windows.Forms.Panel();
     51      this.lblUserName = new System.Windows.Forms.Label();
     52      this.btnUserControlClose = new System.Windows.Forms.Button();
     53      this.pbUserControl = new System.Windows.Forms.PictureBox();
    5254      this.lvUserControl = new System.Windows.Forms.ListView();
    5355      this.ilUserControl = new System.Windows.Forms.ImageList(this.components);
     56      this.plJobDetails = new System.Windows.Forms.Panel();
     57      this.lblJobName = new System.Windows.Forms.Label();
     58      this.btnJobDetailClose = new System.Windows.Forms.Button();
     59      this.pbJobControl = new System.Windows.Forms.PictureBox();
     60      this.plClientDetails = new System.Windows.Forms.Panel();
     61      this.lblLogin = new System.Windows.Forms.Label();
     62      this.label1 = new System.Windows.Forms.Label();
     63      this.lblClientName = new System.Windows.Forms.Label();
     64      this.btnClientDetailClose = new System.Windows.Forms.Button();
     65      this.pbClientControl = new System.Windows.Forms.PictureBox();
    5466      this.treeView2 = new System.Windows.Forms.TreeView();
    5567      this.listView2 = new System.Windows.Forms.ListView();
    5668      this.timerSyncronize = new System.Windows.Forms.Timer(this.components);
    57       this.bindingSource1 = new System.Windows.Forms.BindingSource(this.components);
    58       this.btnClose = new System.Windows.Forms.Button();
    59       this.lblClientName = new System.Windows.Forms.Label();
    6069      this.menuStrip1.SuspendLayout();
    6170      this.tcManagementConsole.SuspendLayout();
     
    6473      this.scClientControl.Panel2.SuspendLayout();
    6574      this.scClientControl.SuspendLayout();
    66       this.plClientDetails.SuspendLayout();
    67       ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).BeginInit();
    6875      this.tpJobControl.SuspendLayout();
    6976      this.scJobControl.Panel1.SuspendLayout();
     
    7481      this.scUserControl.Panel2.SuspendLayout();
    7582      this.scUserControl.SuspendLayout();
    76       ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
     83      this.plUserDetails.SuspendLayout();
     84      ((System.ComponentModel.ISupportInitialize)(this.pbUserControl)).BeginInit();
     85      this.plJobDetails.SuspendLayout();
     86      ((System.ComponentModel.ISupportInitialize)(this.pbJobControl)).BeginInit();
     87      this.plClientDetails.SuspendLayout();
     88      ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).BeginInit();
    7789      this.SuspendLayout();
    7890      //
     
    178190      // scClientControl.Panel2
    179191      //
    180       //this.scClientControl.Panel2.Controls.Add(this.plClientDetails);
    181192      this.scClientControl.Panel2.Controls.Add(this.lvClientControl);
    182193      this.scClientControl.Size = new System.Drawing.Size(637, 346);
     
    191202      this.tvClientControl.Size = new System.Drawing.Size(139, 346);
    192203      this.tvClientControl.TabIndex = 0;
    193       //
    194       // plClientDetails
    195       //
    196       this.plClientDetails.BackColor = System.Drawing.SystemColors.Window;
    197       this.plClientDetails.Controls.Add(this.lblClientName);
    198       this.plClientDetails.Controls.Add(this.btnClose);
    199       this.plClientDetails.Controls.Add(this.pbClientControl);
    200       this.plClientDetails.Dock = System.Windows.Forms.DockStyle.Fill;
    201       this.plClientDetails.Location = new System.Drawing.Point(0, 0);
    202       this.plClientDetails.Name = "plClientDetails";
    203       this.plClientDetails.Size = new System.Drawing.Size(494, 346);
    204       this.plClientDetails.TabIndex = 1;
    205       //
    206       // pbClientControl
    207       //
    208       this.pbClientControl.Location = new System.Drawing.Point(3, 4);
    209       this.pbClientControl.Name = "pbClientControl";
    210       this.pbClientControl.Size = new System.Drawing.Size(60, 50);
    211       this.pbClientControl.TabIndex = 0;
    212       this.pbClientControl.TabStop = false;
     204      this.tvClientControl.Click += new System.EventHandler(this.OnTVClientClicked);
    213205      //
    214206      // lvClientControl
     
    219211      this.lvClientControl.LargeImageList = this.ilClientControl;
    220212      this.lvClientControl.Location = new System.Drawing.Point(0, 0);
     213      this.lvClientControl.MultiSelect = false;
    221214      this.lvClientControl.Name = "lvClientControl";
    222215      this.lvClientControl.Size = new System.Drawing.Size(494, 346);
    223216      this.lvClientControl.TabIndex = 0;
    224217      this.lvClientControl.UseCompatibleStateImageBehavior = false;
    225       this.lvClientControl.Click += new System.EventHandler(this.OnClientClicked);
     218      this.lvClientControl.Click += new System.EventHandler(this.OnLVClientClicked);
    226219      //
    227220      // ilClientControl
     
    275268      this.lvJobControl.LargeImageList = this.ilJobControl;
    276269      this.lvJobControl.Location = new System.Drawing.Point(0, 0);
     270      this.lvJobControl.MultiSelect = false;
    277271      this.lvJobControl.Name = "lvJobControl";
    278272      this.lvJobControl.Size = new System.Drawing.Size(494, 346);
    279273      this.lvJobControl.TabIndex = 0;
    280274      this.lvJobControl.UseCompatibleStateImageBehavior = false;
     275      this.lvJobControl.Click += new System.EventHandler(this.OnLVJobControlClicked);
    281276      //
    282277      // ilJobControl
     
    322317      this.tvUserControl.TabIndex = 1;
    323318      //
     319      // plUserDetails
     320      //
     321      this.plUserDetails.BackColor = System.Drawing.SystemColors.Window;
     322      this.plUserDetails.Controls.Add(this.lblUserName);
     323      this.plUserDetails.Controls.Add(this.btnUserControlClose);
     324      this.plUserDetails.Controls.Add(this.pbUserControl);
     325      this.plUserDetails.Dock = System.Windows.Forms.DockStyle.Fill;
     326      this.plUserDetails.Location = new System.Drawing.Point(0, 0);
     327      this.plUserDetails.Name = "plUserDetails";
     328      this.plUserDetails.Size = new System.Drawing.Size(494, 346);
     329      this.plUserDetails.TabIndex = 2;
     330      //
     331      // lblUserName
     332      //
     333      this.lblUserName.AutoSize = true;
     334      this.lblUserName.Location = new System.Drawing.Point(41, 13);
     335      this.lblUserName.Name = "lblUserName";
     336      this.lblUserName.Size = new System.Drawing.Size(35, 13);
     337      this.lblUserName.TabIndex = 5;
     338      this.lblUserName.Text = "label1";
     339      //
     340      // btnUserControlClose
     341      //
     342      this.btnUserControlClose.Location = new System.Drawing.Point(414, 3);
     343      this.btnUserControlClose.Name = "btnUserControlClose";
     344      this.btnUserControlClose.Size = new System.Drawing.Size(75, 23);
     345      this.btnUserControlClose.TabIndex = 4;
     346      this.btnUserControlClose.Text = "Close";
     347      this.btnUserControlClose.UseVisualStyleBackColor = true;
     348      this.btnUserControlClose.Click += new System.EventHandler(this.btnUserControlClose_Click);
     349      //
     350      // pbUserControl
     351      //
     352      this.pbUserControl.Location = new System.Drawing.Point(3, 3);
     353      this.pbUserControl.Name = "pbUserControl";
     354      this.pbUserControl.Size = new System.Drawing.Size(32, 32);
     355      this.pbUserControl.TabIndex = 3;
     356      this.pbUserControl.TabStop = false;
     357      //
    324358      // lvUserControl
    325359      //
     
    332366      this.lvUserControl.TabIndex = 1;
    333367      this.lvUserControl.UseCompatibleStateImageBehavior = false;
     368      this.lvUserControl.Click += new System.EventHandler(this.OnLVUserControlClicked);
    334369      //
    335370      // ilUserControl
     
    338373      this.ilUserControl.TransparentColor = System.Drawing.Color.Transparent;
    339374      this.ilUserControl.Images.SetKeyName(0, "Users.png");
     375      //
     376      // plJobDetails
     377      //
     378      this.plJobDetails.BackColor = System.Drawing.SystemColors.Window;
     379      this.plJobDetails.Controls.Add(this.lblJobName);
     380      this.plJobDetails.Controls.Add(this.btnJobDetailClose);
     381      this.plJobDetails.Controls.Add(this.pbJobControl);
     382      this.plJobDetails.Dock = System.Windows.Forms.DockStyle.Fill;
     383      this.plJobDetails.Location = new System.Drawing.Point(0, 0);
     384      this.plJobDetails.Name = "plJobDetails";
     385      this.plJobDetails.Size = new System.Drawing.Size(494, 346);
     386      this.plJobDetails.TabIndex = 1;
     387      //
     388      // lblJobName
     389      //
     390      this.lblJobName.AutoSize = true;
     391      this.lblJobName.Location = new System.Drawing.Point(41, 13);
     392      this.lblJobName.Name = "lblJobName";
     393      this.lblJobName.Size = new System.Drawing.Size(35, 13);
     394      this.lblJobName.TabIndex = 5;
     395      this.lblJobName.Text = "label1";
     396      //
     397      // btnJobDetailClose
     398      //
     399      this.btnJobDetailClose.Location = new System.Drawing.Point(414, 3);
     400      this.btnJobDetailClose.Name = "btnJobDetailClose";
     401      this.btnJobDetailClose.Size = new System.Drawing.Size(75, 23);
     402      this.btnJobDetailClose.TabIndex = 4;
     403      this.btnJobDetailClose.Text = "Close";
     404      this.btnJobDetailClose.UseVisualStyleBackColor = true;
     405      this.btnJobDetailClose.Click += new System.EventHandler(this.btnJobDetailClose_Click);
     406      //
     407      // pbJobControl
     408      //
     409      this.pbJobControl.Location = new System.Drawing.Point(3, 3);
     410      this.pbJobControl.Name = "pbJobControl";
     411      this.pbJobControl.Size = new System.Drawing.Size(32, 32);
     412      this.pbJobControl.TabIndex = 3;
     413      this.pbJobControl.TabStop = false;
     414      //
     415      // plClientDetails
     416      //
     417      this.plClientDetails.BackColor = System.Drawing.SystemColors.Window;
     418      this.plClientDetails.Controls.Add(this.lblLogin);
     419      this.plClientDetails.Controls.Add(this.label1);
     420      this.plClientDetails.Controls.Add(this.lblClientName);
     421      this.plClientDetails.Controls.Add(this.btnClientDetailClose);
     422      this.plClientDetails.Controls.Add(this.pbClientControl);
     423      this.plClientDetails.Dock = System.Windows.Forms.DockStyle.Fill;
     424      this.plClientDetails.Location = new System.Drawing.Point(0, 0);
     425      this.plClientDetails.Name = "plClientDetails";
     426      this.plClientDetails.Size = new System.Drawing.Size(494, 346);
     427      this.plClientDetails.TabIndex = 1;
     428      //
     429      // lblLogin
     430      //
     431      this.lblLogin.AutoSize = true;
     432      this.lblLogin.Location = new System.Drawing.Point(100, 55);
     433      this.lblLogin.Name = "lblLogin";
     434      this.lblLogin.Size = new System.Drawing.Size(35, 13);
     435      this.lblLogin.TabIndex = 4;
     436      this.lblLogin.Text = "label2";
     437      //
     438      // label1
     439      //
     440      this.label1.AutoSize = true;
     441      this.label1.Location = new System.Drawing.Point(29, 55);
     442      this.label1.Name = "label1";
     443      this.label1.Size = new System.Drawing.Size(65, 13);
     444      this.label1.TabIndex = 3;
     445      this.label1.Text = "logged in on";
     446      //
     447      // lblClientName
     448      //
     449      this.lblClientName.AutoSize = true;
     450      this.lblClientName.Location = new System.Drawing.Point(41, 14);
     451      this.lblClientName.Name = "lblClientName";
     452      this.lblClientName.Size = new System.Drawing.Size(35, 13);
     453      this.lblClientName.TabIndex = 2;
     454      this.lblClientName.Text = "label1";
     455      //
     456      // btnClientDetailClose
     457      //
     458      this.btnClientDetailClose.Location = new System.Drawing.Point(414, 4);
     459      this.btnClientDetailClose.Name = "btnClientDetailClose";
     460      this.btnClientDetailClose.Size = new System.Drawing.Size(75, 23);
     461      this.btnClientDetailClose.TabIndex = 1;
     462      this.btnClientDetailClose.Text = "Close";
     463      this.btnClientDetailClose.UseVisualStyleBackColor = true;
     464      this.btnClientDetailClose.Click += new System.EventHandler(this.btnClientClose_Click);
     465      //
     466      // pbClientControl
     467      //
     468      this.pbClientControl.Location = new System.Drawing.Point(3, 4);
     469      this.pbClientControl.Name = "pbClientControl";
     470      this.pbClientControl.Size = new System.Drawing.Size(32, 32);
     471      this.pbClientControl.TabIndex = 0;
     472      this.pbClientControl.TabStop = false;
    340473      //
    341474      // treeView2
     
    360493      //
    361494      this.timerSyncronize.Interval = 10000;
    362       //
    363       // btnClose
    364       //
    365       this.btnClose.Location = new System.Drawing.Point(414, 4);
    366       this.btnClose.Name = "btnClose";
    367       this.btnClose.Size = new System.Drawing.Size(75, 23);
    368       this.btnClose.TabIndex = 1;
    369       this.btnClose.Text = "Close";
    370       this.btnClose.UseVisualStyleBackColor = true;
    371       this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
    372       //
    373       // lblClientName
    374       //
    375       this.lblClientName.AutoSize = true;
    376       this.lblClientName.Location = new System.Drawing.Point(79, 19);
    377       this.lblClientName.Name = "lblClientName";
    378       this.lblClientName.Size = new System.Drawing.Size(35, 13);
    379       this.lblClientName.TabIndex = 2;
    380       this.lblClientName.Text = "label1";
    381495      //
    382496      // HiveServerManagementConsole
     
    398512      this.scClientControl.Panel2.ResumeLayout(false);
    399513      this.scClientControl.ResumeLayout(false);
    400       this.plClientDetails.ResumeLayout(false);
    401       this.plClientDetails.PerformLayout();
    402       ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).EndInit();
    403514      this.tpJobControl.ResumeLayout(false);
    404515      this.scJobControl.Panel1.ResumeLayout(false);
     
    409520      this.scUserControl.Panel2.ResumeLayout(false);
    410521      this.scUserControl.ResumeLayout(false);
    411       ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
     522      this.plUserDetails.ResumeLayout(false);
     523      this.plUserDetails.PerformLayout();
     524      ((System.ComponentModel.ISupportInitialize)(this.pbUserControl)).EndInit();
     525      this.plJobDetails.ResumeLayout(false);
     526      this.plJobDetails.PerformLayout();
     527      ((System.ComponentModel.ISupportInitialize)(this.pbJobControl)).EndInit();
     528      this.plClientDetails.ResumeLayout(false);
     529      this.plClientDetails.PerformLayout();
     530      ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).EndInit();
    412531      this.ResumeLayout(false);
    413532      this.PerformLayout();
     
    444563    private System.Windows.Forms.Timer timerSyncronize;
    445564    private System.Windows.Forms.ImageList ilJobControl;
    446     private System.Windows.Forms.BindingSource bindingSource1;
    447565    private System.Windows.Forms.Panel plClientDetails;
    448566    private System.Windows.Forms.PictureBox pbClientControl;
    449     private System.Windows.Forms.Button btnClose;
     567    private System.Windows.Forms.Button btnClientDetailClose;
    450568    private System.Windows.Forms.Label lblClientName;
     569    private System.Windows.Forms.Label label1;
     570    private System.Windows.Forms.Label lblLogin;
     571    private System.Windows.Forms.Panel plJobDetails;
     572    private System.Windows.Forms.Label lblJobName;
     573    private System.Windows.Forms.Button btnJobDetailClose;
     574    private System.Windows.Forms.PictureBox pbJobControl;
     575    private System.Windows.Forms.Panel plUserDetails;
     576    private System.Windows.Forms.Label lblUserName;
     577    private System.Windows.Forms.Button btnUserControlClose;
     578    private System.Windows.Forms.PictureBox pbUserControl;
    451579  }
    452580}
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs

    r1089 r1098  
    4646    ResponseList<User> usersList = null;
    4747    ListView lvClientDetails = null;
     48
     49    Job currentJob = null;
     50    ClientInfo currentClient = null;
     51    User currentUser = null;
    4852
    4953    public HiveServerManagementConsole() {
     
    9296        }
    9397        lvClientControl.Groups.Add(lvunsorted);
    94         lvClientControl.Sorting = SortOrder.Ascending;
    9598      }
    9699      catch (Exception ex) {
     
    214217    }
    215218
    216     private void OnClientClicked(object sender, EventArgs e) {
     219    private void OnLVClientClicked(object sender, EventArgs e) {
     220      currentClient = clientInfo.List[lvClientControl.SelectedItems[0].Index];
     221      ClientClicked();
     222    }
     223
     224    private void OnTVClientClicked(object sender, EventArgs e) {
     225     // currentClient = clientInfo.List[tvClientControl.SelectedNode.Index];
     226     // ClientClicked();
     227    }
     228
     229    private void ClientClicked() {
    217230      scClientControl.Panel2.Controls.Clear();
    218231      scClientControl.Panel2.Controls.Add(plClientDetails);
    219232      pbClientControl.Image = ilClientControl.Images[0];
    220       lblClientName.Text = sender.ToString();
    221 
    222      
    223     }
    224 
    225     private void btnClose_Click(object sender, EventArgs e) {
     233      lblClientName.Text = currentClient.Name;
     234      lblLogin.Text = currentClient.Login.ToString();
     235    }
     236
     237    private void btnClientClose_Click(object sender, EventArgs e) {
    226238      scClientControl.Panel2.Controls.Clear();
    227239      scClientControl.Panel2.Controls.Add(lvClientControl);
    228240    }
    229241
    230 
     242    private void OnLVJobControlClicked(object sender, EventArgs e) {
     243      currentJob = jobs.List[lvJobControl.SelectedItems[0].Index];
     244      JobClicked();
     245
     246    }
     247    private void JobClicked() {
     248      scJobControl.Panel2.Controls.Clear();
     249      scJobControl.Panel2.Controls.Add(plJobDetails);
     250      pbJobControl.Image = ilJobControl.Images[0];
     251      lblJobName.Text = currentJob.Id.ToString();
     252    }
     253
     254    private void btnJobDetailClose_Click(object sender, EventArgs e) {
     255      scJobControl.Panel2.Controls.Clear();
     256      scJobControl.Panel2.Controls.Add(lvJobControl);
     257    }
     258
     259    private void OnLVUserControlClicked(object sender, EventArgs e) {
     260      currentUser = usersList.List[lvUserControl.SelectedItems[0].Index];
     261      UserClicked();
     262    }
     263
     264    private void UserClicked() {
     265      scUserControl.Panel2.Controls.Clear();
     266      scUserControl.Panel2.Controls.Add(plUserDetails);
     267      pbUserControl.Image = ilUserControl.Images[0];
     268      lblUserName.Text = currentUser.Id.ToString();
     269    }
     270
     271    private void btnUserControlClose_Click(object sender, EventArgs e) {
     272      scUserControl.Panel2.Controls.Clear();
     273      scUserControl.Panel2.Controls.Add(lvUserControl);
     274    }
    231275
    232276  }
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.resx

    r1089 r1098  
    349349    <value>341, 9</value>
    350350  </metadata>
    351   <metadata name="bindingSource1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    352     <value>580, 13</value>
    353   </metadata>
    354351</root>
Note: See TracChangeset for help on using the changeset viewer.