Exemplo n.º 1
0
        private void GetInfoToChangeDirectory(string pole1name, string pole2name)  //Считывает информацию необходимую для изменения
        {
            int        id       = (int)dataGridView1[0, dataGridView1.CurrentRow.Index].Value;
            string     table2id = (string)dataGridView1[1, dataGridView1.CurrentRow.Index].Value.ToString();
            string     pole     = dataGridView1[2, dataGridView1.CurrentRow.Index].Value.ToString();
            Справочник UpdDir   = new Справочник(id, table2id, pole, pole1name, pole2name);

            UpdDir.ShowDialog();
        }
Exemplo n.º 2
0
        private void добавитьToolStripMenuItem_Click(object sender, EventArgs e)
        {
            switch (CurrWork)
            {
            case "Банк":
                Банки bk = new Банки();
                bk.ShowDialog();
                LoadBanks();
                break;

            case "Вкладчик":
                Вкладчики inv = new Вкладчики();
                inv.ShowDialog();
                LoadInvestors();
                break;

            case "Вклад":
                Вклады dep = new Вклады();
                dep.ShowDialog();
                LoadDeposits();
                Rub();
                LoadDeposits();
                TotalSumm();
                break;

            case "Срок":
                Справочник dir = new Справочник("Срок", "Срок", "Ответственность");
                dir.ShowDialog();
                LoadDirectory("Срок", "Ответственность");
                TakeTimeID(time1);
                Справочник dir1 = new Справочник(time1);
                dir1.ShowDialog();
                break;

            case "Налог":
                Справочник dir2 = new Справочник("Налог", "Налог", "Ответственность");
                dir2.ShowDialog();
                LoadDirectory("Налог", "Ответственность");
                break;

            case "Валюта":
                Валюта curr = new Валюта();
                curr.ShowDialog();
                LoadCur();
                break;
            }
        }