Example #1
0
        private void endToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ListViewItem item = listviewitem.SelectedItems[0];

            cId = int.Parse(item.SubItems[0].Text);

            Bill bill = new Bill();

            bill.ComputerId = cId;

            billBLL.GetBillId(bill);

            string dateTime = DateTime.Now.ToShortTimeString();


            Bill bills = new Bill();

            bills.EndTime = DateTime.Parse(dateTime);
            bills.BillID  = StaticClass.BillID;

            billBLL.GetEndTime(bills);

            Computer pc = new Computer();

            pc.ComputerID = cId;

            computers.IsActiveFalse(pc);

            BillDetails bd = new BillDetails();

            bd.ShowDialog();
        }
Example #2
0
        private void DetailsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            BillDetails bd = new BillDetails();

            bd.ShowDialog();
        }