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); } }
public FieldLogic() { source = ClinicDatabase.GetInstance(); }
public ContactLogic() { source = ClinicDatabase.GetInstance(); }
public MainLogic() { source = ClinicDatabase.GetInstance(); }
public SpecialistServiceLogic() { source = ClinicDatabase.GetInstance(); }