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(); }
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(); }