public frm_othermain() { if (frm == null) { frm = this; } InitializeComponent(); int screenWidth = Screen.PrimaryScreen.Bounds.Width; int screenHieght = Screen.PrimaryScreen.Bounds.Height; this.Size = new System.Drawing.Size(screenWidth, screenHieght - 40); lb_user_name.Text = connectiondata._username; dt_userpermissions = cl.binding_permission(connectiondata.user_id);//get alluser permissions }
private static void frm_closed(object sender, FormClosedEventArgs e) { frm = null; }