private void SetDefaultConfig() { dataItemsSource = new BindingSource { DataSource = DataItems }; SelectDataModelPanel.Hide(); DataModelInfoGroupBox.Show(); DeleteDataModelButton.Hide(); }
private void ManageableDataModelsComboBox_SelectionChangeCommitted(object sender, EventArgs e) { ComboBox cmb = (ComboBox)sender; var id = int.Parse(cmb.SelectedValue.ToString()); if (dataModelPresenter.FindDataModel(id)) { IsEditMode = true; EditionModeLabel.Visible = true; DataModelInfoGroupBox.Show(); } }
private void UpdateDataModelRadioButton_CheckedChanged(object sender, EventArgs e) { if (UpdateDataModelRadioButton.Checked) { SelectDataModelPanel.Show(); DataModelInfoGroupBox.Hide(); DeleteDataModelButton.Show(); dataModelPresenter.ClearAll(); dataModelPresenter.LoadDataModels(); } }
private void CreateNewDataModelRadioButton_CheckedChanged(object sender, EventArgs e) { if (CreateDataModelRadioButton.Checked) { SelectDataModelPanel.Hide(); DataModelInfoGroupBox.Show(); EditionModeLabel.Visible = false; DeleteDataModelButton.Hide(); dataModelPresenter.ClearAll(); IsEditMode = true; } }