Esempio n. 1
0
        private void SetDefaultConfig()
        {
            dataItemsSource = new BindingSource
            {
                DataSource = DataItems
            };

            SelectDataModelPanel.Hide();
            DataModelInfoGroupBox.Show();
            DeleteDataModelButton.Hide();
        }
Esempio n. 2
0
        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();
            }
        }
Esempio n. 3
0
        private void UpdateDataModelRadioButton_CheckedChanged(object sender, EventArgs e)
        {
            if (UpdateDataModelRadioButton.Checked)
            {
                SelectDataModelPanel.Show();
                DataModelInfoGroupBox.Hide();

                DeleteDataModelButton.Show();

                dataModelPresenter.ClearAll();
                dataModelPresenter.LoadDataModels();
            }
        }
Esempio n. 4
0
        private void CreateNewDataModelRadioButton_CheckedChanged(object sender, EventArgs e)
        {
            if (CreateDataModelRadioButton.Checked)
            {
                SelectDataModelPanel.Hide();
                DataModelInfoGroupBox.Show();

                EditionModeLabel.Visible = false;
                DeleteDataModelButton.Hide();

                dataModelPresenter.ClearAll();

                IsEditMode = true;
            }
        }