private void BtRefresh_Click(object sender, RoutedEventArgs e) { if (tb_Employee.IsSelected) { ESearchControl.ResetSearchControl(); employee = new EmployeeModel(this); } else if (tb_EmployeePD.IsSelected) { PDSearchControl.ResetSearchControl(); pd = new EmployeePDModel(this); } else if (tb_EmployeeJI.IsSelected) { JISearchControl.ResetSearchControl(); ji = new EmployeeJIModel(this); } else if (tb_EmployeeJS.IsSelected) { JSSearchControl.ResetSearchControl(); js = new EmployeeJSModel(this); } else if (tb_EmployeeTD.IsSelected) { TDSearchControl.ResetSearchControl(); td = new EmployeeTDModel(this); } else if (tb_EmployeePC.IsSelected) { PCSearchControl.ResetSearchControl(); pc = new EmployeePCModel(this); } else if (tb_EmployeeCDWD.IsSelected) { CDWDSearchControl.ResetSearchControl(); cdwd = new EmployeeCDWDModel(this); } else if (tb_EmployeeOC.IsSelected) { OCSearchControl.ResetSearchControl(); oc = new EmployeeOCModel(this); } else if (tb_EmployeeEIMWS.IsSelected) { EIMWSSearchControl.ResetSearchControl(); eimws = new EmployeeEIMWSModel(this); } }
private void BtRefresh_Click(object sender, RoutedEventArgs e) { if (tb_Employee.IsSelected) { ESearchControl.ResetSearchControl(); employee = new EmployeeModel(this); } else if (tb_EmployeePD.IsSelected) { PDSearchControl.ResetSearchControl(); pd = new EmployeePDModel(this); } else if (tb_EmployeeJI.IsSelected) { JISearchControl.ResetSearchControl(); ji = new EmployeeJIModel(this); } else if (tb_EmployeeJS.IsSelected) { JSSearchControl.ResetSearchControl(); js = new EmployeeJSModel(this); } }