Beispiel #1
0
        private void AddRecord_Click(object sender, EventArgs e)
        {
            newRec        = new NewRecords();
            newRec.btnTxt = "Добавить";
            newRec.Show();
            newRec.FormClosed += MyClosedHandlerRecords;

            выводToolStripMenuItem.Enabled = true;
        }
Beispiel #2
0
        protected void MyClosedHandlerRedaction(object sender, EventArgs e)
        {
            if (!redactionSearch.isCancel)
            {
                int x = Int32.Parse(redactionSearch.value);

                redactionRec        = new NewRecords();
                redactionRec.Text   = "Init redaction";
                redactionRec.btnTxt = "Изменить";

                redactionRec.name         = carShop.RefreshName(x);
                redactionRec.manufacturer = carShop.RefreshManufacturer(x);
                redactionRec.price        = carShop.RefreshPrice(x);
                redactionRec.amount       = carShop.RefreshAmount(x);
                redactionRec.shopNumber   = carShop.RefreshShopNumber(x);
                redactionRec.minimumLot   = carShop.RefreshMinimumLot(x);

                redactionRec.Show();
                redactionRec.FormClosed += MyClosedHandlerInitRedaction;
            }
        }