예제 #1
0
        private void kbtnInputBox_Click(object sender, EventArgs e)
        {
            KryptonInputBox.Show(this, "Test", "Hello World!", "Your answer here...");


            //KryptonInputBox.Show(this, "Hello");
        }
예제 #2
0
        private void ButtonAddFromWebClick(object sender, EventArgs e)
        {
            string addr = KryptonInputBox.Show("Введите адрес изображения", "Network location", string.Empty);

            if (!string.IsNullOrEmpty(addr))
            {
                this.AddImage(addr);
            }
        }
예제 #3
0
 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();
            }
        }
예제 #5
0
        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;
         }
     }
 }
예제 #7
0
        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();
                }
            }
        }
예제 #8
0
        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 :");
        }
예제 #9
0
 private void buttonShow_Click(object sender, EventArgs e)
 {
     KryptonInputBox.Show(this, textBoxPrompt.Text, textBoxCaption.Text, textBoxDefaultResponse.Text);
 }