Наследование: ViewModelBase, IDisposable
Пример #1
0
 public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo,
     IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.notify = notify;
     this.repo = repo;
 }
Пример #2
0
 public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo,
                        IUserNotify notify)
 {
     this.viewModel = viewModel;
     this.notify    = notify;
     this.repo      = repo;
 }
Пример #3
0
        public HeatXtraForm(string heatNumber)
        {
            InitializeComponent();
            SetControlsTextLength();
            viewModel = (HeatViewModel)Program.Kernel.Get <HeatViewModel>(new ConstructorArgument("heatNumber", heatNumber));

            if (viewModel.Heat == null)
            {
                CreateHeat(heatNumber);
            }
            else
            {
                this.ShowDialog();
            }


            number.SetAsIdentifier();
        }
Пример #4
0
        public HeatXtraForm(string heatNumber)
        {
            InitializeComponent();
            SetControlsTextLength();
            viewModel = (HeatViewModel)Program.Kernel.Get<HeatViewModel>(new ConstructorArgument("heatNumber", heatNumber));

            if(viewModel.Heat == null)
            {
                CreateHeat(heatNumber);
            }
            else
            {
                this.ShowDialog();
            }


            number.SetAsLookUpIdentifier();
        }
Пример #5
0
 public SaveHeatCommand(HeatViewModel viewModel, IHeatRepositories repo)
 {
     this.viewModel = viewModel;
     this.repo = repo;
 }
Пример #6
0
 private void HeatXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     viewModel.Dispose();
     viewModel = null;
 }
Пример #7
0
 private void HeatXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     viewModel.Dispose();
     viewModel = null;
 }