예제 #1
0
 public ReadingsViewForm(ORMReadingEditorToolWindow toolWindow)
 {
     myReadingEditor = new ReadingEditor(toolWindow);
     this.Controls.Add(myReadingEditor);
     System.Drawing.Point location = this.Controls[this.Controls.Count - 1].Location;
     myReadingEditor.Dock         = DockStyle.Fill;
     myReadingEditor.Visible      = false;
     myNoSelectionLabel           = new Label();
     myNoSelectionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     myNoSelectionLabel.Text      = ResourceStrings.ModelReadingEditorUnsupportedSelectionText;
     this.Controls.Add(myNoSelectionLabel);
     myNoSelectionLabel.Dock    = DockStyle.Fill;
     myNoSelectionLabel.Visible = true;
 }
예제 #2
0
			public ReadingsViewForm(ORMReadingEditorToolWindow toolWindow)
			{
				myReadingEditor = new ReadingEditor(toolWindow);
				this.Controls.Add(myReadingEditor);
				System.Drawing.Point location = this.Controls[this.Controls.Count - 1].Location;
				myReadingEditor.Dock = DockStyle.Fill;
				myReadingEditor.Visible = false;
				myNoSelectionLabel = new Label();
				myNoSelectionLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
				myNoSelectionLabel.Text = ResourceStrings.ModelReadingEditorUnsupportedSelectionText;
				this.Controls.Add(myNoSelectionLabel);
				myNoSelectionLabel.Dock = DockStyle.Fill;
				myNoSelectionLabel.Visible = true;
			}