public AssociationConnShape_Mode(MainPanel _Panel)
     : base(_Panel)
 {
     DefaultDepth = 0;
     DefaultLineWidth = 2;
     Description = "Create a association line";
 }
예제 #2
0
        public MainWindow()
        {
            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            InitializeComponent();
            double ProgramHeight = System.Windows.SystemParameters.PrimaryScreenHeight * 0.5;
            double ProgramWidth = System.Windows.SystemParameters.PrimaryScreenWidth * 0.5;
            Console.WriteLine(ProgramWidth + "x" + ProgramHeight);
            this.MinWidth = ProgramWidth;
            this.MinHeight = ProgramHeight;
            Scroll.Width = ProgramWidth - ToolBoxWidth - 20;
            Scroll.Height = ProgramHeight - Menu.Height;
            Main = new MainPanel();
            Main.Width = 2048;
            Main.Height = 1536;
            DrawBorder.Child = Main;

            ToolsPanel toolspanel = new ToolsPanel();
            toolspanel.Width = ToolBoxWidth;
            toolspanel.Height = ToolBoxHeight;
            ToolsPanelBorder.Child = toolspanel;
            toolspanel.AddTool(new None_Mode(Main), new Uri(@"/Sam33UML;component/Resources/None.png", UriKind.Relative), new Uri(@"/Sam33UML;component/Resources/None_Selected.png", UriKind.Relative), toolspanel.RowBox0);
            toolspanel.AddSeparator(2, toolspanel.RowBox0);
            toolspanel.AddTool(new Selection_Mode(Main), new Uri(@"/Sam33UML;component/Resources/Selection.png", UriKind.Relative), new Uri(@"/Sam33UML;component/Resources/Selection_Selected.png", UriKind.Relative), toolspanel.RowBox0);
            toolspanel.AddTool(new ClassUMLObject_Mode(Main), new Uri(@"/Sam33UML;component/Resources/UMLClass_Normal.png", UriKind.Relative), new Uri(@"/Sam33UML;component/Resources/UMLClass_Selected.png", UriKind.Relative), toolspanel.RowBox1);
            toolspanel.AddSeparator(2, toolspanel.RowBox1);
            toolspanel.AddTool(new UseCaseUMLObject_Mode(Main), new Uri(@"/Sam33UML;component/Resources/UMLUseCase_Normal.png", UriKind.Relative), new Uri(@"/Sam33UML;component/Resources/UMLUseCase_Selected.png", UriKind.Relative), toolspanel.RowBox1);
            toolspanel.AddTool(new AssociationConnShape_Mode(Main), new Uri(@"/Sam33UML;component/Resources/UMLAssociationLine.png", UriKind.Relative), new Uri(@"/Sam33UML;component/Resources/UMLAssociationLine_Selected.png", UriKind.Relative), toolspanel.RowBox2);
            toolspanel.AddSeparator(2, toolspanel.RowBox2);
            toolspanel.AddTool(new CompositionConnShape_Mode(Main), new Uri(@"/Sam33UML;component/Resources/UMLCompositionLine.png", UriKind.Relative), new Uri(@"/Sam33UML;component/Resources/UMLCompositionLine_Selected.png", UriKind.Relative), toolspanel.RowBox2);
            toolspanel.AddTool(new GeneralizationConnShape_Mode(Main), new Uri(@"/Sam33UML;component/Resources/UMLGeneralizationLine.png", UriKind.Relative), new Uri(@"/Sam33UML;component/Resources/UMLGeneralizationLine_Selected.png", UriKind.Relative), toolspanel.RowBox3);
            toolspanel.ModeChange += toolspanel_ModeChange;
            //source.UriSource = new Uri("pack://application:,,,/Sam33UML;component/Resources/UserIcon.png");
        }
 public GeneralizationConnShape_Mode(MainPanel _Panel)
     : base(_Panel)
 {
     DefaultDepth = 0;
     DefaultLineWidth = 2;
     Description = "Create a generalization line";
 }
 public CompositionConnShape_Mode(MainPanel _Panel)
     : base(_Panel)
 {
     DefaultDepth = 0;
     DefaultLineWidth = 2;
     Description = "Create a composition line";
 }
예제 #5
0
 public None_Mode(MainPanel _Panel)
     : base(_Panel)
 {
     Description = "Not select any tool";
 }
예제 #6
0
 public Selection_Mode(MainPanel _Panel)
     : base(_Panel)
 {
     Description = "Select or move objects";
 }
예제 #7
0
 public BaseUMLMode(MainPanel _Panel)
 {
     Description = "";
     Panel = _Panel;
 }
        public BaseConnShape_Mode(MainPanel _Panel)
            : base(_Panel)
        {

        }
 public ClassUMLObject_Mode(MainPanel _Panel)
     : base(_Panel)
 {
     Description = "Create a usecase object";
 }
예제 #10
0
 public UseCaseUMLObject_Mode(MainPanel _Panel)
     : base(_Panel)
 {
     Description = "Create a class object";
 }