예제 #1
0
파일: MainForm.cs 프로젝트: nimazein/8-LABA
        private void button1_Click(object sender, EventArgs e)
        {
            Start start = new Start();

            start.Close();
            if (comboBox1.SelectedIndex == 0)
            {
                // Корректировать записи
                CorrectRecords correct = new CorrectRecords();
                correct.ShowDialog();
            }
            if (comboBox1.SelectedIndex == 1)
            {
                // Добавить запись
                AddingItems adding = new AddingItems();
                adding.ShowDialog();
            }
            if (comboBox1.SelectedIndex == 2)
            {
                // Delete
                DeleteFM delete = new DeleteFM();
                delete.ShowDialog();
            }
            ShowData();
        }
예제 #2
0
파일: MainForm.cs 프로젝트: nimazein/8-LABA
        void AddRecord()
        {
            AddingItems a = new AddingItems();

            a.ShowData();

            a.ShowDialog();
        }