} //run application for proper extensions

        private void OpenTxt(string source)
        {
            string[]          text      = File.ReadAllLines(source, Encoding.Default);
            BuiltInTextEditor neweditor = new BuiltInTextEditor(text);

            neweditor.Show();
        } //this method for opening .txt files
Beispiel #2
0
        } //rename button

        private void toolStripEditButton_Click(object sender, EventArgs e)
        {
            if (this.ActiveMdiChild == LeftForm)
            {
                BuiltInTextEditor newform = new BuiltInTextEditor(null);
                newform.Show();
            }
            else
            {
                if (this.ActiveMdiChild == RightForm)
                {
                    BuiltInTextEditor newform = new BuiltInTextEditor(null);
                    newform.Show();
                }
            }
        } //edit button