public static YGFinish CreateForm(Databind bind1) { bind = bind1; if (_danli == null) { _danli = new YGFinish(); } return(_danli); }
private void button3_Click(object sender, EventArgs e) { //List<int> list = new List<int>(); //foreach (DataGridViewRow iteam in dataGridView3.Rows) //{ // if (Convert.ToBoolean(iteam.Cells["XZ"].Value)) // { // list.Add(Convert.ToInt32(iteam.Cells["jcID"].Value)); // } //} //string ID = dataGridView3.SelectedRows[0].Cells["jcID"].Value.ToString(); //拿到送洗的ID YGFinish ygfin = YGFinish.CreateForm(BindData); ygfin.Show(); ygfin.Focus(); }
private void YGFinish_FormClosing(object sender, FormClosingEventArgs e) { _danli = null; }