public frmAddSub(frmSubData owner, string SubID, string SubName, string SubTele, string SubTele2, string SubCardNum, string SubAddress, string GameName, string NumOfSessions, string StartDate, string EndDate, string ResID) { InitializeComponent(); frmSubData = owner; comboBox1.DataSource = _Games.GetAllGames(); IDSubEdit = SubID; IDResEdit = ResID; textBox1.Text = SubName; textBox2.Text = SubTele; textBox3.Text = SubTele2; textBox4.Text = SubCardNum; textBox5.Text = SubAddress; comboBox1.Text = GameName; numericUpDown1.Value = decimal.Parse(NumOfSessions); dateTimePicker1.Value = Convert.ToDateTime(StartDate); dateTimePicker2.Value = Convert.ToDateTime(EndDate); label10.Visible = false; label11.Visible = false; label12.Visible = false; label13.Visible = false; label14.Visible = false; label15.Visible = false; textBox2.TextChanged += new EventHandler(textBoxes2_TextChanged); pictureBox1.Visible = false; pictureBox2.Visible = false; dateTimePicker1.Enabled = false; dateTimePicker2.Enabled = false; numericUpDown1.Enabled = false; this.Text = "تعديل مشترك"; button1.Text = "تعديل"; }
//تجديد اشتراك //xy دي عشان تميز تجديد الاشتراك فقط public frmAddSub(frmSubData owner, string SubID, string SubName, string SubTele, string SubTele2, string SubCardNum, string SubAddress, string GameName, string NumOfSessions, string StartDate, string EndDate, string ResID, string XY) { InitializeComponent(); frmSubData = owner; IDSubEdit = SubID; IDResEdit = ResID; XYEdit = XY; label10.Text = SubName; label11.Text = SubTele; label12.Text = SubTele2; label13.Text = SubCardNum; label14.Text = SubAddress; label15.Text = GameName; textBox2.TextChanged += new EventHandler(textBoxes2_TextChanged); textBox1.Visible = false; textBox2.Visible = false; textBox3.Visible = false; textBox4.Visible = false; textBox5.Visible = false; pictureBox1.Visible = false; pictureBox2.Visible = false; comboBox1.Visible = false; label16.Visible = false; numericUpDown1.Value = decimal.Parse(NumOfSessions); dateTimePicker1.Value = Convert.ToDateTime(StartDate); dateTimePicker2.Value = Convert.ToDateTime(EndDate); this.Text = "تجديد اشتراك"; button1.Text = "تجديد"; }
public frmAddSub(frmSubData owner) { InitializeComponent(); frmSubData = owner; comboBox1.DataSource = _Games.GetAllGames(); pictureBox1.Visible = false; pictureBox2.Visible = false; textBox2.TextChanged += new EventHandler(textBoxes2_TextChanged); label10.Visible = false; label11.Visible = false; label12.Visible = false; label13.Visible = false; label14.Visible = false; label15.Visible = false; this.Text = "اضافة مشترك"; button1.Text = "اضافة"; }