private void Init(Model model)
        {
            OnCompleted += () => {
                disposables.Dispose();
                ReleaseAll();
            };

            this.DataContext = model;

            InitializeComponent();
            BindModel(model);

            var abortCommand = new DelegateCommand(
                () => {
                //TODO: Stub fix for #225 Remove this with plugin functionality
                last        = activityContext.container.Resolve <ILastChangedModule>();
                last.module = null;
                //
                Success(new Result.Abort());
            },
                () => true
                );

            AbortCommand = abortCommand;

            var applyCommand = new DelegateCommand(
                () => {
                if (Apply != null)
                {
                    Apply();
                }
                Success(new Result.Apply(model));
            },
                () => true
                );

            ApplyCommand = applyCommand;

            btnApply.Command = ApplyCommand;
            btnAbort.Command = AbortCommand;
        }
		private void Init(Model model) {

			OnCompleted += () => {
				disposables.Dispose();
				ReleaseAll();
			};

			this.DataContext = model;

			InitializeComponent();
			BindModel(model);

			var abortCommand = new DelegateCommand(
				 () => {
					 //TODO: Stub fix for #225 Remove this with plugin functionality
					 last = activityContext.container.Resolve<ILastChangedModule>();
					 last.module = null;
					 //
					 Success(new Result.Abort());
				 },
				 () => true
			);
			AbortCommand = abortCommand;

			var applyCommand = new DelegateCommand(
				 () => {
					 if (Apply != null)
						 Apply();
					 Success(new Result.Apply(model));
				 },
				 () => true
			);
			ApplyCommand = applyCommand;

			btnApply.Command = ApplyCommand;
			btnAbort.Command = AbortCommand;
		}