Beispiel #1
0
        private void button19_Click(object sender, EventArgs e)
        {
            AddPlan plan = new AddPlan();

            plan.Owner     = this;
            plan.InputText = treeView_AfterSelec.ToString();
            plan.ShowDialog();
        }
Beispiel #2
0
 private void button1_Click_1(object sender, EventArgs e)
 {
     if (dataGridView2.SelectedRows.Count > 0)
     {
         string  a      = dataGridView2[0, dataGridView2.CurrentRow.Index].Value.ToString();
         AddPlan create = new AddPlan();
         create.Owner  = this;
         create.reedit = a;
         create.ShowDialog();
     }
 }
Beispiel #3
0
 private void button18_Click(object sender, EventArgs e)
 {
     try
     {
         string  ed   = dataGridView5[0, dataGridView5.CurrentRow.Index].Value.ToString();
         string  ed1  = (dataGridView5[1, dataGridView5.CurrentRow.Index].Value.ToString());
         string  ed2  = dataGridView5[2, dataGridView5.CurrentRow.Index].Value.ToString();
         string  id   = dataGridView5[3, dataGridView5.CurrentRow.Index].Value.ToString();
         AddPlan plan = new AddPlan();
         plan.Owner     = this;
         plan.InputText = treeView_AfterSelec.ToString();
         plan.edit      = ed;
         plan.edit1     = ed1;
         plan.edit2     = ed2;
         plan.id1       = id;
         plan.ShowDialog();
     }
     catch
     {
         MessageBox.Show("error - попробуйте еще раз");
     }
 }