示例#1
0
 public CreateCommentShapeCommandModel(PluginViewModel viewModel)
 {
     _viewModel       = viewModel;
     this.Name        = "Comment";
     this.Description = "Create a new Comment shape";
     this.Image       = new BitmapImage(new Uri("/MiniUML.Plugins.UmlClassDiagram;component/Resources/Images/Command.CreateCommentShape.png", UriKind.Relative));
 }
示例#2
0
 public void InitializeCommands(PluginViewModel viewModel)
 {
     viewModel.cmd_CreateInterfaceShape     = new CreateInterfaceShapeCommandModel(viewModel);
     viewModel.cmd_CreateAbstractClassShape = new CreateAbstractClassShapeCommandModel(viewModel);
     viewModel.cmd_CreateClassShape         = new CreateClassShapeCommandModel(viewModel);
     viewModel.cmd_CreateStructShape        = new CreateStructShapeCommandModel(viewModel);
     viewModel.cmd_CreateEnumShape          = new CreateEnumShapeCommandModel(viewModel);
     viewModel.cmd_CreateAssociationShape   = new CreateAssociationShapeCommandModel(viewModel);
     viewModel.cmd_CreateInheritanceShape   = new CreateInheritanceShapeCommandModel(viewModel);
     viewModel.cmd_CreateCommentShape       = new CreateCommentShapeCommandModel(viewModel);
 }