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); }
private void linkLabel6_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { FeedbackBox.ShowFeedbackBox(this, false); }