NewComponent() public method

public NewComponent ( ) : void
return void
Ejemplo n.º 1
0
        public void Execute()
        {
            viewModel.SaveCommand.Execute();

            if (viewModel.Number != string.Empty &&
                viewModel.ValidatableView.Validate())
            {
                viewModel.NewComponent();
            }
            RefreshVisualStateEvent();
        }
Ejemplo n.º 2
0
        public void Execute()
        {
            viewModel.SaveCommand.Execute();

            if (viewModel.Number != string.Empty &&
                viewModel.ValidatableView.Validate())
            {
                viewModel.NewComponent();
                viewModel.ModifiableView.Id         = viewModel.Component.Id;
                viewModel.ModifiableView.IsModified = false;
            }
            RefreshVisualStateEvent();
        }