public Delete_Patients()
 {
     InitializeComponent();
     ValidateData = new Data_Validator();
     Error = new ErrorProvider();
     Delete = new DCEntities();
 }
Example #2
0
 public Delete_Patients()
 {
     InitializeComponent();
     ValidateData = new Data_Validator();
     Error        = new ErrorProvider();
     Delete       = new DCEntities();
 }
 public Statistics()
 {
     InitializeComponent();
     ValidateData = new Data_Validator();
     Stats = new DCEntities();
     Error = new ErrorProvider();
     BS = new BindingSource();
     con = new DataSourceConnection();
     IntializeComboboxes();
 }
 public Statistics()
 {
     InitializeComponent();
     ValidateData = new Data_Validator();
     Stats        = new DCEntities();
     Error        = new ErrorProvider();
     BS           = new BindingSource();
     con          = new DataSourceConnection();
     IntializeComboboxes();
 }
 public Edit_Patient(int Patient_ID, int Age, String Patient_Name, String Home_no, String Mobile_no, String Address, String Cheif_comp, String Medical_Alr,
     String Comments, String Sex, String RelativeMarriage, DateTime VisitDate, DateTime BirthDate, byte[] PatientPhoto, List<Bitmap> xray_images, List<String> xrayimagesNames,
     Double D, Double M, Double F, Double d, Double m, Double f, Double _D, Double E, Double _F, List<List<String>> DiagnosisAndTPs_table, List<List<String>> DatesAndProc_table)
 {
     InitializeComponent();
     EPatient_ID = Patient_ID;
     EAge = Age;
     EPatient_Name = Patient_Name;
     EHome_no = Home_no;
     EMobile_no = Mobile_no;
     EAddress = Address;
     ECheif_comp = Cheif_comp;
     EMedical_Alr = Medical_Alr;
     EComments = Comments;
     ESex = Sex;
     ERelativeMarriage = RelativeMarriage;
     EVisitDate = VisitDate;
     EBirthDate = BirthDate;
     EPatientPhoto = PatientPhoto;
     Xray_images = xray_images;
     XrayimagesNames = xrayimagesNames;
     ED = D;
     EM = M;
     EF = F;
     Ed = d;
     Em = m;
     Ef = f;
     E_D = _D;
     EE = E;
     E_F = _F;
     ID = EPatient_ID;
     this.Name = "Edit " + EPatient_Name + " Profile";
     EDiagnosisAndTPs_table = DiagnosisAndTPs_table;
     EDatesAndProc_table = DatesAndProc_table;
     Patient_Xray_images = new List<Bitmap>();
     XrayImagesNames = new List<String>();
     con = new DataSourceConnection();
     BS = new BindingSource();
     ValidateData = new Data_Validator();
     Error = new ErrorProvider();
     DataUpdater = new DCEntities();
     Patient = new Patient_info();
     Updated_DiagnosisAndTPs_table = new List<List<String>>();
     Updated_DatesAndProc_table = new List<List<String>>();
     DiagnosisAndTPsIsChanged = false;
     DatesAndProceduresIsChanged = false;
     DiagnosisAndTPsIsPressed = false;
     DatesAndProceduresIsPressed = false;
     AddnewXrayImagesIsPressed = false;
     AddnewPatient_saveAndConfirm_button.Visible = false;
     AddNewPatientSaveAndConfirmIsPressed = false;
     XrayViewerImageIndex = 0;
     IntializeComboBoxes();
     FillFormData();
 }
 public Database_Browser()
 {
     InitializeComponent();
     this.Text = "Database Browser";
     cont = new DCEntities();
     myDSconnection = new DataSourceConnection();
     newBS = new BindingSource();
     NumberOfPatients = (from P in Login_Form.context.Patient_info select P).Count();
     NormalConnection();
     DataSourceCon("SELECT * FROM Patient_info");
 }
