private void AccAdd_Click(object sender, EventArgs e) { LoginAddForm LF = LoginAddForm.GetInstance(); LF.Owner = this; LF.Left = Left + Width; LF.Top = Top; LF.ShowDialog(); }
public LoginAddForm() { InitializeComponent(); SetGrayText(LGN, LGN_DEF); SetGrayText(PSW, PSW_DEF); SetGrayText(PNU, PNU_DEF); SetGrayText(DES, DES_DEF); ActiveControl = AddButton; Instance = this; }
private void LoginAddForm_FormClosing(object sender, FormClosingEventArgs e) { Instance = null; }