Ejemplo n.º 1
0
 public virtual void configure(IConfig Config, bool forceReconfigure)
 {
     mApplicationLocation = Config.getSavedConfigurationInformation(ToString() + ".Location");
     if (forceReconfigure || mApplicationLocation.Length == 0 || !System.IO.File.Exists( mApplicationLocation ))
     {
         System.Windows.Forms.OpenFileDialog selecteSpeak = new System.Windows.Forms.OpenFileDialog();
         selecteSpeak.DefaultExt = "exe";
         selecteSpeak.Filter = ToString() + "|" + DefaultApplicationFileName() + "|All files|*.*";
         selecteSpeak.Title = "Select " + ToString() + " executable...";
         if (selecteSpeak.ShowDialog() == System.Windows.Forms.DialogResult.OK)
         {
             Config.setSavedConfigurationInformation(ToString() + ".Location", selecteSpeak.FileName);
             mApplicationLocation = selecteSpeak.FileName;
         }
     }
 }