private void kbtnInputBox_Click(object sender, EventArgs e) { KryptonInputBox.Show(this, "Test", "Hello World!", "Your answer here..."); //KryptonInputBox.Show(this, "Hello"); }
private void ButtonAddFromWebClick(object sender, EventArgs e) { string addr = KryptonInputBox.Show("Введите адрес изображения", "Network location", string.Empty); if (!string.IsNullOrEmpty(addr)) { this.AddImage(addr); } }
private void rightClickContext_Closed(object sender, ToolStripDropDownClosedEventArgs e) { if (e.CloseReason == ToolStripDropDownCloseReason.ItemClicked) { string newText = KryptonInputBox.Show("Enter tab name:"); navigator.SelectedPage.Text = newText; navigator.SelectedPage.Tag = true; } }
void ButtonAddClick(object sender, EventArgs e) { string res = KryptonInputBox.Show(Strings.InputValue, Strings.Value, string.Empty); if (!string.IsNullOrEmpty(res)) { listStrings.Items.Add(res); UpdateButtons(); } }
private void ButtonRenameClick(object sender, EventArgs e) { string newClass = KryptonInputBox.Show(Strings.InputTemplateName, Strings.Rename, string.Empty); if (!string.IsNullOrEmpty(newClass) && this.gridClasses.CurrentRow != null) { ImportObjectClass ic = (ImportObjectClass)this.gridClasses.CurrentRow.Tag; ic.Name = newClass; this.CheckClasses(); this.UpdateRows(); } }
void ButtonEditClick(object sender, EventArgs e) { if (listStrings.SelectedIndex != -1) { string def = (string)listStrings.SelectedItem; string res = KryptonInputBox.Show(Strings.InputValue, Strings.Value, def); if (def != res) { listStrings.Items[listStrings.SelectedIndex] = res; } } }
void ButtonAddFromInternetClick(object sender, EventArgs e) { string addr = KryptonInputBox.Show("Введите адрес изображения", "Network location", string.Empty); if (!string.IsNullOrEmpty(addr)) { if (this.AddImage(addr) != null) { this.UpdateViewImageList(); this.UpdateButtons(); } } }
private void kbtnShow_Click(object sender, EventArgs e) { var res = KryptonInputBox.Show( ktxtPromptText.Text, ktxtCaptionText.Text, ktxtDefaultResponseText.Text, ktxtCueText.Text, kcbCueTextColour.SelectedColor, _cueTypeface, kchkUsePasswordOption.Checked ); KryptonMessageBox.Show(this, res, @"Result was :"); }
private void buttonShow_Click(object sender, EventArgs e) { KryptonInputBox.Show(this, textBoxPrompt.Text, textBoxCaption.Text, textBoxDefaultResponse.Text); }