Ejemplo n.º 1
0
        // anbar, edit
        private void button13_Click(object sender, EventArgs e)
        {
            Confirmation frm = new Confirmation(0, "addStock");

            frm.FormClosing += new FormClosingEventHandler(Form3_FormClosing);
            frm.Show();
        }
Ejemplo n.º 2
0
        public static void AskConf_Add(string sql, string type = "add")
        {
            Confirmation frm = new Confirmation(sql, type);

            frm.FormClosing += new FormClosingEventHandler(Form2_FormClosing);
            frm.Show();
        }
Ejemplo n.º 3
0
        public static void AskConf_Stock(int sql, string type = "delStock")
        {
            Confirmation frm = new Confirmation(sql, type);

            frm.FormClosing += new FormClosingEventHandler(StockConfirmed);
            frm.Show();
        }
Ejemplo n.º 4
0
        public static void AskConfirmation(int id, string type)
        {
            Confirmation frm = new Confirmation(id, type);

            frm.FormClosing += new FormClosingEventHandler(Form2_FormClosing);
            frm.Show();
        }
Ejemplo n.º 5
0
 private void button15_Click(object sender, EventArgs e)
 {
     if (listView9.SelectedItems.Count == 0)
     {
         MessageBox.Show("Silmək üçün heç nə seçməmisiniz!");
     }
     else if (listView9.SelectedItems.Count > 1)
     {
         MessageBox.Show("Eyni anda bir neçə elementi silmək mümkün deyil!");
     }
     else
     {
         string stockItem = listView9.SelectedItems[0].SubItems[0].Text;
         int    j         = 0;
         Int32.TryParse(stockItem, out j);
         //Utility.DeleteStockItem(j);
         Confirmation frm = new Confirmation(j, "delStock");
         frm.FormClosing += new FormClosingEventHandler(Form2_FormClosing);
         frm.Show();
     }
 }