Show() public static method

The show.
public static Show ( string formName, string label, string name, string buttonName ) : string
formName string The form name.
label string The label.
name string The name.
buttonName string The button name.
return string
Beispiel #1
0
        /// <summary>
        /// The button 2_ click.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The e.</param>
        /// <remarks></remarks>
        private void renameBtn_Click(object sender, EventArgs e)
        {
            string name = GetNameDialog.Show(
                "Rename the plugin", "Select new name for the plugin:", comboBoxPluginName.Text, "&Rename");

            if (name != null)
            {
                Prefs.CustomPluginMasks[comboBoxPluginName.SelectedIndex].Name = name;
                comboBoxPluginName.Items[comboBoxPluginName.SelectedIndex]     = new string(name.ToCharArray());
            }
        }
Beispiel #2
0
        /// <summary>
        /// The button 3_ click.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The e.</param>
        /// <remarks></remarks>
        private void dupBtn_Click(object sender, EventArgs e)
        {
            string name = GetNameDialog.Show(
                "Select duplicated plugin name",
                "Select name for the duplicated plugin:",
                comboBoxPluginName.Text,
                "&Duplicate");

            if (name != null)
            {
                Prefs.CustomPluginMask newMask = new Prefs.CustomPluginMask();
                newMask.Name = Prefs.CustomPluginMasks[comboBoxPluginName.SelectedIndex].Name;
                newMask.VisibleTagTypes.AddRange(Prefs.CustomPluginMasks[comboBoxPluginName.SelectedIndex].VisibleTagTypes);
                Prefs.CustomPluginMasks.Add(newMask);

                comboBoxPluginName.SelectedIndex = comboBoxPluginName.Items.Add(name);
            }
        }
Beispiel #3
0
 /// <summary>
 /// The set name box.
 /// </summary>
 /// <param name="initalName">The inital name.</param>
 /// <returns>The set name box.</returns>
 /// <remarks></remarks>
 public string setNameBox(string initalName)
 {
     initalName = GetNameDialog.Show(
         "Choose new plugin name", "Input a name for the new plugin:", initalName, "&Set Name");
     return(initalName);
 }