private void Edit_Click(object sender, EventArgs e) { string y = this.existingParameters.SelectedItem.ToString(); XElement x = xmlDoc.Root.Element(y); IEnumerable <XElement> elementos = x.Descendants(); x.Remove(); NewParameter form = new NewParameter(this, elementos, y); form.Show(); }
private void Edit_Click(object sender, EventArgs e) { string y = this.existingParameters.SelectedItem.ToString(); XElement x = xmlDoc.Root.Element(y); IEnumerable<XElement> elementos = x.Descendants(); x.Remove(); NewParameter form = new NewParameter(this, elementos, y); form.Show(); }
private void New_Click(object sender, EventArgs e) { NewParameter form = new NewParameter(this, null, null); form.Show(); }