Exemplo n.º 1
0
        private void richTextBox1_Click(object sender, EventArgs e)
        {
            int index = Form1.openedWindows.IndexOf(fileName);

            if (index == -1)
            {
                TextWrite newWindow = new TextWrite();
                newWindow.Show();
                newWindow.LoadTextFromFile(filePath, fileName);
                if (fileName != "")
                {
                    Form1.openedWindows.Add(fileName);
                }
            }
        }
Exemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            TextWrite newWindow = new TextWrite();

            newWindow.Show();
        }