コード例 #1
0
 public static SimPe.Interfaces.Files.IPackedFileDescriptor Execute()
 {
     if (form == null)
     {
         form = new FileSelect();
     }
     return(form.DoExecute());
 }
コード例 #2
0
 private void ChooseFile(object sender, System.EventArgs e)
 {
     try
     {
         RefFile wrp = (RefFile)wrapper;
         //FileSelect fs = new FileSelect(wrp.Provider);
         Interfaces.Files.IPackedFileDescriptor pfd = FileSelect.Execute();
         if (pfd != null)
         {
             tbtype.Tag           = true;
             this.tbgroup.Text    = "0x" + Helper.HexString(pfd.Group);
             this.tbinstance.Text = "0x" + Helper.HexString(pfd.Instance);
             this.tbsubtype.Text  = "0x" + Helper.HexString(pfd.SubType);
             this.tbtype.Text     = "0x" + Helper.HexString(pfd.Type);
             tbtype.Tag           = null;
             this.AutoChange(sender, e);
         }
     }
     catch (Exception) {}
     finally
     {
         tbtype.Tag = null;
     }
 }