NewComponent() public method

public NewComponent ( ) : void
return void
示例#1
0
        public void Execute()
        {
            viewModel.SaveCommand.Execute();

            if (viewModel.Number != string.Empty &&
                viewModel.ValidatableView.Validate())
            {
                viewModel.NewComponent();
            }
            RefreshVisualStateEvent();
        }
示例#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();
        }