Example #1
0
        private void InitializeComponent()
        {
            Title       = "MonoGame Pipeline Tool";
            Icon        = Icon.FromResource("Icons.monogame.png");
            Size        = new Size(750, 550);
            MinimumSize = new Size(400, 400);

            InitalizeCommands();
            InitalizeMenu();
            InitalizeContextMenu();
            InitalizeToolbar();

            splitterHorizontal                   = new Splitter();
            splitterHorizontal.Orientation       = Orientation.Horizontal;
            splitterHorizontal.Position          = 200;
            splitterHorizontal.Panel1MinimumSize = 100;
            splitterHorizontal.Panel2MinimumSize = 100;

            splitterVertical                   = new Splitter();
            splitterVertical.Orientation       = Orientation.Vertical;
            splitterVertical.Position          = 230;
            splitterVertical.FixedPanel        = SplitterFixedPanel.None;
            splitterVertical.Panel1MinimumSize = 100;
            splitterVertical.Panel2MinimumSize = 100;

            projectControl = new ProjectControl();
            _pads.Add(projectControl);
            splitterVertical.Panel1 = projectControl;

            propertyGridControl = new PropertyGridControl();
            _pads.Add(propertyGridControl);
            splitterVertical.Panel2 = propertyGridControl;

            splitterHorizontal.Panel1 = splitterVertical;

            buildOutput = new BuildOutput();
            _pads.Add(buildOutput);
            splitterHorizontal.Panel2 = buildOutput;

            Content = splitterHorizontal;

            cmdNew.Executed    += CmdNew_Executed;
            cmdOpen.Executed   += CmdOpen_Executed;
            cmdClose.Executed  += CmdClose_Executed;
            cmdImport.Executed += CmdImport_Executed;
            cmdSave.Executed   += CmdSave_Executed;
            cmdSaveAs.Executed += CmdSaveAs_Executed;
            cmdExit.Executed   += CmdExit_Executed;

            cmdUndo.Executed    += CmdUndo_Executed;
            cmdRedo.Executed    += CmdRedo_Executed;
            cmdExclude.Executed += CmdExclude_Executed;
            cmdRename.Executed  += CmdRename_Executed;
            cmdDelete.Executed  += CmdDelete_Executed;

            cmdNewItem.Executed        += CmdNewItem_Executed;
            cmdNewFolder.Executed      += CmdNewFolder_Executed;
            cmdExistingItem.Executed   += CmdExistingItem_Executed;
            cmdExistingFolder.Executed += CmdExistingFolder_Executed;

            cmdBuild.Executed       += CmdBuild_Executed;
            cmdRebuild.Executed     += CmdRebuild_Executed;
            cmdClean.Executed       += CmdClean_Executed;
            cmdCancelBuild.Executed += CmdCancelBuild_Executed;
            cmdDebugMode.Executed   += CmdDebugMode_Executed;

            cmdHelp.Executed  += CmdHelp_Executed;
            cmdAbout.Executed += CmdAbout_Executed;

            cmdOpenItem.Executed               += CmdOpenItem_Executed;
            cmdOpenItemWith.Executed           += CmdOpenItemWith_Executed;
            cmdOpenItemLocation.Executed       += CmdOpenItemLocation_Executed;
            cmdOpenOutputItemLocation.Executed += CmdOpenOutputItemLocation_Executed;
            cmdCopyAssetPath.Executed          += CmdCopyAssetPath_Executed;
            cmdRebuildItem.Executed            += CmdRebuildItem_Executed;
        }
Example #2
0
        private void InitializeComponent()
        {
            Title  = "MonoGame Pipeline Tool";
            Icon   = Icon.FromResource("Icons.monogame.png");
            Width  = 750;
            Height = 550;

            InitalizeCommands();
            InitalizeMenu();
            InitalizeContextMenu();
            InitalizeToolbar();

            splitterHorizontal             = new Splitter();
            splitterHorizontal.Orientation = Orientation.Horizontal;
            splitterHorizontal.Position    = 200;

            splitterVertical             = new Splitter();
            splitterVertical.Orientation = Orientation.Vertical;
            splitterVertical.Position    = 230;
            splitterVertical.FixedPanel  = SplitterFixedPanel.None;

            projectControl          = new ProjectControl();
            splitterVertical.Panel1 = projectControl;

            propertyGridControl     = new PropertyGridControl();
            splitterVertical.Panel2 = propertyGridControl;

            splitterHorizontal.Panel1 = splitterVertical;

            buildOutput = new BuildOutput();
            splitterHorizontal.Panel2 = buildOutput;

            Content = splitterHorizontal;

            projectControl.MouseDoubleClick += CmdOpenItem_Executed;

            cmdNew.Executed    += CmdNew_Executed;
            cmdOpen.Executed   += CmdOpen_Executed;
            cmdClose.Executed  += CmdClose_Executed;
            cmdImport.Executed += CmdImport_Executed;
            cmdSave.Executed   += CmdSave_Executed;
            cmdSaveAs.Executed += CmdSaveAs_Executed;
            cmdExit.Executed   += CmdExit_Executed;

            cmdUndo.Executed    += CmdUndo_Executed;
            cmdRedo.Executed    += CmdRedo_Executed;
            cmdExclude.Executed += CmdExclude_Executed;
            cmdRename.Executed  += CmdRename_Executed;
            cmdDelete.Executed  += CmdDelete_Executed;

            cmdNewItem.Executed        += CmdNewItem_Executed;
            cmdNewFolder.Executed      += CmdNewFolder_Executed;
            cmdExistingItem.Executed   += CmdExistingItem_Executed;
            cmdExistingFolder.Executed += CmdExistingFolder_Executed;

            cmdBuild.Executed              += CmdBuild_Executed;
            cmdRebuild.Executed            += CmdRebuild_Executed;
            cmdClean.Executed              += CmdClean_Executed;
            cmdCancelBuild.Executed        += CmdCancelBuild_Executed;
            cmdDebugMode.CheckedChanged    += CmdDebugMode_Executed;
            cmdFilterOutput.CheckedChanged += CmdFilterOutput_Executed;

            cmdHelp.Executed  += CmdHelp_Executed;
            cmdAbout.Executed += CmdAbout_Executed;

            cmdOpenItem.Executed         += CmdOpenItem_Executed;
            cmdOpenItemWith.Executed     += CmdOpenItemWith_Executed;
            cmdOpenItemLocation.Executed += CmdOpenItemLocation_Executed;
            cmdRebuildItem.Executed      += CmdRebuildItem_Executed;
        }