コード例 #1
0
        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
        }
コード例 #2
0
        public CustomerZoom()
        {
            InitializeComponent();
            newCustomerKey = new CodeProject.SystemHotkey.SystemHotkey();

            newCustomerKey.Shortcut = System.Windows.Forms.Shortcut.CtrlN;
            newCustomerKey.Pressed += new System.EventHandler(this.cmdNew_Click);
        }
コード例 #3
0
ファイル: Customer.cs プロジェクト: anthonied/LiquidPastel
        public Customer()
        {
            InitializeComponent();
            SearchCustomeHotKey = new CodeProject.SystemHotkey.SystemHotkey();

            SearchCustomeHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
            SearchCustomeHotKey.Pressed += new System.EventHandler(this.cmdSearch_Click);
        }
コード例 #4
0
        public PickingSlipLine()
        {
            InitializeComponent();
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.OnHandlePaint);
            Graphics g = this.CreateGraphics();

            deleteHotKey = new CodeProject.SystemHotkey.SystemHotkey();
            //deleteHotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlD;
            //deleteHotKey.Pressed += new System.EventHandler(this.removeLine);
        }
コード例 #5
0
        internal TasksLogControl()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            hotKey          = new CodeProject.SystemHotkey.SystemHotkey(this.components);
            hotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftT;
            hotKey.Pressed += new System.EventHandler(hotKey_Pressed);

            worker.DoWork             += new DoWorkEventHandler(worker_DoWork);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
            notifyIcon.MouseDown      += new MouseEventHandler(notifyIcon_MouseDown);
            notifyTimer.Elapsed       += new ElapsedEventHandler(notifyTimer_Elapsed);
            notifyIcon.Click          += new EventHandler(notifyIcon_Click);
            addTaskButton.Click       += new EventHandler(addTaskButton_Click);
            this.taskList.DoubleClick += new EventHandler(taskList_DoubleClick);
            this.logDate.CloseUp      += new EventHandler(logDate_CloseUp);
            this.logDate.DropDown     += new EventHandler(logDate_DropDown);

            Tasks.TaskChanged                      += new Tasks.TaskChangeEventHandler(TasksDataTable_TasksRowChanged);
            Tasks.TaskDeleting                     += new Tasks.TaskChangeEventHandler(TasksDataTable_TasksRowDeleting);
            Tasks.TaskDeleted                      += new Tasks.TaskChangeEventHandler(Tasks_TasksRowDeleted);
            Logs.LogChanged                        += new Logs.LogChangeEventHandler(TasksLog_LogChanged);
            Logs.CurrentLogDurationChanged         += new ElapsedEventHandler(Logs_CurrentLogDurationChanged);
            ApplicationsLog.ApplicationsLogChanged +=
                new ApplicationsLog.ApplicationLogChangeEventHandler(ApplicationsLog_ApplicationsLogChanged);
            this.taskList.SmallImageList = IconsManager.IconsList;
            this.Load += new EventHandler(TasksLogControl_Load);

            Configuration config;

            config = ConfigurationHelper.GetConfiguration(ConfigurationKey.ShowTasksFullPath);

            if (config.Value.ToString().CompareTo("1") == 0)
            {
                this.pathCheckBox.Checked = true;
            }
            else
            {
                this.pathCheckBox.Checked = false;
            }

            this.Status = String.Empty;

            CreateRigthClickMenu();
            CreateNotifyMenu();
        }
コード例 #6
0
ファイル: Qoute.cs プロジェクト: anthonied/LiquidPastel
 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;
 }
コード例 #7
0
ファイル: ViewVideo.cs プロジェクト: buidan/dreamviewer
        public ViewVideo()
        {
            InitializeComponent();
            vlc = new LibVlc();
            vlc.Initialize();
            vlc.VideoOutput = ekran;

            gEkran = vlc;

            // inicializiraj OSD
            oi = new OSD.OSDInfo();

            // REgistruj
            this.sH_osdInfo = new CodeProject.SystemHotkey.SystemHotkey(this.components);
            this.sH_osdInfo.Shortcut = System.Windows.Forms.Shortcut.AltF6;
            this.sH_osdInfo.Pressed += new System.EventHandler(this.shOSDInfo_Pressed);
        }
コード例 #8
0
ファイル: TasksLogControl.cs プロジェクト: ckolumbus/ptm
        internal TasksLogControl()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            hotKey = new CodeProject.SystemHotkey.SystemHotkey(this.components);
            hotKey.Shortcut = System.Windows.Forms.Shortcut.CtrlShiftT;
            hotKey.Pressed += new System.EventHandler(hotKey_Pressed);

            worker.DoWork += new DoWorkEventHandler(worker_DoWork);
            worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted);
            notifyIcon.MouseDown+=new MouseEventHandler(notifyIcon_MouseDown);
            notifyTimer.Elapsed += new ElapsedEventHandler(notifyTimer_Elapsed);
            notifyIcon.Click+=new EventHandler(notifyIcon_Click);
            addTaskButton.Click += new EventHandler(addTaskButton_Click);
            this.taskList.DoubleClick += new EventHandler(taskList_DoubleClick);
            this.logDate.CloseUp += new EventHandler(logDate_CloseUp);
            this.logDate.DropDown += new EventHandler(logDate_DropDown);

            Tasks.TaskChanged += new Tasks.TaskChangeEventHandler(TasksDataTable_TasksRowChanged);
            Tasks.TaskDeleting += new Tasks.TaskChangeEventHandler(TasksDataTable_TasksRowDeleting);
            Tasks.TaskDeleted += new Tasks.TaskChangeEventHandler(Tasks_TasksRowDeleted);
            Logs.LogChanged += new Logs.LogChangeEventHandler(TasksLog_LogChanged);
            Logs.CurrentLogDurationChanged += new ElapsedEventHandler(Logs_CurrentLogDurationChanged);
            ApplicationsLog.ApplicationsLogChanged +=
                new ApplicationsLog.ApplicationLogChangeEventHandler(ApplicationsLog_ApplicationsLogChanged);
            this.taskList.SmallImageList = IconsManager.IconsList;
            this.Load += new EventHandler(TasksLogControl_Load);

            Configuration config;
            config = ConfigurationHelper.GetConfiguration(ConfigurationKey.ShowTasksFullPath);

            if (config.Value.ToString().CompareTo("1") == 0)
                this.pathCheckBox.Checked = true;
            else
                this.pathCheckBox.Checked = false;

            this.Status = String.Empty;

            CreateRigthClickMenu();
            CreateNotifyMenu();
        }