public PickingSlip() { InitializeComponent(); MyPrinter = new LPrinterTest.LPrinter(); saveHotKey = new CodeProject.SystemHotkey.SystemHotkey(); loadOrderHotKey = new CodeProject.SystemHotkey.SystemHotkey(); //depositCashHotKey = new CodeProject.SystemHotkey.SystemHotkey(); //depositCardHotKey = new CodeProject.SystemHotkey.SystemHotkey(); //depositEftHotKey = new CodeProject.SystemHotkey.SystemHotkey(); depositAccountHotKey = new CodeProject.SystemHotkey.SystemHotkey(); saveHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlS; saveHotKey.Pressed += new System.EventHandler(this.cmdSaveOrder_Click); loadOrderHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlL; loadOrderHotKey.Pressed += new System.EventHandler(this.cmdSearchNumber_Click); //depositCashHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlH; //depositCashHotKey.Pressed += new System.EventHandler(this.deposit_method_click); //depositCardHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlT; //depositCardHotKey.Pressed += new System.EventHandler(this.deposit_method_click); depositAccountHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlP; //depositEftHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlE; //depositEftHotKey.Pressed += new System.EventHandler(this.deposit_method_click); //Styles }
public Qoute() { InitializeComponent(); this.ActiveControl = txtNumber; MyPrinter = new LPrinterTest.LPrinter(); saveHotKey = new CodeProject.SystemHotkey.SystemHotkey(); loadOrderHotKey = new CodeProject.SystemHotkey.SystemHotkey(); depositAccountHotKey = new CodeProject.SystemHotkey.SystemHotkey(); saveHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlS; saveHotKey.Pressed += new System.EventHandler(this.cmdSaveOrder_Click); loadOrderHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlL; loadOrderHotKey.Pressed += new System.EventHandler(this.cmdSearchNumber_Click); depositAccountHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlP; depositAccountHotKey.Pressed += new System.EventHandler(this.deposit_method_click); //Styles cssDowntimeRow.BackColor = Color.Beige; }