public SectionParamCollection GetDefaultParams()
    {
      SectionParamCollection _param = new SectionParamCollection(Params);

      _param.Add(new SectionParam(CONST_IMAGE_1, "", ValueTypeEnum.File,
                                  "The file of first option. Idicated size (225,127)"));
      _param.Add(new SectionParam(CONST_IMAGE_2, "", ValueTypeEnum.File,
                                  "The file of first option. Idicated size (225,127)"));
      _param.Add(new SectionParam(CONST_TEXT, "", ValueTypeEnum.String,
                                  "Description of this operation"));
      return _param;
    }
 public GeneralInfoItem()
 {
   Version = new VersionInfo();
   Id = Guid.NewGuid().ToString();
   ReleaseDate = DateTime.Now;
   Tags = string.Empty;
   ExtensionDescription = string.Empty;
   VersionDescription = string.Empty;
   Params = new SectionParamCollection();
   Params.Add(new SectionParam(ParamNamesConst.ICON, "", ValueTypeEnum.File,
                               "The icon file of the package (jpg,png,bmp)"));
   Params.Add(new SectionParam(ParamNamesConst.ONLINE_ICON, "", ValueTypeEnum.String,
                               "The icon file of the package stored online (jpg,png,bmp)"));
   Params.Add(new SectionParam(ParamNamesConst.CONFIG, "", ValueTypeEnum.Template,
                               "The file used to configure the extension.\n If have .exe extension the will be executed\n If have .dll extension used like MP plugin configuration"));
   Params.Add(new SectionParam(ParamNamesConst.ONLINE_SCREENSHOT, "", ValueTypeEnum.String,
                               "Online stored screenshot urls separated by ; "));
   Params.Add(new SectionParam(ParamNamesConst.FORCE_TO_UNINSTALL_ON_UPDATE, "yes", ValueTypeEnum.Bool,
                               "Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer."));
 }
Example #3
0
 public GeneralInfoItem()
 {
     Version              = new VersionInfo();
     Id                   = Guid.NewGuid().ToString();
     ReleaseDate          = DateTime.Now;
     Tags                 = string.Empty;
     ExtensionDescription = string.Empty;
     VersionDescription   = string.Empty;
     Params               = new SectionParamCollection();
     Params.Add(new SectionParam(ParamNamesConst.ICON, "", ValueTypeEnum.File,
                                 "The icon file of the package (jpg,png,bmp)"));
     Params.Add(new SectionParam(ParamNamesConst.ONLINE_ICON, "", ValueTypeEnum.String,
                                 "The icon file of the package stored online (jpg,png,bmp)"));
     Params.Add(new SectionParam(ParamNamesConst.CONFIG, "", ValueTypeEnum.Template,
                                 "The file used to configure the extension.\n If have .exe extension the will be executed\n If have .dll extension used like MP plugin configuration"));
     Params.Add(new SectionParam(ParamNamesConst.ONLINE_SCREENSHOT, "", ValueTypeEnum.String,
                                 "Online stored screenshot urls separated by ; "));
     Params.Add(new SectionParam(ParamNamesConst.FORCE_TO_UNINSTALL_ON_UPDATE, "yes", ValueTypeEnum.Bool,
                                 "Show dialog and force to uninstall previous version when updating an extension. Should only be disabled if you are using an NSIS/MSI installer."));
 }
    public SectionParamCollection GetDefaultParams()
    {
      SectionParamCollection _param = new SectionParamCollection();

      _param.Add(new SectionParam(Const_script, "//css_reference \"MpeCore.dll\";\n" +
                                                "\n" +
                                                "using MpeCore.Classes;\n" +
                                                "using MpeCore;\n" +
                                                "\n" +
                                                "public class Script\n" +
                                                "{\n" +
                                                "    public static bool GetState(PackageClass packageClass, SectionItem sectionItem)\n" +
                                                "    {\n" +
                                                "        return true;\n" +
                                                "    }\n" +
                                                "}\n"
                                  , ValueTypeEnum.Script,
                                  "All included groups will have this state returned by the function \n public static bool GetState(PackageClass packageClass, SectionItem sectionItem)"));
      return _param;
    }