private void bAdd_Click(object sender, EventArgs e) { OptData.Default.Add = true; this.Enabled = false; AddRedact nf = new AddRedact(); nf.Show(); }
private void bCh_Click(object sender, EventArgs e) { OptData.Default.Add = false; this.Enabled = false; AddRedact nf = new AddRedact(); ListViewItem nli = new ListViewItem(); nli = diapList.FocusedItem; nf.Text = "Редактировать диапазон"; nf.tName.Text = nli.Text; nf.tStIP.Text = nli.SubItems[1].Text; nf.tEndIP.Text = nli.SubItems[2].Text; nf.tDescr.Text = nli.SubItems[4].Text; nf.Show(); }