コード例 #1
0
        /// <summary>
        /// Asks for feedback
        /// </summary>
        private void AskForFeedback()
        {
            if (Config.TryReadBool("DisableFeedbackNotifications", out bool askForFeedback))
            {
                if (!askForFeedback)
                {
                    return;
                }

                FeedbackFetcher f = new FeedbackFetcher();
                f.Activate();
            }
            else
            {
                Config.AddVariable("DisableFeedbackNotifications", false);
            }
        }
コード例 #2
0
        /// <summary>
        /// Asks for feedback
        /// </summary>
        void AskForFeedback()
        {
            bool disableFeedback = false;

            //Set default value
            if (!Config.TryReadBool("DisableFeedbackNotifications", out disableFeedback))
            {
                disableFeedback = false;
                Config.AddVariable("DisableFeedbackNotifications", disableFeedback);
            }

            //Ask for feedback
            if (!disableFeedback)
            {
                FeedbackFetcher f = new FeedbackFetcher();
                f.Activate();
            }
        }