/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="modelData"></param>
 public ModelContext(ModelData modelData)
     : base(modelData)
 {
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="modelData"></param>
 public BaseModelContext(ModelData modelData)
 {
     this.modelData   = modelData;
     validationResult = new List <IValidationMessage>();
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="modelData"></param>
 public BaseModelContext(ModelData modelData)
 {
     this.modelData = modelData;
     validationResult = new List<IValidationMessage>();
 }
        /// <summary>
        /// Execute.
        /// </summary>
        /// <param name="modelData">Model data.</param>
        public void Execute(ModelData modelData)
        {
            // TODO: Change code here

            if (this.selectedModelElement != null)
            {
                ExampleElementViewModel vm = new ExampleElementViewModel(this.vmStore, this.selectedModelElement);

                ExampleWindow wnd = new ExampleWindow();
                wnd.DataContext = vm;
                wnd.ShowDialog();

                vm.Dispose();
            }
            else
                MessageBox.Show("No element selected!");
        }
Esempio n. 5
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="modelData"></param>
 public ModelContext(ModelData modelData)
     : base(modelData)
 {
 }