public PaperAddWin(MainWin mw) { InitializeComponent(); this._mw = mw; // Event handlers for watermark text in textboxes papNmeTxBx.GotFocus += new EventHandler(this.NameGotFocus); papNmeTxBx.LostFocus += new EventHandler(this.NameLostFocus); papCodeTxBx.GotFocus += new EventHandler(this.CodeGotFocus); papCodeTxBx.LostFocus += new EventHandler(this.CodeLostFocus); papCoordTxBx.GotFocus += new EventHandler(this.CoordGotFocus); papCoordTxBx.LostFocus += new EventHandler(this.CoordLostFocus); }
public StudentAddWin(MainWin mw) { InitializeComponent(); this._mw = mw; // Event handlers for watermark text in textboxes sdtNmeTxBx.GotFocus += new EventHandler(this.NameGotFocus); sdtNmeTxBx.LostFocus += new EventHandler(this.NameLostFocus); sdtBirTxBx.GotFocus += new EventHandler(this.BirthdayGotFocus); sdtBirTxBx.LostFocus += new EventHandler(this.BirthdayLostFocus); sdtIDTxBx.GotFocus += new EventHandler(this.IdGotFocus); sdtIDTxBx.LostFocus += new EventHandler(this.IdLostFocus); sdtAdyTxBx.GotFocus += new EventHandler(this.AddressGotFocus); sdtAdyTxBx.LostFocus += new EventHandler(this.AddressLostFocus); }