Ejemplo n.º 1
0
 public NoteViewModel(
     IChangeColorCommand changeNoteColorCommand,
     ChangeNoteTextCommand changeNoteTextCommand)
 {
     _changeNoteTextCommand = changeNoteTextCommand;
     _backgroundColor = new BackgroundColorMixin(changeNoteColorCommand);
     _backgroundColor.PropertyChanged += (s, e) => NotifyOfPropertyChange(e.PropertyName);
     _expandable.PropertyChanged += (s, e) => NotifyOfPropertyChange(e.PropertyName);
 }
 public ClassifierSingleCommandContext(
     Classifier classifier,
     ClassifierDictionary classifierDictionary,
     DeletionService deletionService,
     IRelationService relationService,
     IAskUserBeforeDeletionService askUserService,
     MessageSystem messageSystem)
 {
     Rename = new RenameClassifierCommand(
         classifier,
         classifierDictionary,
         new ClassifierValidationService(classifierDictionary),
         messageSystem);
     ChangeBaseClass = new ChangeBaseClassCommand(
         classifier,
         classifierDictionary,
         messageSystem);
     Delete = new DeleteClassifierCommand(classifier, deletionService,askUserService);
     Visibility = new ShowOrHideSingleObjectCommand(classifier, messageSystem);
     ChangeClassifierColor = new ChangeColorCommand(classifier, messageSystem);
     ChangeNoteColor = new ChangeNoteColorCommand(classifier.Note,messageSystem);
     ChangeNoteText = new ChangeNoteTextCommand(classifier.Note,messageSystem);
     ChangeIsInterface = new MakeClassifierToInterfaceCommand(classifier, relationService);
 }
Ejemplo n.º 3
0
 public DiagramCommands(Diagram diagram, MessageSystem messageSystem)
 {
     ChangeNoteColor = new ChangeNoteColorCommand(diagram.Note,messageSystem);
     ChangeNoteText = new ChangeNoteTextCommand(diagram.Note, messageSystem);
 }