Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@913 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
8 changed files with 17 additions and 108 deletions
@ -1,33 +0,0 @@
@@ -1,33 +0,0 @@
|
||||
<Components version="1.0"> |
||||
<System.Windows.Forms.Form> |
||||
<Name value="form" /> |
||||
<ShowInTaskbar value="False" /> |
||||
<FormBorderStyle value="FixedDialog" /> |
||||
<StartPosition value="CenterScreen" /> |
||||
<ClientSize value="{Width=720, Height=424}" /> |
||||
<MinimizeBox value="False" /> |
||||
<DockPadding value="" /> |
||||
<Text value="${res:Dialog.ViewGPL.DialogName}" /> |
||||
<AcceptButton value="okButton [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" /> |
||||
<CancelButton value="okButton [System.Windows.Forms.Button], Text: ${res:Global.OKButtonText}" /> |
||||
<MaximizeBox value="False" /> |
||||
<Controls> |
||||
<System.Windows.Forms.RichTextBox> |
||||
<Name value="licenseRichTextBox" /> |
||||
<ReadOnly value="True" /> |
||||
<ClientSize value="{Width=700, Height=372}" /> |
||||
<Location value="{X=8,Y=8}" /> |
||||
<Text value="" /> |
||||
<TabIndex value="0" /> |
||||
</System.Windows.Forms.RichTextBox> |
||||
<System.Windows.Forms.Button> |
||||
<Name value="okButton" /> |
||||
<Location value="{X=637,Y=392}" /> |
||||
<ClientSize value="{Width=75, Height=23}" /> |
||||
<Text value="${res:Global.OKButtonText}" /> |
||||
<TabIndex value="1" /> |
||||
<DialogResult value="OK" /> |
||||
</System.Windows.Forms.Button> |
||||
</Controls> |
||||
</System.Windows.Forms.Form> |
||||
</Components> |
@ -1,39 +0,0 @@
@@ -1,39 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt">2002-2005 AlphaSierraPapa</copyright>
|
||||
// <license see="prj:///doc/license.txt">GNU General Public License</license>
|
||||
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using System; |
||||
using System.IO; |
||||
using System.Drawing; |
||||
using System.ComponentModel; |
||||
using System.Windows.Forms; |
||||
using System.Resources; |
||||
|
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop.Gui.XmlForms; |
||||
|
||||
namespace ICSharpCode.SharpDevelop.Gui |
||||
{ |
||||
public class ViewGPLDialog : BaseSharpDevelopForm |
||||
{ |
||||
public ViewGPLDialog() |
||||
{ |
||||
SetupFromXmlStream(this.GetType().Assembly.GetManifestResourceStream("Resources.ViewGPLDialog.xfrm")); |
||||
LoadGPL(); |
||||
} |
||||
|
||||
void LoadGPL() |
||||
{ |
||||
string filename = FileUtility.ApplicationRootPath + |
||||
Path.DirectorySeparatorChar + "doc" + |
||||
Path.DirectorySeparatorChar + "license.txt"; |
||||
if (FileUtility.TestFileExists(filename)) { |
||||
RichTextBox licenseRichTextBox = (RichTextBox)ControlDictionary["licenseRichTextBox"]; |
||||
licenseRichTextBox.LoadFile(filename, RichTextBoxStreamType.PlainText); |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue