예제 #1
0
 /// <summary>
 /// New Server
 /// </summary>
 /// <param name="hl">The homeLauncher Form to reload</param>
 public NewServer(HomeLauncher hl)
 {
     Lama.log("NOTICE", "Open NewServer");
     InitializeComponent();
     this.hl        = hl;
     formSkin1.Text = "New Server";
 }
예제 #2
0
 /// <summary>
 /// Edit remote server
 /// </summary>
 /// <param name="hl"></param>
 /// <param name="cfg"></param>
 public NewServer(HomeLauncher hl, XmlNode cfg)
 {
     Lama.log("NOTICE", "Open NewServer in Edit mode");
     InitializeComponent();
     formSkin1.Text     = "Edit server";
     this.hl            = hl;
     this.cfg           = cfg;
     tb_name.Text       = cfg["name"].Value;
     tb_ip.Text         = cfg["remote"]["ip"].Value;
     tb_port.Text       = cfg["remote"]["port"].Value;
     tb_login.Text      = cfg["remote"]["login"].Value;
     b_create.Text      = "Save";
     tog_remote.Checked = true;
     tog_remote.Enabled = false;
     tb_name.Enabled    = true;
     tb_ip.Enabled      = true;
     tb_port.Enabled    = true;
     tb_login.Enabled   = true;
 }