Esempio n. 1
0
        public static void ShowFeedbackBox(Form parent, bool showDisableCheckbox)
        {
            if (parent == null)
            {
                throw new ArgumentNullException(nameof(parent));
            }

            using (var f = new FeedbackBox())
            {
                f.checkBoxNeverShow.Visible = showDisableCheckbox;
                f.checkBoxNeverShow.Enabled = showDisableCheckbox;

                f.Icon          = parent.Icon;
                f.Owner         = parent;
                f.StartPosition = FormStartPosition.CenterParent;

                f.ShowDialog(parent);
            }
        }
 private void button14_Click(object sender, EventArgs e)
 {
     FeedbackBox.ShowFeedbackBox(this, true);
 }
Esempio n. 3
0
 private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     FeedbackBox.ShowFeedbackBox(this, false);
 }