Example #1
0
 private void btnPriorities_Click(object sender, EventArgs e)
 {
     AreaPlanHelper.UI.RoomTypeForm form = new AreaPlanHelper.UI.RoomTypeForm(_config);
     if (form.ShowDialog(this) == DialogResult.OK)
     {
         configRender();
     }
 }
Example #2
0
        private void btnLoad_Click(object sender, EventArgs e)
        {
            _config = cbConfigs.SelectedItem as Config;
            if (_config == null)
            {
                _config = Config.GetDefaults();
            }

            AreaPlanHelper.UI.RoomTypeForm form = new AreaPlanHelper.UI.RoomTypeForm(_config);
            if (form.ShowDialog(this) == DialogResult.OK)
            {
                _config = form.Configuration;
                cbConfigs.Items.Insert(0, _config);
                cbConfigs.SelectedIndex = 0;
            }
        }