Пример #1
0
        public LevelTabPage(Level level)
        {
            Editor = new LevelEditorControl()
            {
                Name  = "Editor",
                Level = level,
                Dock  = DockStyle.Fill
            };

            Level = level;

            level.OnDataChanged += (sender, args) => Text = level.Name + "*";
            level.OnPersisted   += (sender, args) => Text = level.Name;
        }
Пример #2
0
        public LevelTabPage( Level level )
        {
            Editor = new LevelEditorControl()
            {
                Name = "Editor",
                Level = level,
                Dock = DockStyle.Fill
            };

            Level = level;

            level.OnDataChanged += ( sender, args ) => Text = level.Name + "*";
            level.OnPersisted += ( sender, args ) => Text = level.Name;
        }