private void BuildForm() { if (fpincode == null) { fpincode = new FPincode(); } fpincode.FPincode_NeedToRefresh += VPincode_NeedToRefresh; Parent.Controls.Add(fpincode); fpincode.Dock = DockStyle.Fill; fpincode.Show(); fpincode.BringToFront(); }
void txt_pincode_NewEntryNeeded(object sender, string pValue) { if (fspincode == null) { fspincode = new FPincode(); } Parent.Controls.Add(fspincode); fspincode.Dock = DockStyle.Fill; fspincode.Show(); fspincode.BringToFront(); fspincode.Focus(); fspincode.SetAction(BtnEvent.New, null); fspincode.SetFocus(); }
void txt_pincode_NewEntryNeeded(object sender, string pValue) { if (xpincode == null) { xpincode = new FPincode(); xpincode.FPincode_NeedToRefresh += Pincode_NeedToRefresh; } this.Parent.Controls.Add(xpincode); xpincode.Dock = DockStyle.Fill; xpincode.Show(); xpincode.BringToFront(); xpincode.Focus(); xpincode.SetAction(BtnEvent.New, null); xpincode.SetFocus(); xpincode.setname(pValue); }
void Listgrid_RowAction(object sender, EventArgs e) { if (listgrid.SelectedRow == null) { return; } if (fpincode == null) { fpincode = new FPincode(); } BuildForm(); string pkValue = GetSelectedPkValue(); if (pkValue != null) { fpincode.SetAction(BtnEvent.Open, pkValue); } }