示例#1
0
        /// <summary>
        /// Displays a feedback dialog from the plugin
        /// </summary>
        /// <param name="Feedback">String message for feedback</param>
        /// <param name="Plugin">The plugin that called the feedback</param>
        public void Feedback(string Feedback, IPlugin Plugin)
        {
            //This sub makes a new feedback form and fills it out
            //With the appropriate information
            //This method can be called from the actual plugin with its Host Property

            System.Windows.Forms.Form newForm = null;
            frmFeedback newFeedbackForm = new frmFeedback();

            //Here we set the frmFeedback's properties that i made custom
            newFeedbackForm.PluginAuthor = "By: " + Plugin.Author;
            newFeedbackForm.PluginDesc = Plugin.Description;
            newFeedbackForm.PluginName = Plugin.Name;
            newFeedbackForm.PluginVersion = Plugin.Version;
            newFeedbackForm.Feedback = Feedback;

            //We also made a Form object to hold the frmFeedback instance
            //If we were to declare if not as  frmFeedback object at first,
            //We wouldn't have access to the properties we need on it
            newForm = newFeedbackForm;
            newForm.ShowDialog();

            newFeedbackForm = null;
            newForm = null;
        }
示例#2
0
        private void ucToolItem_Click_Event(object sender)
        {
            itemAllUnSelect(sender);
            ucToolItem ti = (ucToolItem)sender;

            switch (ti.Text)
            {
            case "最近学习章节":
                fmContent.Navigate(_study);
                break;

            case "激活的题目":
                fmContent.Navigate(_active);
                break;

            case "资讯收藏":
                fmContent.Navigate(_collection);
                break;

            case "意见反馈":
                frmFeedback fb = new frmFeedback(E_Feedback_Type.option);
                fb.ShowDialog();
                break;

            case "关于我们":
                frmAbout ab = new frmAbout();
                ab.ShowDialog();
                break;

            case "常见问题":
                var param = new
                {
                    token = Config.Token,
                    phone = Config.Phone,
                };
                var re = HttpHelper.Post(Config.Server + "/index/custom", param);
                var b  = HttpHelper.IsOk(re);
                if (b == true)
                {
                    var    data = re["data"];
                    string url  = data["about"].ToString();
                    System.Diagnostics.Process.Start(url);
                }
                break;

            default:
                break;
            }
        }
 private void FeedbackGebenLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     if (this._feedbackFormular != null)
     {
         if (!this._feedbackFormular.Visible)
         {
             this._feedbackFormular.Dispose();
             this._feedbackFormular = null;
         }
         else
         {
             this._feedbackFormular.Show();
             this._feedbackFormular.BringToFront();
         }
     }
     if (this._feedbackFormular == null)
     {
         this._feedbackFormular = new frmFeedback();
         this._feedbackFormular.ZeigeFeedbackFormular(Config.GlobalConfig.FeedbackEmailAdresse, Config.GlobalConfig.FeedbackWebScriptURL);
     }
 }
示例#4
0
        private void BtnFeedback_Click(object sender, EventArgs e)
        {
            frmFeedback frmFeedback = new frmFeedback();

            frmFeedback.Show();
        }
示例#5
0
        private void btn_error_Click(object sender, RoutedEventArgs e)
        {
            frmFeedback fb = new frmFeedback(E_Feedback_Type.question, _data.type, _data.qid);

            fb.ShowDialog();
        }