예제 #1
0
        private void Restorations1_Click(object sender, EventArgs e)
        {
            this.Enabled = false;
            Restoration restorationOpen = new Restoration(this, ref dataset, ref CFunc);

            restorationOpen.Show();
        }
예제 #2
0
        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;
        }