protected virtual void infoLabel_DoubleClick(object sender, EventArgs e) { const string caption = "Degree of Parallelism Description"; const string description = @"Specifies the maximum degree of parallelization (-1 no limit given) to balance the maximum processor load. For further information see http://msdn.microsoft.com/en-us/library/system.threading.tasks.paralleloptions.maxdegreeofparallelism.aspx"; using (TextDialog dialog = new TextDialog(caption, description, true)) { dialog.ShowDialog(this); } }
protected virtual void infoLabel_DoubleClick(object sender, EventArgs e) { using (TextDialog dialog = new TextDialog("Description of " + Content.Name, Content.Description, ReadOnly || !Content.CanChangeDescription)) { if (dialog.ShowDialog(this) == DialogResult.OK) { Content.Description = dialog.Content; } } }
protected void descriptionTextBox_DoubleClick(object sender, EventArgs e) { using (TextDialog dialog = new TextDialog("Description of " + Content.Name, descriptionTextBox.Text, ReadOnly)) { if (dialog.ShowDialog(this) == DialogResult.OK) Content.Description = dialog.Content; } }
private void infoLabel_DoubleClick(object sender, System.EventArgs e) { using (TextDialog dialog = new TextDialog("Description of " + Content.Name, Content.Description, ReadOnly || !Content.CanChangeDescription)) { if (dialog.ShowDialog(this) == DialogResult.OK) Content.Description = dialog.Content; } }
protected void ControlToolTip_DoubleClick(object sender, EventArgs e) { Control control = sender as Control; if (control != null) { using (TextDialog dialog = new TextDialog(control.Name, (string)control.Tag, true)) { dialog.ShowDialog(this); } } }
protected virtual void exceptionTextBox_DoubleClick(object sender, EventArgs e) { using (TextDialog dialog = new TextDialog("Exception", exceptionTextBox.Text, ReadOnly || !Content.CanChangeDescription)) { if (dialog.ShowDialog(this) == DialogResult.OK) Content.Description = dialog.Content; } }