public fAccount(string username) { InitializeComponent(); DropShadow dr = new DropShadow(); dr.ApplyShadows(this); txtUser.Text = username; this.StartPosition = FormStartPosition.CenterScreen; }
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; } }
private void fSetSalary_Load(object sender, EventArgs e) { DropShadow shadow = new DropShadow(); shadow.ApplyShadows(this); }
private void fAddStaff_Load(object sender, EventArgs e) { DropShadow shadow = new DropShadow(); shadow.ApplyShadows(this); }