Example #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));
 }
Example #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();
 }
Example #3
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();
 }