private void Admin_Load(object sender, EventArgs e) { //-------------------Dilanka Rathnayaka------------------------------2/9/2014---------------------------- Reports rep = new Reports(); //set dates rep.FormLoadDateTimePicker(dateTimePicker1, dateTimePicker2); //Set Cashier names to combo box rep.FormLoadComboBox(comboBox1, comboBox2); //------------------------------------------------------------------------------------------------------- KeyPressEvent kpe = new KeyPressEvent(); kpe.manualBilling("admin", "", this); this.KeyPreview = true; this.textBox6.KeyDown += new KeyEventHandler(textBox6_KeyDown); }
//Report tab DONE button click event private void button12_Click_1(object sender, EventArgs e) { Reports rep = new Reports(); rep.DoneButtonClick(comboBox1, comboBox2, comboBox4, dateTimePicker1, dateTimePicker2, dataGridView3); }
private void comboBox4_TextChanged(object sender, EventArgs e) { if (comboBox4.Text != "") { string cmbText = comboBox4.Text; //comboBox4.Items.Clear(); Reports rep = new Reports(); rep.ComboBoxTextchange(comboBox4, cmbText); } else comboBox4.Items.Clear(); }