Example #1
0
        public MainForm()
        {
            inst = this;
            InitializeComponent();

            propertyBar = new PropertyBar();
            propertyBar.Show(dockPanel, propertyBarDocState);
            propertyBar.DockHandler.DockAreas             = DockAreas.DockBottom;
            propertyBar.DockHandler.AutoHideButtonVisible = false;
            propertyBar.DockHandler.HideOnClose           = true;

            currentLibraryView = LibraryView.Instance;
            currentLibraryView.Show(dockPanel, libraryDocState);
            currentLibraryView.DockHandler.HideOnClose = true;

            dockPanel.UpdateDockWindowZOrder(DockStyle.Right, true);
            dockPanel.UpdateDockWindowZOrder(DockStyle.Bottom, false);

            this.DoubleBuffered = true;
            this.AddEvents();
#if DEBUG
            if (File.Exists(testFile))
            {
                string fullPath = Path.GetFullPath(testFile);
                CreateNewStage(Path.GetFileNameWithoutExtension(fullPath));
                currentStage.LoadUIL(fullPath);
                currentLibraryView.SelectFirstNode();
            }
            else
            {
                NewDocument(this, EventArgs.Empty);
            }
#else
            NewDocument(this, EventArgs.Empty);
#endif
        }