private void LVQueue_MouseClick(object sender, MouseEventArgs e) { lvListOrder.Items.Clear(); if (LVQueue.SelectedIndices[0] == 0) { ViewOrder(); LVQueue.Items[0].Selected = true; LVQueue.Select(); } }
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(); }
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(); }