Esempio n. 1
0
        /// <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!");
            }
        }
        /// <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!");
        }