Example #1
0
        private void fATXExplorerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Drive_Selector x = new Drive_Selector(this);

            if (x.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            Form y = null;

            if (x.ChosenDrive.IsDriveIO)
            {
                if (x.radioButton1.Checked)
                {
                    y = (Form) new FATXViewer(x.ChosenDrive, x.ChosenDrive.DriveName, this);
                }
                else
                {
                    y = (Form) new FATXBrowser(x.ChosenDrive, x.ChosenDrive.DriveName, this);
                }
                Files.Add(x.ChosenDrive.DriveName);
            }
            else
            {
                if (Files.Contains(x.xfile))
                {
                    return;
                }
                if (x.radioButton1.Checked)
                {
                    y = (Form) new FATXViewer(x.ChosenDrive, x.xfile, this);
                }
                else
                {
                    y = (Form) new FATXBrowser(x.ChosenDrive, x.xfile, this);
                }
            }
            y.MdiParent = this;
            y.Show();
        }
Example #2
0
 private void fATXExplorerToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Drive_Selector x = new Drive_Selector(this);
     if (x.ShowDialog() != DialogResult.OK)
         return;
     Form y = null;
     if (x.ChosenDrive.IsDriveIO)
     {
         if (x.radioButton1.Checked)
             y = (Form)new FATXViewer(x.ChosenDrive, x.ChosenDrive.DriveName, this);
         else y = (Form)new FATXBrowser(x.ChosenDrive, x.ChosenDrive.DriveName, this);
         Files.Add(x.ChosenDrive.DriveName);
     }
     else
     {
         if (Files.Contains(x.xfile))
             return;
         if (x.radioButton1.Checked)
             y = (Form)new FATXViewer(x.ChosenDrive, x.xfile, this);
         else y = (Form)new FATXBrowser(x.ChosenDrive, x.xfile, this);
     }
     y.MdiParent = this;
     y.Show();
 }