Пример #1
0
        public fAccount(string username)
        {
            InitializeComponent();

            DropShadow dr = new DropShadow();

            dr.ApplyShadows(this);

            txtUser.Text       = username;
            this.StartPosition = FormStartPosition.CenterScreen;
        }
Пример #2
0
        public fAddTable(int ID)
        {
            InitializeComponent();
            txtID.Text = ID.ToString();

            DropShadow shadow = new DropShadow();

            shadow.ApplyShadows(this);

            this.FLAG = 0;
        }
        public fViewProfile(int ID, string name, DateTime BirthDate, string pos, string phone, byte[] img)
        {
            InitializeComponent();

            DropShadow dr = new DropShadow();

            dr.ApplyShadows(this);

            txtID.Text    = ID.ToString();
            txtName.Text  = name;
            txtBirth.Text = BirthDate.ToString("dd/M/yyyy");
            txtPos.Text   = pos;
            txtPhone.Text = phone;
            if (img == null)
            {
                this.ptbImage.Image = null;
            }
            else
            {
                MemoryStream mstream = new MemoryStream(img);
                ptbImage.Image    = Image.FromStream(mstream);
                ptbImage.SizeMode = PictureBoxSizeMode.StretchImage;
            }
        }
Пример #4
0
        private void fSetSalary_Load(object sender, EventArgs e)
        {
            DropShadow shadow = new DropShadow();

            shadow.ApplyShadows(this);
        }
Пример #5
0
        private void fAddStaff_Load(object sender, EventArgs e)
        {
            DropShadow shadow = new DropShadow();

            shadow.ApplyShadows(this);
        }