예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            XElement newRoot = new XElement("apteki");

            this.Hide();
            info = new info_form();
            info.Show();
            info.root = newRoot;
            info.set_tree();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (openFileDialog.ShowDialog() == DialogResult.Cancel)
            {
                return;
            }

            string filename = openFileDialog.FileName;

            this.Hide();
            info = new info_form();
            info.Show();
            info.root = XElement.Load(filename);
            info.set_tree();
        }