private void InspectionReportsXtraForm_Load(object sender, EventArgs e) { viewModel = (InspectionReportsViewModel)Program.Kernel.GetService(typeof(InspectionReportsViewModel)); BindToViewModel(); BindCommands(); viewModel.StartDate = DateTime.Now.Date; viewModel.EndDate = DateTime.Now.Date; startDate.SetLimits(); endDate.SetLimits(); }
private void InspectionReportsXtraForm_Load(object sender, EventArgs e) { viewModel = (InspectionReportsViewModel)Program.Kernel.GetService(typeof(InspectionReportsViewModel)); BindToViewModel(); BindCommands(); viewModel.StartDate = DateTime.Now.Date; viewModel.EndDate = DateTime.Now.Date; EnumWrapper <PartInspectionStatus> .LoadItems(localizedAllInspectionStatus, skip0 : true); startDate.SetLimits(); endDate.SetLimits(); }
private void InspectionReportsXtraForm_Load(object sender, EventArgs e) { viewModel = (InspectionReportsViewModel)Program.Kernel.GetService(typeof(InspectionReportsViewModel)); BindToViewModel(); BindCommands(); viewModel.StartDate = DateTime.Now.Date; viewModel.EndDate = DateTime.Now.Date; EnumWrapper<PartInspectionStatus>.LoadItems(localizedAllInspectionStatus, skip0: true); startDate.SetLimits(); endDate.SetLimits(); }
public CreateReportCommand(InspectionReportsViewModel viewModel, IMillReportsRepository repo, IUserNotify notify) { this.viewModel = viewModel; this.repo = repo; this.notify = notify; }
private void InspectionReportsXtraForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e) { commandManager.Dispose(); viewModel = null; }