コード例 #1
0
 //Edit
 private void flatButton2_Click(object sender, EventArgs e)
 {
     if (flatComboBox1.SelectedIndex != -1)
     {
         int     index = flatComboBox1.SelectedIndex;
         XmlNode cfg   = Lama.mainConfig[0]["servers"].getChildByAttribute("id", index.ToString());
         if (cfg["remote"].getAttribute("value").Value.ToUpper().Equals("TRUE"))
         {
             var conf = new NewServer(this, cfg);
             conf.Show();
         }
         else
         {
             var conf = new ConfigServ(index);
             conf.Show();
         }
     }
 }
コード例 #2
0
        //New
        private void flatButton4_Click(object sender, EventArgs e)
        {
            var newServ = new NewServer(this);

            newServ.Show();
        }