示例#1
0
 public static EditQtFuWu Create(databind bind, qtFuWuModel model)
 {
     model1 = model;
     bind1  = bind;
     if (qt == null)
     {
         qt = new EditQtFuWu();
     }
     return(qt);
 }
示例#2
0
文件: qtForm.cs 项目: wryip/diyiban
        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();
        }
示例#3
0
 private void EditQtFuWu_FormClosing(object sender, FormClosingEventArgs e)
 {
     qt = null;
 }