예제 #1
0
 private void buttonConnect_Click(object sender, EventArgs e)
 {
     try
     {
         ClinicDatabase.OpenСonnection(textBoxHost.Text, textBoxPort.Text, textBoxPassword.Text, textBoxBD.Text);
         this.Visible = false;
         var form = Container.Resolve <FormMain>();
         form.ShowDialog();
         Close();
     }
     catch (Exception)
     {
         MessageBox.Show("Соединение с БД не удалось установить", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #2
0
 public FieldLogic()
 {
     source = ClinicDatabase.GetInstance();
 }
예제 #3
0
 public ContactLogic()
 {
     source = ClinicDatabase.GetInstance();
 }
예제 #4
0
 public MainLogic()
 {
     source = ClinicDatabase.GetInstance();
 }
예제 #5
0
 public SpecialistServiceLogic()
 {
     source = ClinicDatabase.GetInstance();
 }