Ejemplo n.º 1
0
 public frmAdd(clsApplePhone applePhone)
 {
     InitializeComponent();
     this.ApplePhoneDetails = applePhone;
     isAndroid            = false;
     this.dtpDate.MaxDate = DateTime.Today;
 }
Ejemplo n.º 2
0
        private void btnAddA_Click(object sender, EventArgs e)
        {
            clsApplePhone applePhone = new clsApplePhone("", " ", "IOS", DateTime.Now, 0, clsMobilePhone.Condition.good);

            frmAdd       addApple = new frmAdd(applePhone);
            DialogResult dr       = addApple.ShowDialog();

            if (dr == DialogResult.OK)
            {
                phoneLot.AddPhone(addApple.ApplePhoneDetails);
                DisplayPhone();
            }
        }