Beispiel #1
0
 public override object ConvertTo(ITypeDescriptorContext context,
                                  CultureInfo culture,
                                  object value,
                                  System.Type destinationType)
 {
     if (destinationType == typeof(System.String) &&
         value is ServiceInstall)
     {
         ServiceInstall fe = (ServiceInstall)value;
         return(fe.serviceName);
     }
     return(base.ConvertTo(context, culture, value, destinationType));
 }
Beispiel #2
0
 public SetupFile()
 {
     _shortcutInProgramFilesMenu = false;
     _shortcutOnDesktop          = false;
     _shortcutInQuickLaunch      = false;
     _isComModule = false;
     _fileId      = "ID-" + Guid.NewGuid().ToString();
     _fileId      = _fileId.Replace('-', '_');
     _shortcutWorkingDirectory = "";
     _shortcutCommandArguments = "";
     _shortcutDescription      = "";
     _fileExtensions           = new List <FileExtension>();
     _service = new ServiceInstall();
 }
 public SetupFile()
 {
     _shortcutInProgramFilesMenu = false;
     _shortcutOnDesktop = false;
     _shortcutInQuickLaunch = false;
     _isComModule = false;
     _fileId = "ID-" + Guid.NewGuid().ToString();
     _fileId = _fileId.Replace('-', '_');
     _shortcutWorkingDirectory = "";
     _shortcutCommandArguments = "";
     _shortcutDescription = "";
     _fileExtensions = new List<FileExtension>();
     _service = new ServiceInstall();
 }