Example #1
0
 public override void Display(frmEmpMan f)
 {
     base.Display(f);
     f.txtHourlyPay.Text = workerPay.ToString();
 } // end Display
        } // end Save

        // Display data in object on form
        public override void Display(frmEmpMan f)
        {
            base.Display(f);
            f.txtType.Text = clientType.ToString();
        } // end Display
Example #3
0
 public override void Save(frmEmpMan f)
 {
     base.Save(f);
     workerPay = Convert.ToDecimal(f.txtHourlyPay.Text);
 }
        }  // end Save

        // Display data in object on form
        public virtual void Display(frmEmpMan f)
        {
            f.txtName.Text      = personName;
            f.txtBirthDate.Text = personBirthDate.ToShortDateString();
            f.txtID.Text        = personID;
        }  // end Display
        }     // end Property

        // Save data from form to object
        public override void Save(frmEmpMan f)
        {
            base.Save(f);
            clientType = Convert.ToString(f.txtType.Text);
        } // end Save
        }     // End Property


        // Save data from form to object
        public virtual void Save(frmEmpMan f)
        {
            personName      = f.txtName.Text;
            personBirthDate = DateTime.Parse(f.txtBirthDate.Text);
            personID        = f.txtID.Text;
        }  // end Save
        }  // end Save

        // Display data in object on form
        public override void Display(frmEmpMan f)
        {
            base.Display(f);
            f.txtSalary.Text = managerSalary.ToString();
            f.txtBonus.Text  = managerBonus.ToString();
        }  // end Display
        }     // end Property


        // Save data from form to object
        public override void Save(frmEmpMan f)
        {
            base.Save(f);
            managerSalary = Convert.ToDecimal(f.txtSalary.Text);
            managerBonus  = Convert.ToDecimal(f.txtBonus.Text);
        }  // end Save
Example #9
0
        } // end Save

        // Display data in object on form
        public override void Display(frmEmpMan f)
        {
            base.Display(f);
            f.txtJobTitle.Text = employeeJobTitle.ToString();
        } // end Display
Example #10
0
        }     // end Property

        // Save data from form to object
        public override void Save(frmEmpMan f)
        {
            base.Save(f);
            employeeJobTitle = Convert.ToString(f.txtJobTitle.Text);
        } // end Save