Пример #1
0
        private void button_editProvider_Click(object sender, EventArgs e)
        {
            DataRow selectedDataRow = ((DataRowView)comboBox_provider.SelectedItem).Row;
            string provider_id = Convert.ToString(selectedDataRow[Constants.column_providerId]);
            string provider_name = Convert.ToString(selectedDataRow[Constants.column_providerName]);

            ProviderEditor providerEditorForm =
                new ProviderEditor(provider_id, provider_name);
            providerEditorForm.ShowDialog();
            RefreshComboBoxes();
        }
Пример #2
0
 private void button_addProvider_Click(object sender, EventArgs e)
 {
     ProviderEditor providerEditorForm = new ProviderEditor();
     providerEditorForm.ShowDialog();
     RefreshComboBoxes();
 }