private void Restorations1_Click(object sender, EventArgs e) { this.Enabled = false; Restoration restorationOpen = new Restoration(this, ref dataset, ref CFunc); restorationOpen.Show(); }
public RestorationAdd(Restoration tempRestorationWindow, ref DataSetMuseum tempDataset, ref ControlFunction tempControlFunction) { InitializeComponent(); RW = tempRestorationWindow; dataset = tempDataset; CFunc = tempControlFunction; RestorationRestorerComboBox.DataSource = dataset.Restorer; RestorationRestorerComboBox.DisplayMember = "Name"; RestorationRestorerComboBox.ValueMember = "ID"; comboBoxExhibit.DataSource = dataset.Exhibit; comboBoxExhibit.DisplayMember = "Name"; comboBoxExhibit.ValueMember = "ID"; CanChooseRestorer = true; CanChooseExhibit = true; }