Example #1
0
        private void Home_Load(object sender, EventArgs e)

        {
            dockPanel = new WeifenLuo.WinFormsUI.Docking.DockPanel();

            dockPanel.Dock                       = System.Windows.Forms.DockStyle.Fill;
            dockPanel.DockBackColor              = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(48)))));
            dockPanel.DockBottomPortion          = 150D;
            dockPanel.DockLeftPortion            = 200D;
            dockPanel.DockRightPortion           = 200D;
            dockPanel.DockTopPortion             = 150D;
            dockPanel.Font                       = new System.Drawing.Font("Tahoma", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(0)));
            dockPanel.Location                   = new System.Drawing.Point(0, 61);
            dockPanel.Name                       = "dockPanel";
            dockPanel.Padding                    = new System.Windows.Forms.Padding(6);
            dockPanel.RightToLeftLayout          = true;
            dockPanel.ShowAutoHideContentOnHover = false;
            dockPanel.Size                       = new System.Drawing.Size(810, 455);
            dockPanel.TabIndex                   = 12;
            dockPanel.Theme                      = this.vS2015DarkTheme1;
            this.panel1.Controls.Add(dockPanel);
            SetSchema(this.vS2015DarkTheme1, null);

            string configFile = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), "OSMaker.config");



            CloseAllContents();

            CreateStandardControls();
            m_propertyWindow.Show(dockPanel, DockState.DockRight);

            m_solutionExplorer.Show(m_propertyWindow.Pane, DockAlignment.Top, 0.5);
            m_propertyWindow.DockState = DockState.DockRightAutoHide;

            m_toolbox.Show(dockPanel, DockState.DockLeftAutoHide);



            dockPanel.ResumeLayout(true, true);

            Accueil MonAccueil = CreateNewAccueil();

            if (dockPanel.DocumentStyle == DocumentStyle.SystemMdi)
            {
                MonAccueil.MdiParent = this;
                MonAccueil.Show();
            }
            else
            {
                MonAccueil.Show(dockPanel);
            }

            m_sortie.Show(MonAccueil.PanelPane, DockAlignment.Left, 0.5);
            m_sortie.Text      = "Output";
            m_sortie.DockState = DockState.DockBottomAutoHide;
        }
Example #2
0
        private void menuItemSolutionExplorer_Click_1(object sender, EventArgs e)

        {
            SolutionExplorer solutionexplo = new SolutionExplorer();

            solutionexplo.Show(dockPanel, DockState.DockRight);
        }
Example #3
0
        public Animate()
        {
            InitializeComponent();
            mSingleton = this;

            mProjects     = new List <Project>();
            mDocs         = new List <Document>();
            mAbout        = new About();
            mFTPOptions   = new FTP_Options();
            mBuildOptions = new BuildOptions();

            SolutionExplorer explorer = SolutionExplorer.Singleton;
            Logger           logger   = Logger.singleton;

            explorer.Show(mDockPanel);
            logger.Show(mDockPanel);

            explorer.DockTo(mDockPanel, DockStyle.Right);
            logger.DockTo(mDockPanel, DockStyle.Bottom);

            mNewProj = new NewProject();

            buttonBuild.Image       = imageList.Images[0];
            buttonRun.Image         = imageList.Images[1];
            buttonMinify.Image      = imageList.Images[3];
            buttonBrowserDiag.Image = imageList.Images[4];

            //Event handlers
            explorer.ProjectSelected += new SolutionExplorer.projectSelected(OnProjectSelected);

            OnProjectSelected(null);

            // Open the general project settings - see if there are any projects already loaded
            try
            {
                // Example #2
                // Read each line of the file into a string array. Each element
                // of the array is one line of the file.
                string[] lines = File.ReadAllLines(Application.StartupPath + "\\startup.options");

                foreach (string projectLocation in lines)
                {
                    OpenProject(projectLocation);
                }
            }
            catch
            {
            }
        }
Example #4
0
        protected override void load()
        {
            foreach (IDockContent content in Application.Panel.Contents)
            {
                solutionExplorer = content as SolutionExplorer;
            }
            if (solutionExplorer == null)
            {
                solutionExplorer = new SolutionExplorer();
                solutionExplorer.Show(Application.Panel, DockState.DockLeft);
            }

            solutionExplorer.Text = StaticText.RootNodeName;
            solutionExplorer.Icon = Resources.flag;

            loadData();

            solutionExplorer.Controls.Add(tvSolution);

            root.ExpandAll();
        }
        public void showSolutionExplorer(bool makeActive)
        {
            if (solExp == null)
            {
                solExp = new SolutionExplorer(this);
                solExp.ViewModel.OnLoaded();
                var firstAnchorablePane = View.dockingManager.Layout.Descendents().OfType <LayoutAnchorablePane>().FirstOrDefault();
                if (firstAnchorablePane != null)
                {
                    firstAnchorablePane.Children.Add(solExp);
                }
            }
            else
            {
                solExp.Show();
            }

            if (makeActive)
            {
                solExp.IsActive   = true;
                solExp.IsSelected = true;
            }
        }
Example #6
0
 private void MenuItemSolutionExplorer_Click(object sender, System.EventArgs e)
 {
     m_solutionExplorer.Show(dockPanel);
 }