示例#1
0
 private void btnViewTimesheet_Click(object sender, EventArgs e)
 {
     if (lvEmployee.SelectedItems.Count != 0)
     {
         frmTimesheet pForm = new frmTimesheet();
         pForm.Username = lvEmployee.SelectedItems[0].Tag.ToString();
         pForm.Show();
     }
 }
示例#2
0
        private void tmiTimesheetEmployee_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            frmTimesheet pForm = new frmTimesheet();

            pForm.MdiParent = this;
            pForm.Show();
            this.Cursor = Cursors.Default;
        }