public AssignDonor(BDMSData.PatientInfo info)
        {
            InitializeComponent();
            if (info != null)
            {
                patientsIdTB.Text = info.id;
                patientsNameTB.Text = info.name;
                bloodGroup.Text = info.bloodGroup;
                expectedDate.Text =info.expectedDate.ToString();
                admittedAddressTB.Text = info.admittedAddress;
                contactNoBtn.Text = info.phone;

            }
        }
        public AddUpcomingEventWindow(BDMSData.EventInfo info)
        {
            InitializeComponent();

            if (info != null)
            {
                isEdit = true;
                eventTitleBtn.Text = info.eventTitle;
                dOEDatePicker.Text = info.eventDoe.ToString();
                venueBtn.Text = info.eventVenue;
                goalofEventBtn.Text = info.eventGoal;

                eventId = info.id;
            }
        }
        public AddHospitalDoctorBloodBankWindow(BDMSData.HdbbInfo info)
        {
            InitializeComponent();

            if (info != null)
            {
                isEdit = true;
                typeComboBox.Text = info.type;
                nameTB.Text = info.name;
                addressTB.Text = info.address;
                contactNoTB.Text = info.phone;

                hdbbId = info.id;
            }
        }
        public MemberDetailsWindow(BDMSData.MemberInfo info)
        {
            InitializeComponent();

            if (info != null)
            {
                isEdit = true;
                membersNameTB.Text = info.name;
                dOJDatePicker.Text = info.doj.ToString();
                addressTB.Text = info.address;
                contactNoTB.Text = info.phone;

                memberId = info.id;
            }
        }
        public AddExpenseWindow(BDMSData.ExpenseInfo info)
        {
            InitializeComponent();

            if (info != null)
            {
                isEdit = true;
                expensePurposeTB.Text = info.purpose;
                dOEDatePicker.Text = info.doe.ToString();
                expensedByTB.Text = info.expensed_by;
                expensedAmountsTB.Text = info.amount.ToString();

                expenseId = info.id;
            }
        }
        public AddFundWindow(BDMSData.FundInfo info)
        {
            InitializeComponent();

            if (info != null)
            {
                isEdit = true;
                well_wisher_name.Text = info.wellwisher_name;
                contactNoTB.Text = info.contact;
                dODDatePicker.Text = info.dod.ToString();
                receivedByComboBox.Text = info.received_by;
                amountsTB.Text = info.amount.ToString();

                fundId = info.id;
            }
        }
        public AddWellWisherWindow(BDMSData.WellWisherInfo info)
        {
            InitializeComponent();

            if (info != null)
            {
                isEdit = true;
                wellWishersNameTB.Text = info.name;
                dOJDatePicker.Text = info.doj.ToString();
                addressdTB.Text = info.address;
                contactNoTB.Text = info.phone;
                remarkTB.Text = info.phone;

                wellWisherId = info.id;
            }
        }
        public DonorDetailsWindow(BDMSData.DonorInfo info)
        {
            InitializeComponent();

            if (info != null)
            {
                isEdit = true;
                donorsNameTb.Text = info.name;
                bloodGroupComboBox.Text = info.bloodGroup;
                dOBDatePicker.Text = info.dob.ToString();
                addressdBtn.Text = info.address;
                contactNoTB.Text = info.phone;
                lastDonationDatePicker.Text = info.lastDonateDate.ToString();

                donorId = info.id;
            }
        }
        public RegistrationForBloodWindow(BDMSData.PatientInfo info)
        {
            InitializeComponent();
            if (info != null)
            {
                isEdit = true;
                patientsNameTB.Text = info.name;
                addressdTB.Text = info.address; //info.doj.ToString();
                bloodGroupComboBox.Text = info.bloodGroup;
                ageTB.Text = info.age.ToString();
                expectedDateDatePicker.Text = info.expectedDate.ToString();
                admittedAddressTB.Text = info.admittedAddress;
                contactNoBtn.Text = info.phone;

                patientId = info.id;
            }
        }