예제 #1
0
 private void LVQueue_MouseClick(object sender, MouseEventArgs e)
 {
     lvListOrder.Items.Clear();
     if (LVQueue.SelectedIndices[0] == 0)
     {
         ViewOrder();
         LVQueue.Items[0].Selected = true;
         LVQueue.Select();
     }
 }
예제 #2
0
        private void frmCasher_Load(object sender, EventArgs e)
        {
            if (isView)
            {
                return;
            }

            LoadQueues();
            if (LVQueue.Items.Count == 0)
            {
                return;
            }
            LVQueue.Items[0].Selected = true;
            LVQueue.Select();
            ViewOrder();
        }
예제 #3
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show("Do you want to Cancel?", "Confirmation", MessageBoxButtons.YesNo);

            if (result == DialogResult.No)
            {
                return;
            }
            ReViewOrder();
            ClearField();
            lvListOrder.Items.Clear();
            LoadQueues();

            if (LVQueue.Items.Count == 0)
            {
                return;
            }
            LVQueue.Items[0].Selected = true;
            LVQueue.Select();
            ViewOrder();
        }