private void frmSettings_Load(object sender, EventArgs e) { BusinessManager BM = new BusinessManager(); byte[] data = BM.BALGetImageData(); pictureBox1.Image = BM.BbyteArrayToImage(data); }
private void frmMainMenu_Load(object sender, EventArgs e) { toolStripStatusLabel4.Text = System.DateTime.Now.ToString("dd/MM/yyyy"); Start_Timer(); BusinessManager BM = new BusinessManager(); BOAddUser BO = new BOAddUser(); BO.Username = lblUser.Text; byte[] data = BM.BALGetImageData(); pictureBox1.Image = BM.BbyteArrayToImage(data); SetButtonsEnabledDisabled(IsAdmin(BM.GetUserType(BO))); }