예제 #1
0
 /// <summary>
 /// Wywolania okna dialogowego do zmiany ustawien bazy danych i zastosowanie ich
 /// </summary>
 public void ChangeDBSettings()
 {
     DatabaseSettingsForm form = new DatabaseSettingsForm();
     DatabaseSettingsController formController = new DatabaseSettingsController(form);
     formController.DbContext = dbContext;
     DialogResult dr = form.ShowDialog();
     if (dr == DialogResult.OK)
     {
         UpdateDBStatus();
     }
 }
 public DatabaseSettingsController(DatabaseSettingsForm form)
 {
     this.form = form;
     form.SetController(this);
 }