Example #7
0
 public Database_Browser()
 {
     InitializeComponent();
     this.Text        = "Database Browser";
     cont             = new DCEntities();
     myDSconnection   = new DataSourceConnection();
     newBS            = new BindingSource();
     NumberOfPatients = (from P in Login_Form.context.Patient_info select P).Count();
     NormalConnection();
     DataSourceCon("SELECT * FROM Patient_info");
 }
 public Login_Form()
 {
     InitializeComponent();
     context        = new DCEntities();
     DiagnosisList  = new List <String>();
     ProceduresList = new List <String>();
     DiagList       = new DataTable();
     ProcList       = new DataTable();
     ValidateData   = new Data_Validator();
     Error          = new ErrorProvider();
     PasswordtextBox.PasswordChar = '*';
     PasswordtextBox.MaxLength    = 20;
 }
 public Login_Form()
 {
     InitializeComponent();
     context = new DCEntities();
     DiagnosisList = new List<String>();
     ProceduresList = new List<String>();
     DiagList = new DataTable();
     ProcList = new DataTable();
     ValidateData = new Data_Validator();
     Error = new ErrorProvider();
     PasswordtextBox.PasswordChar = '*';
     PasswordtextBox.MaxLength = 20;
    
 }
 public Patient_Profile_Viewer(int id)
 {
     InitializeComponent();
     Patient_ID = id;
     RetrievedContext = new DCEntities();
     ValidateData = new Data_Validator();
     Patient = new Patient_info();
     Xray_images = new List<Bitmap>();
     XrayimagesNames = new List<String>();
     Diagnosis = new List<String>();
     TreatmentPlans = new List<String>();
     DiagnosisAndTPs_table = new List<List<String>>();
     DatesAndProc_table = new List<List<String>>();
     ViewPatientProfile();
     XrayViewerImageIndex = 0;
 }
 public Search()
 {
     InitializeComponent();
     SearchContext = new DCEntities();
     Patient = new Patient_info();
     Diagnose = new Diagnosis();
     Date = new Date();
     con = new DataSourceConnection();
     BS = new BindingSource();
     ValidateData = new Data_Validator();
     Error = new ErrorProvider();
     TableNames = new Dictionary<String, String>();
     SearchOptions = new List<String>();
     
     IntializeLists();
 }
Example #12
0
        public Search()
        {
            InitializeComponent();
            SearchContext = new DCEntities();
            Patient       = new Patient_info();
            Diagnose      = new Diagnosis();
            Date          = new Date();
            con           = new DataSourceConnection();
            BS            = new BindingSource();
            ValidateData  = new Data_Validator();
            Error         = new ErrorProvider();
            TableNames    = new Dictionary <String, String>();
            SearchOptions = new List <String>();

            IntializeLists();
        }
 public Patient_Profile_Viewer(int id)
 {
     InitializeComponent();
     Patient_ID            = id;
     RetrievedContext      = new DCEntities();
     ValidateData          = new Data_Validator();
     Patient               = new Patient_info();
     Xray_images           = new List <Bitmap>();
     XrayimagesNames       = new List <String>();
     Diagnosis             = new List <String>();
     TreatmentPlans        = new List <String>();
     DiagnosisAndTPs_table = new List <List <String> >();
     DatesAndProc_table    = new List <List <String> >();
     ViewPatientProfile();
     XrayViewerImageIndex = 0;
 }
Example #14
0
 public Add_new_Patient()
 {
     InitializeComponent();
     Patient_Xray_images = new List <Bitmap>();
     Diagnosis           = new List <String>();
     Treatment_plans     = new List <String>();
     XrayImagesNames     = new List <String>();
     Con          = new DataSourceConnection();
     BSS          = new BindingSource();
     Check        = new DataTable();
     ValidateData = new Data_Validator();
     Error        = new ErrorProvider();
     DataEntiry   = new DCEntities();
     DiagnosisAndTP_DataValidation = false;
     DatesAndProc_DataValidation   = false;
     NewPatientWasAdded            = false;
     AddnewPatient_saveAndConfirm_button.Visible = false;
     FillComboBoxes();
 }
 public Add_new_Patient()
 {
     InitializeComponent();
     Patient_Xray_images = new List<Bitmap>();
     Diagnosis = new List<String>();
     Treatment_plans = new List<String>();
     XrayImagesNames = new List<String>();
     Con = new DataSourceConnection();
     BSS = new BindingSource();
     Check = new DataTable();
     ValidateData = new Data_Validator();
     Error = new ErrorProvider();
     DataEntiry = new DCEntities();
     DiagnosisAndTP_DataValidation = false;
     DatesAndProc_DataValidation = false;
     NewPatientWasAdded = false;
     AddnewPatient_saveAndConfirm_button.Visible = false;
     FillComboBoxes();
 }