ConfigTool.TextEditorPopup.TextEditorPopup C# (CSharp) Method

TextEditorPopup() public method

public TextEditorPopup ( string _fileName, string defaultValue ) : System
_fileName string
defaultValue string
return System
        public TextEditorPopup( string _fileName, string defaultValue ) {
            InitializeComponent();

            fileName = _fileName;
            Text = "Editing " + fileName;

            if( File.Exists( fileName ) ) {
                oldText = File.ReadAllText( fileName );
            } else {
                oldText = defaultValue;
            }

            tRules.Text = oldText;
            lWarning.Visible = CheckForLongLines();
        }