예제 #1
0
 private void EditSB_Click(object sender, EventArgs e)
 {
     Wares.Price.PriceData form = new Wares.Price.PriceData("edit", Convert.ToInt32(DataGV.SelectedRows[0].Cells["ID"].Value));
     form.ShowDialog();
     manager.Save();
     manager.CloseContext();
     manager = new ContextManager();
     Fill();
 }
예제 #2
0
 private void EditSB_Click(object sender, EventArgs e)
 {
     Wares.Price.PriceData form = new Wares.Price.PriceData("edit", Convert.ToInt32(DataGV.SelectedRows[0].Cells["ID"].Value));
     form.ShowDialog();
     manager.Save();
     manager.CloseContext();
     manager = new ContextManager();
     Fill();
 }
예제 #3
0
        private void NewSB_Click(object sender, EventArgs e)
        {
            Wares.Price.PriceData form;
            if (wareId == null)
            {
                form = new Wares.Price.PriceData("new", null);
            }
            else
            {
                form = new Wares.Price.PriceData("new", null, wareId);
            }

            form.ShowDialog();
            Fill();
        }
예제 #4
0
        private void NewSB_Click(object sender, EventArgs e)
        {
            Wares.Price.PriceData form;
            if(wareId == null)
               form = new Wares.Price.PriceData("new", null);
            else
               form = new Wares.Price.PriceData("new", null, wareId);

            form.ShowDialog();
            Fill();
        }