Пример #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            foreach (string msg in ConfigRw.Query(listBox1.SelectedItem.ToString()))
            {
                MessageBox.Show(msg);
            }
//			ConfigRw.Query(listBox1.SelectedItem.ToString());
        }
Пример #2
0
        private void button3_Click(object sender, EventArgs e)
        {
//			foreach (string listbox in ConfigRw.QueryList())
//			{
            ConfigRw.LoadConfig();
            listBox1.DataSource = ConfigRw.QueryList();
//			}
        }
Пример #3
0
        public Form1()
        {
            ConfigRw.Init();

            InitializeComponent();

            listBox1.DataSource = ConfigRw.QueryList();
        }
Пример #4
0
        private void listBox1_SelectedValueChanged(object sender, EventArgs e)
        {
            servername    = listBox1.SelectedItem.ToString();
            textBox1.Text = servername;
//			textBox2.Text = ConfigRw.QuerySingleItem(servername, "IP");
//			textBox3.Text = ConfigRw.QuerySingleItem(servername, "Port");
            List <string> info = ConfigRw.Query(servername);

            textBox2.Text = info[0];
            textBox3.Text = info[1];
        }
Пример #5
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (ConfigRw.CheckXml())
     {
         MessageBox.Show("Verify Success");
     }
     else
     {
         MessageBox.Show("XML Error");
     }
 }
Пример #6
0
 private void button1_Click(object sender, EventArgs e)
 {
     ConfigRw.FirstInit();
 }