// constructor public BrowserForm() { InitializeComponent(); if (frm == null) { frm = this; } statusCurrentUser.BackColor = Color.Transparent; statusCurrentUser.Text = "المستخدم الحالى : " + Program.SalesMan;; }
// form close event fire static void frm_FormClosed(object sender, FormClosedEventArgs e) { frm = null; }