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 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();
        }
示例#3
0
 private void HeatXtraForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     viewModel.Dispose();
     viewModel = null;
 }