private void Admin_Load(object sender, EventArgs e) { //-------------------Danusha Tharanga--------------------------------2/19/2014--------------------------- if (storekeeper_name == "Storekeeper") { adminTabPg.TabPages.Remove(Items); adminTabPg.TabPages.Remove(Users); adminTabPg.TabPages.Remove(Report); adminTabPg.TabPages.Remove(Supplier); } //------------------------------------------------------------------------------------------------------- //-------------------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); //------------------------------------------------------------------------------------------------------- //-------------------Ravisha Weerasekara------------------------------2/7/2014---------------------------- KeyPressEvent kpe = new KeyPressEvent(); kpe.manualBilling("admin", "", this, "itm"); kpe.manualBilling("admin", "", this, "usrs"); kpe.manualBilling("admin", "", this, "qty"); kpe.manualBilling("admin", "", this, "sup"); this.KeyPreview = true; this.textBox6.KeyDown += new KeyEventHandler(textBox6_KeyDown); this.textBox24.KeyDown += new KeyEventHandler(textBox24_KeyDown); this.txtBoxSearch.KeyDown += new KeyEventHandler(txtBoxSearch_KeyDown); this.textBox18.KeyDown += new KeyEventHandler(textBox18_KeyDown); //------------------------------------------------------------------------------------------------------- //---------------------------Aruna Udayana - supplier tab form_Load ---------------------------------- SupplierDBConnection supp = new SupplierDBConnection(); supp.search(dataGridView4); //--------------------------------------------------------------------------- ReorderForm reorder = new ReorderForm(); reorder.reorderLevel(this, Reorder); }
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); }
private void button9_Click(object sender, EventArgs e) { KeyPressEvent kpe = new KeyPressEvent(); kpe.manualBilling("admin", textBox6.Text, this); }