Beispiel #1
0
        public TextEditForm(TextEditableInterface textEditableInterface,HelpComponents helpComponents)
        {
            InitializeComponent();

            _textEditableInterface = textEditableInterface;
            _helpComponents = helpComponents;
            _filename = textEditableInterface.Filename;

            _modified = false;
            _baseWindowTitle = this.Text;
            UpdateWindowTitle();

            editControl.SetTextModifiedHandler(this);

            linkLabelFilename.Text = _filename;

            if( _textEditableInterface is Topic )
                _topicCompilerSettings = new TextEditFormTopicCompilerSettings();

            LoadFile();
        }
Beispiel #2
0
        public TextEditForm(TextEditableInterface textEditableInterface, HelpComponents helpComponents)
        {
            InitializeComponent();

            _textEditableInterface = textEditableInterface;
            _helpComponents        = helpComponents;
            _filename = textEditableInterface.Filename;

            _modified        = false;
            _baseWindowTitle = this.Text;
            UpdateWindowTitle();

            editControl.SetTextModifiedHandler(this);

            linkLabelFilename.Text = _filename;

            if (_textEditableInterface is Topic)
            {
                _topicCompilerSettings = new TextEditFormTopicCompilerSettings();
            }

            LoadFile();
        }
Beispiel #3
0
 public bool IsOfType(TextEditableInterface otherTextEditableInterface)
 {
     return(_textEditableInterface.GetType() == otherTextEditableInterface.GetType());
 }
Beispiel #4
0
 public bool IsOfType(TextEditableInterface otherTextEditableInterface)
 {
     return ( _textEditableInterface.GetType() == otherTextEditableInterface.GetType() );
 }