示例#1
0
 public DiagnosticDialogForm(ConnectionClass connectionClass)
 {
     InitializeComponent();
     cims = connectionClass.getListCIM();
     createAutoSuggest();
     ActiveControl = textBoxDiagnostic;
 }
示例#2
0
        public ConsultationsForm(ConnectionClass connectionClass, Patient selectedPatient)
        {
            InitializeComponent();

            this.connectionClass = connectionClass;
            this.selectedPatient = selectedPatient;
            labelPatient.Text    = selectedPatient.Name + " " + selectedPatient.LastName;

            currentConsultation = connectionClass.getLastConsultation();
            cims = connectionClass.getListCIM();
            createAutoSuggest();
            emptyFields();
            clickedAdd();
            updateDataGrid();
            if (consultations == null || consultations.Count == 0)
            {
                buttonModify.Enabled = false;
                buttonRemove.Enabled = false;
                buttonReport.Enabled = false;
            }
        }