Beispiel #1
0
 private void addTextFileToLesson_Click(object sender, EventArgs e)
 {
     if (tr == null)
     {
         tr             = new TXTreader();
         tr.MdiParent   = this;
         tr.FormClosed += new FormClosedEventHandler(tr_FormClosed);
         tr.Show();
         tr.changeDir(cdir + "\\" + lesson, lesson);
     }
     else
     {
         tr.Activate();
     }
 }
Beispiel #2
0
        private void OpenTXTBtn_Click(object sender, EventArgs e)
        {
            TXTreader txt = new TXTreader();

            txt.Show();
        }
Beispiel #3
0
 void tr_FormClosed(object sender, FormClosedEventArgs e)
 {
     tr = null;
 }