Ejemplo n.º 1
0
        private void ProjectMainForm_Load(object sender, EventArgs e)
        {
            TabMgr.ResizeMainForm(this);

            m_tabs = new TabMgr[(int)TabMgr.TabId.MAX];

            TabMgr tabSprites = new TabMgr(this, TabMgr.TabId.Sprites);

            m_tabs[(int)TabMgr.TabId.Sprites] = tabSprites;

            TabMgr tabBackgroundMaps = new TabMgr(this, TabMgr.TabId.BackgroundMaps);

            m_tabs[(int)TabMgr.TabId.BackgroundMaps] = tabBackgroundMaps;

            TabMgr tabBackgroundImages = new TabMgr(this, TabMgr.TabId.BackgroundImages);

            m_tabs[(int)TabMgr.TabId.BackgroundImages] = tabBackgroundImages;

            m_tabCurrent         = tabSprites;
            tabSet.SelectedIndex = (int)m_tabCurrent.Id;

            AddProjectMenuItems();
            AddSubwindowsToTabs();
            HandleEverythingChanged();

            m_undoHistory      = new UndoHistoryForm(this);
            UndoHistoryVisible = false;
            ClearUndo();

            m_doc.HasUnsavedChanges = false;

            // Add an
            Application.Idle += new EventHandler(OnIdle);
        }
Ejemplo n.º 2
0
        private void ProjectMainForm_Load(object sender, EventArgs e)
        {
            TabMgr.ResizeMainForm(this);

            m_tabs = new TabMgr[(int)TabMgr.TabId.MAX];

            TabMgr tabSprites = new TabMgr(this, TabMgr.TabId.Sprites);
            m_tabs[(int)TabMgr.TabId.Sprites] = tabSprites;

            TabMgr tabBackgroundMaps = new TabMgr(this, TabMgr.TabId.BackgroundMaps);
            m_tabs[(int)TabMgr.TabId.BackgroundMaps] = tabBackgroundMaps;

            TabMgr tabBackgroundImages = new TabMgr(this, TabMgr.TabId.BackgroundImages);
            m_tabs[(int)TabMgr.TabId.BackgroundImages] = tabBackgroundImages;

            m_tabCurrent = tabSprites;
            tabSet.SelectedIndex = (int)m_tabCurrent.Id;

            AddProjectMenuItems();
            AddSubwindowsToTabs();
            HandleEverythingChanged();

            m_undoHistory = new UndoHistoryForm(this);
            UndoHistoryVisible = false;
            ClearUndo();

            m_doc.HasUnsavedChanges = false;

            // Add an
            Application.Idle += new EventHandler(OnIdle);
        }