Files
SourceCode/PROMS/Volian.Controls.Library/frmViewTextFile.cs
Rich 628e9cf390 Add caption to End-User License Aggreement form
Added LastVersion to config to present EULA on version change
Display EULA when version changes
Added Property to change button label (Agree for EULA)
Changed DialogResult to OK for OK Button.
2012-04-18 17:18:11 +00:00

40 lines
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace Volian.Controls.Library
{
public partial class frmViewTextFile : DevComponents.DotNetBar.Office2007Form //Form
{
string _FileName;
RichTextBoxStreamType _RTBType;
//public string FileName
//{
// get { return _FileName; }
// set { _FileName = value; }
//}
public string ButtonText
{
get { return buttonX1.Text; }
set { buttonX1.Text = value; }
}
public frmViewTextFile(string filename, RichTextBoxStreamType rtbtype)
{
_FileName = filename;
_RTBType = rtbtype;
InitializeComponent();
}
private void frmViewTextFile_Load(object sender, EventArgs e)
{
if (File.Exists(_FileName))
rtbViewFile.LoadFile(_FileName,_RTBType);
else
MessageBox.Show(string.Format("File Note found: {0}", _FileName), "Error Displaying File", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
}