Exemplo n.º 1
0
        /// <summary>
        /// Return a JSON representation of this object.
        /// </summary>
        /// <param name="CustomTransparencySoftwareSerializer">A delegate to serialize custom transparency software JSON objects.</param>
        public JObject ToJSON(CustomJObjectSerializerDelegate <TransparencySoftware> CustomTransparencySoftwareSerializer = null)
        {
            var JSON = JSONObject.Create(

                new JProperty("name", Name),
                new JProperty("version", Version),
                new JProperty("legal_status", LegalStatus.ToString()),
                new JProperty("open_source_license", OpenSourceLicense.ToString()),
                new JProperty("vendor", Vendor),

                Logo.HasValue
                               ? new JProperty("logo", Logo.ToString())
                               : null,

                HowToUse.HasValue
                               ? new JProperty("how_to_use", HowToUse.ToString())
                               : null,

                MoreInformation.HasValue
                               ? new JProperty("more_information", MoreInformation.ToString())
                               : null,

                SourceCodeRepository.HasValue
                               ? new JProperty("source_code_repository", SourceCodeRepository.ToString())
                               : null

                );

            return(CustomTransparencySoftwareSerializer != null
                       ? CustomTransparencySoftwareSerializer(this, JSON)
                       : JSON);
        }
Exemplo n.º 2
0
        public static void Initialize()
        {
            MainMenu = EloBuddy.SDK.Menu.MainMenu.AddMenu("Item Swapper Buddy", "ItemSwapperBuddy");
            MainMenu.AddGroupLabel("Changelog");
            MainMenu.AddLabel("  6.17.0.1");
            MainMenu.AddLabel("    <font color=\"#716842\">- Added a Menu and a Humanizer.</font>", 23);
            MainMenu.AddLabel("  6.17.0.0");
            MainMenu.AddLabel("    - Added \"Reverse - Swapping\".", 23);
            MainMenu.AddLabel("  6.16.0.0 - \"Back on track!\"");
            MainMenu.AddLabel("    - Fixed in case it didn't work.", 23);
            MainMenu.AddLabel("  1.0.0.0");
            MainMenu.AddLabel("    - First Release.", 23);

            HowToUse.Initialize();
            Humanizer.Initialize();
        }
Exemplo n.º 3
0
        //Open the HELP Form
        private void Help_button_Click(object sender, EventArgs e)
        {
            HowToUse help = new HowToUse();

            help.Show();
        }