|
namespace emx.tcp.caliburn.loading.modules.moduleB.ViewModels
{
using System.Windows;
using System.Windows.Media;
using System;
using System.Windows.Controls;
using System.Data;
using Caliburn.Core.Metadata;
using Caliburn.PresentationFramework.ApplicationModel;
using emx.tcp.caliburn.loading.modules.moduleB.ViewModels.Interfaces;
using emx.tcp.caliburn.loading.modules.moduleB.Models;
using emx.tcp.caliburn.loading.shared.Services.Interfaces;
[PerRequest(typeof(ITaskAddEditViewModel))]
public class TaskAddEditViewModel : Presenter, ITaskAddEditViewModel
{
private Task _task;
private IParametersService _parametersService;
public TaskAddEditViewModel(IParametersService parametersService)
{
_parametersService = parametersService;
base.DisplayName = "Module B - Task - " + parametersService.Parameters["Action"].ToString();
_task = (Task)parametersService.Parameters["CurrentItem"];
RaisePropertyChangedEventImmediately("Task");
}
public Task Task
{
get
{
return _task;
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Contractor in Desktop and Web applications.
Gold Coast, Queensland.