Exemple #1
0
 public static xgspFrom Create()
 {
     if (xg == null)
     {
         xg = new xgspFrom();
     }
     return(xg);
 }
Exemple #2
0
        private void 修改商品ToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            GoodInfo gd = new GoodInfo();

            if (dataGridView1.SelectedRows.Count <= 0)
            {
                MessageBox.Show("请选择要修改的商品!");
            }
            else
            {
                var row = dataGridView1.SelectedRows[0];

                gd.Gno = row.Cells["spNumber"].Value.ToString();

                xgspFrom xg = xgspFrom.Create();
                xg.Add(gd);
                xg.Loadevent += loadevent;
                xg.Show();
                xg.Focus();
            }
        }
Exemple #3
0
 private void xgspFrom_FormClosed(object sender, FormClosedEventArgs e)
 {
     xg = null;
 }