示例#1
0
        private void PatientInformation_Load(object sender, EventArgs e)
        {
            Name_Patient.SelectedValueChanged -= Name_Patient_SelectedValueChanged1;
            MyFunction.FillComboBox(Name_Patient, PatientInfo.GetPatients(), "اسم", "الرمز");
            Name_Patient.SelectedValueChanged += Name_Patient_SelectedValueChanged1;


            MyFunction.FillComboBox(Insurance, PatientInfo.GetInsurance(), "الجهة_الضامنة", "الرمز");
            MyFunction.FillComboBox(MedcineID, PatientInfo.GetMedicine(), "اسم", "رمز");
            MyFunction.FillComboBox(InfectionDiseases, PatientInfo.GetInfectiousDeseases(), "المرض", "الرمز");
        }
示例#2
0
        public AddPatient(PatientInformation pI)
        {
            InitializeComponent();
            Thread Insurance = new Thread(() => { insurance = BAL.PatientInfo.GetInsurance(); });
            Thread City      = new Thread(() => { city = BAL.PatientInfo.GetCities(); });

            //doctor

            City.Start();
            Insurance.Start();

            City.Join();
            Insurance.Join();

            MyFunction.FillComboBox(Insurancebox, PatientInfo.GetInsurance(), "الجهة_الضامنة", "الرمز");
            MyFunction.FillComboBox(CityBox, BAL.PatientInfo.GetCities(), "المدينة", "رمز");
            CityBox.SelectedValueChanged += CityBox_SelectedValueChanged;
            PI = pI;
        }