private void gridEmp_CellDoubleClick(object sender,ODGridClickEventArgs e) { if(PayPeriods.List.Length==0) { MsgBox.Show(this,"The adminstrator needs to setup pay periods first."); return; } if(!butTimeCard.Enabled) { return; } FormTimeCard FormTC=new FormTimeCard(_listEmployees); FormTC.EmployeeCur=_listEmployees[e.Row]; FormTC.ShowDialog(); ModuleSelected(PatCurNum); }
private void butBreaks_Click(object sender,EventArgs e) { if(PayPeriods.List.Length==0) { MsgBox.Show(this,"The adminstrator needs to setup pay periods first."); return; } FormTimeCard FormTC=new FormTimeCard(_listEmployees); FormTC.EmployeeCur=EmployeeCur; FormTC.IsBreaks=true; FormTC.ShowDialog(); ModuleSelected(PatCurNum); }
private void gridMain_CellDoubleClick(object sender,UI.ODGridClickEventArgs e) { FormTimeCard FormTC=new FormTimeCard(_listEmployees); FormTC.IsByLastName=true; FormTC.EmployeeCur=Employees.GetEmp(PIn.Long(MainTable.Rows[e.Row]["EmployeeNum"].ToString())); FormTC.SelectedPayPeriod=SelectedPayPeriod; FormTC.ShowDialog(); FillMain(); }