Inheritance: ViewModelBase, IDisposable
Beispiel #1
0
        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;
 }
 public CreateReportCommand(InspectionReportsViewModel viewModel, IMillReportsRepository repo, IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.repo      = repo;
     this.notify    = notify;
 }
Beispiel #6
0
 private void InspectionReportsXtraForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     commandManager.Dispose();
     viewModel = null;
 }
 private void InspectionReportsXtraForm_FormClosed(object sender, System.Windows.Forms.FormClosedEventArgs e)
 {
     commandManager.Dispose();
     viewModel = null;
 }