示例#1
0
		private IView CreateButtonForResource(Managed managed)
		{
			var buttonForResource = new ButtonView();
			buttonForResource.Click += (s, a) => this.OpenEditorForResource(managed);
			return buttonForResource;
		}
示例#2
0
		private void OpenEditorForResource(Managed managed)
		{
			this.split.Panel2Collapsed = false;
			this.split.Panel2.Controls.Clear();
			IView editorFor = this.editorEnvironment.EditorFor(managed, this.history);
			editorFor.DataContext.Value = managed;
			var control = (Control)editorFor;
			control.Dock = DockStyle.Fill;
			this.split.Panel2.Controls.Add(control);
		}