Пример #1
0
 public static fuwuEdit Create(databind bind, string mame1)
 {
     name  = mame1;
     bind1 = bind;
     if (hyfl == null)
     {
         hyfl = new fuwuEdit();
     }
     return(hyfl);
 }
Пример #2
0
        private void xgfwbutton_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedColumns.Count != 1)
            {
                MessageBox.Show("请选择要编辑的一列!");
                return;
            }
            string    name  = dataGridView1.SelectedColumns[0].HeaderText;
            fuwuModel model = bll.selectIteam(name);

            if (model == null)
            {
                MessageBox.Show("请选择有效列!");
                return;
            }
            fuwuEdit fuwu = fuwuEdit.Create(gridbind, name);

            fuwu.Show();
            fuwu.Focus();
        }
Пример #3
0
 private void fuwuEdit_FormClosing(object sender, FormClosingEventArgs e)
 {
     hyfl = null;
 }