コード例 #1
0
 public EmployeeCreate()
 {
     _businessHelper = DI.GetService <IBusinessHelper>();
     InitializeComponent();
     _employeeService = DI.GetService <IEmployeeService>();
     EmployeeListFill();
     this.Closed += OnClosed;
 }
コード例 #2
0
 public TaskEdit(int taskId)
 {
     _businessHelper = DI.GetService <IBusinessHelper>();
     _taskId         = taskId;
     InitializeComponent();
     _taskService     = DI.GetService <ITaskService>();
     _employeeService = DI.GetService <IEmployeeService>();
     LoadData(taskId);
     this.Closed += OnClosed;
 }
コード例 #3
0
 public EditProject()
 {
     _businessHelper = DI.GetService <IBusinessHelper>();
     InitializeComponent();
     _projectService = DI.GetService <IProjectService>();
     ProjectListFill(_projectService.GetList().Data);
     TxtSearch.GotFocus  += RemoveText;
     TxtSearch.LostFocus += AddText;
     this.Closed         += OnClosed;
 }
コード例 #4
0
 public EmployeeEdit()
 {
     _businessHelper = DI.GetService <IBusinessHelper>();
     InitializeComponent();
     _employeeService = DI.GetService <IEmployeeService>();
     EmployeeListFill(_employeeService.GetList().Data);
     TxtSearch.GotFocus  += RemoveText;
     TxtSearch.LostFocus += AddText;
     this.Closed         += OnClosed;
 }
コード例 #5
0
 public TaskCreate()
 {
     _taskService     = DI.GetService <ITaskService>();
     _businessHelper  = DI.GetService <IBusinessHelper>();
     _employeeService = DI.GetService <IEmployeeService>();
     InitializeComponent();
     createTask        = new Entities.Task();
     _taskStateNames   = TaskStateBaseNames.ToDo;
     selectedEmployees = new List <Employee>();
     LoadData();
     this.Closed      += OnClosed;
     estDateTime.Value = _businessHelper.AvgTaskEstimated(Session.CurrentProject.Id);
 }
コード例 #6
0
 static AppHelper()
 {
     _businessHelper = DI.GetService <IBusinessHelper>();
 }
コード例 #7
0
 public CreateProject()
 {
     _businessHelper = DI.GetService <IBusinessHelper>();
     _projectService = DI.GetService <IProjectService>();
     InitializeComponent();
 }