public static EditQtFuWu Create(databind bind, qtFuWuModel model) { model1 = model; bind1 = bind; if (qt == null) { qt = new EditQtFuWu(); } return(qt); }
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(); }
private void EditQtFuWu_FormClosing(object sender, FormClosingEventArgs e) { qt = null; }