Beispiel #1
0
 public static EditQtFuWu Create(databind bind, qtFuWuModel model)
 {
     model1 = model;
     bind1  = bind;
     if (qt == null)
     {
         qt = new EditQtFuWu();
     }
     return(qt);
 }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count != 1)
            {
                MessageBox.Show("请选择一条数据!");
                return;
            }
            qtFuWuModel model  = (qtFuWuModel)dataGridView1.SelectedRows[0].DataBoundItem;
            EditQtFuWu  qtedit = EditQtFuWu.Create(databind, model);

            qtedit.Show();
            qtedit.Focus();
        }
Beispiel #3
0
 private void EditQtFuWu_FormClosing(object sender, FormClosingEventArgs e)
 {
     qt = null;
 }