Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            WorkInPrinterFirm printerFirm = new WorkInPrinterFirm(dgvPrinterFirmList);

            printerFirm.LoadFirm();
            Clear();
        }
        private void PrinterFirmForm_Load(object sender, EventArgs e)
        {
            WorkInPrinterFirm workInPrinterFirm = new WorkInPrinterFirm(dgvFirm);

            workInPrinterFirm.LoadFirm();
            PrinterFirmIDLB.Text = "0";
            PrinterFirmTB.Text   = "";
        }
Пример #3
0
        private void deleteBtn_Click(object sender, EventArgs e)
        {
            WorkInPrinterFirm workInPrinterFirm = new WorkInPrinterFirm(dgvPrinterFirmList);

            workInPrinterFirm.deleteFirm(PrinterFirmIDLab.Text);
            workInPrinterFirm.LoadFirm();
            Clear();
        }
Пример #4
0
        private void saveBtn_Click(object sender, EventArgs e)
        {
            WorkInPrinterFirm printerFirm = new WorkInPrinterFirm(dgvPrinterFirmList);

            printerFirm.createPrinterFirm(PrinterFirmIDLab.Text, PrinterFirmNameTB.Text);
            printerFirm.LoadFirm();
            Clear();
        }
        private void DeleteFirm_Click(object sender, EventArgs e)
        {
            WorkInPrinterFirm workInPrinterFirm = new WorkInPrinterFirm(dgvFirm);

            PrinterFirmForm printerFimForm = new PrinterFirmForm();

            MessageBox.Show("Вы уверены что хотите удалить данную фирму?", "Удаление", MessageBoxButtons.YesNo);
            workInPrinterFirm.deleteFirm(PrinterFirmIDLB.Text);
            workInPrinterFirm.LoadFirm();
        }