Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.MinimumSize = this.Size;
            this.MaximumSize = this.Size;

            txtName.Text  = Name;
            user.Password = User_Password;

            if (user.SelectImage())
            {
                Image img = MyControls.FileImage.ImageFromByte(user.Image);
                if (img != null)
                {
                    user_pic.Image = img;
                }
            }
            //else MessageBox.Show(user.Error);
        }
Exemplo n.º 2
0
        private void frmUser_Setting_Load(object sender, EventArgs e)
        {
            DAL.User user = new DAL.User();
            user.Password = Password;

            if (user.SelectImage())
            {
                user_pic.Image      = MyControls.FileImage.ImageFromByte(user.Image);
                txtName.Text        = user.Name;
                txtPhoneNumber.Text = user.PhoneNumber;
                txtAddress.Text     = user.Address;
                txtPassword.Text    = user.Password.ToString();
            }
            else
            {
                MessageBox.Show(user.Error);
            }
        }