public Presenter(ModelMapper modelMapper, ComputationWindow window)
            {
                _window = window;

                _name        = NewScalar("ComputeXxx").AddValidator(Extensions.ValidateRequired).AddValidator(modelMapper.ValidateIdentifier);
                _description = NewScalar <string>();
                _mode        = NewScalar <ComputationMode?>();

                Show(_window._view);
            }
Esempio n. 2
0
 private void AddComputationCommand_Execute(object sender, EventArgs e)
 {
     Debug.Assert(CanAddCodeSnippet);
     ComputationWindow.Show(ModelMapper, AddComputation);
 }