Example #1
0
        public MonoGameContentEditorViewContent(MonoDevelop.Core.FilePath filename, MonoDevelop.Projects.Project project)
        {
            this.ContentName = Path.GetFileName(filename.ToString());
            this.Project     = project;
            control          = new Alignment(0, 0, 1, 1);
            control.SetPadding(5, 5, 5, 5);

            view = new Pipeline.MacOS.MainView(null);

            if (filename != null)
            {
                view.OpenProjectPath = filename.ToString();
            }
            Pipeline.MacOS.MainView.CreateControllers(view);
            view.BuildUI();

            control.Add(view);

            control.ShowAll();
        }
		public MonoGameContentEditorViewContent (MonoDevelop.Core.FilePath filename, MonoDevelop.Projects.Project project)
		{
			this.ContentName = Path.GetFileName (filename.ToString());
			this.Project = project;
			control = new Alignment (0, 0, 1, 1);
			control.SetPadding (5, 5, 5, 5);

			view = new Pipeline.MacOS.MainView (null);

			if (filename != null) {
				view.OpenProjectPath = filename.ToString();
			}
			Pipeline.MacOS.MainView.CreateControllers (view);
			view.BuildUI ();

			control.Add (view);

			control.ShowAll ();
		}