public AddTickets() { InitializeComponent(); controllerObj = new Controller(); UpdatePriceObj = new UpdatePrice(); /*UpdatePrice.PriceEgyptianNormal = controllerObj.GetPEN(); * UpdatePrice.PriceEgyptianStudents = controllerObj.GetPES(); * UpdatePrice.PriceForeignerNormal = controllerObj.GetPFN(); * UpdatePrice.PriceForeignerStudents = controllerObj.GetPFS();*/ }
public AddTrip() { InitializeComponent(); controllerObj = new Controller(); UpdatePriceObj = new UpdatePrice(); this.comboBox1.Items.AddRange(new object[] { "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" }); this.comboBox3.Items.AddRange(new object[] { "2018" }); for (int i = 1; i <= controllerObj.OrganizationCount(); i++) { comboBox4.Items.Add(controllerObj.OrganizationName(i)); } DataTable dt = new DataTable(); dt = controllerObj.GetTourGuides(); comboBox5.Items.Clear(); foreach (DataRow item in dt.Rows) { comboBox5.Items.Add(item[0].ToString()); } DataTable dat = new DataTable(); dat = controllerObj.GetHR(); comboBox6.Items.Clear(); foreach (DataRow item in dat.Rows) { comboBox6.Items.Add(item[0].ToString()); } label5.Hide(); label6.Hide(); textBox6.Hide(); textBox7.Hide(); button8.Hide(); PEN = UpdatePrice.PriceEgyptianNormal; PES = UpdatePrice.PriceEgyptianStudents; PFN = UpdatePrice.PriceForeignerNormal; PFS = UpdatePrice.PriceForeignerStudents; }
private void button3_Click(object sender, EventArgs e) { UpdatePrice func = new UpdatePrice(); func.Show(); }