public DonorEntryForm(DonorsListForm donorForm, string _action, int donorId, int _branchId)
        {
            this.donorForm = donorForm;
            this._action   = _action;
            this.donorId   = donorId;
            this._branchId = _branchId;

            InitializeComponent();

            comboBloodGroup.SelectedIndex = 0;
            comboGender.SelectedIndex     = 0;
            txtBirthdate.Value            = DateTime.Now.AddYears(-15);
            txtLastDonateDate.Value       = DateTime.Now.AddYears(-10);
            CheckAction(_action);
        }
Пример #2
0
        private void btnDonorInfo_Click(object sender, EventArgs e)
        {
            DonorsListForm donorsList = new DonorsListForm(0);

            donorsList.ShowDialog();
        }