public RenamePC(NetworkItems NI, ALEmanCafeServer ACS) { InitializeComponent(); this.NI = NI; this.ACS = ACS; this.NewNameTextBox.KeyDown += NewNameTextBox_KeyDown; }
public SellingOperate(ALEmanCafeServer ACS2, ProductsInfos PI) { InitializeComponent(); this.PI = PI; this.ACS2 = ACS2; this.TimeTextBox.KeyDown += new KeyEventHandler(TimeTextBox_KeyDown); TimeTextBox.TextChanged += new EventHandler(TimeTextBox_TextChanged); TimeTextBox.SelectAll(); maskedTextBox1.Text = PI.Price + (Program.OrLanguage == true ? " EGP" : " جنيه"); if (Program.OrLanguage == false) { this.Text = "عملية بيع/إسترجاع"; this.RightToLeft = RightToLeft.Yes; label3.Text = "البيع والإسترجاع"; label1.Text = "الكمية "; label2.Text = "السعر"; CancelCloseButton.Text = "خروج"; OKButton.Text = "حسناً"; } }
public AddProduct(ALEmanCafeServer ACS2, ProductsInfos PI = null) { InitializeComponent(); this.ACS2 = ACS2; foreach (string PT in ProductsInfos.PTypes) { this.TypeComboBox.Items.Add(PT); } if (PI != null) { this.NameTextBox.Text = PI.PName; if (string.IsNullOrEmpty(PI.ImageURL)) { try { this.pictureBox1.Image = Image.FromFile(ProductsInfos.ImagesURL + PI.ImageURL); this.pictureBox1.Visible = true; } catch { } } } }