private void MakeThisLevelActive(Level level)
        {
            Model.ActiveLevel = level;
            LevelRenderer renderer = new LevelRenderer(level);

            renderer.RefreshAll();
            this.render_host.Children.Clear();
            this.render_host.Children.Add(renderer);
        }
        public static void UpdateTitle()
        {
            string output = "Blake's Magic Map Editor";

            if (instance.ActiveLevelRenderer != null)
            {
                LevelRenderer lr = instance.ActiveLevelRenderer;
                if (Model.ActiveLevel != null && Model.ActiveLevel.IsDirty)
                {
                    output = "*";

                    output += Model.ActiveLevel.Name;
                }
                else
                {
                    output = "";
                }

                output += " (" + lr.LastX.ToString() + ", " + lr.LastY.ToString() + ")";
            }

            instance.Title = output;
        }
 private void MakeThisLevelActive(Level level)
 {
     Model.ActiveLevel = level;
     LevelRenderer renderer = new LevelRenderer(level);
     renderer.RefreshAll();
     this.render_host.Children.Clear();
     this.render_host.Children.Add(renderer);
 }