private void MainForm_Load(object sender, EventArgs e) { ExtensionMethods.DoubleBuffered(dgw_ViewMain, true);//включаем быструю отрисовку OpenCreateForm opcrform = new OpenCreateForm(); opcrform.ShowDialog(); allData = mwdb.ReadAllData(sqlQueryAll + "types", D.DATA); while (allData.Count <= 0) { MessageBox.Show("Необходимо заполнить справочник типов приборов"); AddTypeForm addTypeForm = new AddTypeForm(); addTypeForm.ShowDialog(); allData = mwdb.ReadAllData(sqlQueryAll + "types", D.DATA); } allData.Clear(); addItemsComboBox(); }
private void btn_EditDictionaryTypes_Click(object sender, EventArgs e) { AddTypeForm addTypeForm = new AddTypeForm(); addTypeForm.ShowDialog(); }