Inheritance: 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;
 }