Esempio n. 1
0
        private void frmSettings_Load(object sender, EventArgs e)
        {
            BusinessManager BM = new BusinessManager();

            byte[] data = BM.BALGetImageData();
            pictureBox1.Image = BM.BbyteArrayToImage(data);
        }
Esempio n. 2
0
        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)));
        }