Free cookie consent management tool by TermsFeed Policy Generator

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

panel for details which shows an image and a close button if details should be closed (#452)

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

Legend:

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

    r1037 r1089  
    2020#endregion
    2121
    22 namespace HeuristicLab.Hive.Server.Console {
     22namespace HeuristicLab.Hive.Server.ServerConsole {
    2323  partial class AddJobForm {
    2424    /// <summary>
  • trunk/sources/HeuristicLab.Hive.Server.Console/AddJobForm.cs

    r1037 r1089  
    3232using HeuristicLab.Hive.Contracts;
    3333
    34 namespace HeuristicLab.Hive.Server.Console {
     34namespace HeuristicLab.Hive.Server.ServerConsole {
    3535  public partial class AddJobForm : Form {
    3636
  • trunk/sources/HeuristicLab.Hive.Server.Console/AddUserForm.Designer.cs

    r1037 r1089  
    2020#endregion
    2121
    22 namespace HeuristicLab.Hive.Server.Console {
     22namespace HeuristicLab.Hive.Server.ServerConsole {
    2323  partial class AddUserForm {
    2424    /// <summary>
  • trunk/sources/HeuristicLab.Hive.Server.Console/AddUserForm.cs

    r1037 r1089  
    3232using HeuristicLab.Hive.Contracts;
    3333
    34 namespace HeuristicLab.Hive.Server.Console {
     34namespace HeuristicLab.Hive.Server.ServerConsole {
    3535  public partial class AddUserForm : Form {
    3636
  • trunk/sources/HeuristicLab.Hive.Server.Console/HeuristicLab.Hive.Server.Console.csproj

    r1030 r1089  
    99    <OutputType>Library</OutputType>
    1010    <AppDesignerFolder>Properties</AppDesignerFolder>
    11     <RootNamespace>HeuristicLab.Hive.Server.Console</RootNamespace>
     11    <RootNamespace>HeuristicLab.Hive.Server.ServerConsole</RootNamespace>
    1212    <AssemblyName>HeuristicLab.Hive.Server.Console-3.2</AssemblyName>
    1313    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.Designer.cs

    r1037 r1089  
    2020#endregion
    2121
    22 namespace HeuristicLab.Hive.Server.Console {
     22namespace HeuristicLab.Hive.Server.ServerConsole {
    2323  partial class HiveServerConsole {
    2424    /// <summary>
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsole.cs

    r1037 r1089  
    3434using System.Net;
    3535
    36 namespace HeuristicLab.Hive.Server.Console {
     36namespace HeuristicLab.Hive.Server.ServerConsole {
    3737
    3838  public partial class HiveServerConsole : Form {
     
    8080          if ((IPAddress.TryParse(tbIp.Text, out ipAdress)) &&
    8181            int.TryParse(tbPort.Text, out port)) {
    82             IUserRoleManager userManager =
    83           ServiceLocator.GetUserRoleManager();
    84             ResponseList<User> user = userManager.GetAllUsers();
    85             user = userManager.GetAllUsers();
     82            IServerConsoleFacade scf = ServiceLocator.GetServerConsoleFacade();
     83            Response resp = scf.Login(tbUserName.Text, tbPwd.Text);
    8684          } else {
    8785            lblError.Text = "IP or Port not valid";
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerConsoleApplication.cs

    r778 r1089  
    2626using HeuristicLab.PluginInfrastructure;
    2727
    28 namespace HeuristicLab.Hive.Server.Console {
     28namespace HeuristicLab.Hive.Server.ServerConsole {
    2929  [ClassInfo(Name = "Hive Server Console", Description = "Console Application for the Hive Server.", AutoRestart = true)]
    3030  class HiveServerConsoleApplication : ApplicationBase {
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.Designer.cs

    r1079 r1089  
    1 namespace HeuristicLab.Hive.Server.Console {
     1namespace HeuristicLab.Hive.Server.ServerConsole {
    22  partial class HiveServerManagementConsole {
    33    /// <summary>
     
    2525    private void InitializeComponent() {
    2626      this.components = new System.ComponentModel.Container();
    27       System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(new string[] {
    28             "",
    29             "Test"}, -1);
    3027      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(HiveServerManagementConsole));
    3128      this.menuStrip1 = new System.Windows.Forms.MenuStrip();
     
    4138      this.scClientControl = new System.Windows.Forms.SplitContainer();
    4239      this.tvClientControl = new System.Windows.Forms.TreeView();
     40      this.plClientDetails = new System.Windows.Forms.Panel();
     41      this.pbClientControl = new System.Windows.Forms.PictureBox();
    4342      this.lvClientControl = new System.Windows.Forms.ListView();
    4443      this.ilClientControl = new System.Windows.Forms.ImageList(this.components);
     
    5655      this.listView2 = new System.Windows.Forms.ListView();
    5756      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();
    5860      this.menuStrip1.SuspendLayout();
    5961      this.tcManagementConsole.SuspendLayout();
     
    6264      this.scClientControl.Panel2.SuspendLayout();
    6365      this.scClientControl.SuspendLayout();
     66      this.plClientDetails.SuspendLayout();
     67      ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).BeginInit();
    6468      this.tpJobControl.SuspendLayout();
    6569      this.scJobControl.Panel1.SuspendLayout();
     
    7074      this.scUserControl.Panel2.SuspendLayout();
    7175      this.scUserControl.SuspendLayout();
     76      ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).BeginInit();
    7277      this.SuspendLayout();
    7378      //
     
    173178      // scClientControl.Panel2
    174179      //
     180      //this.scClientControl.Panel2.Controls.Add(this.plClientDetails);
    175181      this.scClientControl.Panel2.Controls.Add(this.lvClientControl);
    176182      this.scClientControl.Size = new System.Drawing.Size(637, 346);
     
    186192      this.tvClientControl.TabIndex = 0;
    187193      //
     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;
     213      //
    188214      // lvClientControl
    189215      //
     
    191217      this.lvClientControl.Dock = System.Windows.Forms.DockStyle.Fill;
    192218      this.lvClientControl.ImeMode = System.Windows.Forms.ImeMode.Off;
    193       this.lvClientControl.Items.AddRange(new System.Windows.Forms.ListViewItem[] {
    194             listViewItem1});
    195219      this.lvClientControl.LargeImageList = this.ilClientControl;
    196220      this.lvClientControl.Location = new System.Drawing.Point(0, 0);
     
    199223      this.lvClientControl.TabIndex = 0;
    200224      this.lvClientControl.UseCompatibleStateImageBehavior = false;
     225      this.lvClientControl.Click += new System.EventHandler(this.OnClientClicked);
    201226      //
    202227      // ilClientControl
     
    335360      //
    336361      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";
    337381      //
    338382      // HiveServerManagementConsole
     
    354398      this.scClientControl.Panel2.ResumeLayout(false);
    355399      this.scClientControl.ResumeLayout(false);
     400      this.plClientDetails.ResumeLayout(false);
     401      this.plClientDetails.PerformLayout();
     402      ((System.ComponentModel.ISupportInitialize)(this.pbClientControl)).EndInit();
    356403      this.tpJobControl.ResumeLayout(false);
    357404      this.scJobControl.Panel1.ResumeLayout(false);
     
    362409      this.scUserControl.Panel2.ResumeLayout(false);
    363410      this.scUserControl.ResumeLayout(false);
     411      ((System.ComponentModel.ISupportInitialize)(this.bindingSource1)).EndInit();
    364412      this.ResumeLayout(false);
    365413      this.PerformLayout();
     
    396444    private System.Windows.Forms.Timer timerSyncronize;
    397445    private System.Windows.Forms.ImageList ilJobControl;
     446    private System.Windows.Forms.BindingSource bindingSource1;
     447    private System.Windows.Forms.Panel plClientDetails;
     448    private System.Windows.Forms.PictureBox pbClientControl;
     449    private System.Windows.Forms.Button btnClose;
     450    private System.Windows.Forms.Label lblClientName;
    398451  }
    399452}
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.cs

    r1037 r1089  
    3232using HeuristicLab.Hive.Contracts;
    3333
    34 namespace HeuristicLab.Hive.Server.Console {
     34namespace HeuristicLab.Hive.Server.ServerConsole {
    3535
    3636  public delegate void closeForm(bool cf, bool error);
     
    4545    ResponseList<UserGroup> userGroups = null;
    4646    ResponseList<User> usersList = null;
     47    ListView lvClientDetails = null;
    4748
    4849    public HiveServerManagementConsole() {
     
    9192        }
    9293        lvClientControl.Groups.Add(lvunsorted);
     94        lvClientControl.Sorting = SortOrder.Ascending;
    9395      }
    9496      catch (Exception ex) {
     
    171173        this.Close();
    172174      }
    173 
    174175    }
    175176
     
    195196        closeFormEvent(true, false);
    196197      }
    197 
    198198    }
    199199
     
    214214    }
    215215
     216    private void OnClientClicked(object sender, EventArgs e) {
     217      scClientControl.Panel2.Controls.Clear();
     218      scClientControl.Panel2.Controls.Add(plClientDetails);
     219      pbClientControl.Image = ilClientControl.Images[0];
     220      lblClientName.Text = sender.ToString();
     221
     222     
     223    }
     224
     225    private void btnClose_Click(object sender, EventArgs e) {
     226      scClientControl.Panel2.Controls.Clear();
     227      scClientControl.Panel2.Controls.Add(lvClientControl);
     228    }
     229
     230
     231
    216232  }
    217233}
  • trunk/sources/HeuristicLab.Hive.Server.Console/HiveServerManagementConsole.resx

    r1079 r1089  
    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>
    351354</root>
  • trunk/sources/HeuristicLab.Hive.Server.Console/Properties/Resources.Designer.cs

    r778 r1089  
    99//------------------------------------------------------------------------------
    1010
    11 namespace HeuristicLab.Hive.Server.Console.Properties {
     11namespace HeuristicLab.Hive.Server.ServerConsole.Properties {
    1212    using System;
    1313   
     
    4040            get {
    4141                if (object.ReferenceEquals(resourceMan, null)) {
    42                     global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HeuristicLab.Hive.Server.Console.Properties.Resources", typeof(Resources).Assembly);
     42                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HeuristicLab.Hive.Server.ServerConsole.Properties.Resources", typeof(Resources).Assembly);
    4343                    resourceMan = temp;
    4444                }
  • trunk/sources/HeuristicLab.Hive.Server.Console/Properties/Settings.Designer.cs

    r778 r1089  
    99//------------------------------------------------------------------------------
    1010
    11 namespace HeuristicLab.Hive.Server.Console.Properties {
     11namespace HeuristicLab.Hive.Server.ServerConsole.Properties {
    1212   
    1313   
  • trunk/sources/HeuristicLab.Hive.Server.Console/ServiceLocator.cs

    r1084 r1089  
    77using System.ServiceModel;
    88
    9 namespace HeuristicLab.Hive.Server.Console {
     9namespace HeuristicLab.Hive.Server.ServerConsole {
    1010  internal class ServiceLocator {
    1111    private static IServerConsoleFacade serverConsoleFacade = null;
Note: See TracChangeset for help on using the changeset viewer.