Example #1
0
        public static DialogResult ShowDialog(string curLocation)
        {
            DiscFinderDialog dlg = new DiscFinderDialog(curLocation);

            dlg.Owner = MainForm.Main;
            return(dlg.ShowDialog());
        }
Example #2
0
 public void LoadFinder()
 {
     if (DiscFinderDialog.ShowDialog(ddLocation.Text) == DialogResult.OK)
     {
         ddLocation.Text  = DiscFinderDialog.Location;
         txtJump.Text     = DiscFinderDialog.Page;
         selectRequiredID = DiscFinderDialog.Disc;
         //check if disc is on current page
         foreach (DButton btn in dbuttons)
         {
             if (btn.Disc == selectRequiredID)
             {
                 btn.DButton_Click(null, null);
                 selectRequiredID = string.Empty;
                 return;
             }
         }
     }
 }
Example #3
0
 public static DialogResult ShowDialog(string curLocation)
 {
     DiscFinderDialog dlg = new DiscFinderDialog(curLocation);
     dlg.Owner = MainForm.Main;
     return dlg.ShowDialog();
 }