Represents a form that allows the user to enter a line of text.
Наследование: System.Windows.Forms.Form
Пример #1
0
 private void SetDelayItem_Click(object sender, EventArgs e)
 {
     StringInputForm frm = new StringInputForm();
     frm.Input = SelectedFrame.Delay.ToString();
     frm.NumOnly = true;
     if (frm.ShowDialog() == DialogResult.OK) {
         SelectedFrame.Delay = short.Parse(frm.Input);
     }
     SelectedFrame.Refresh();
 }
Пример #2
0
 private void removeTilesItem_Click(object sender, EventArgs e)
 {
     using (StringInputForm form = new StringInputForm())
     {
         form.NumOnly = true;
         if (form.ShowDialog() == DialogResult.OK)
             RemoveTiles(int.Parse(form.Input));
     }
 }
Пример #3
0
 private void RenameLayerMenuItem_Click(object sender, EventArgs e)
 {
     using (var form = new StringInputForm())
     {
         form.Input = Layers.SelectedItem.Text;
         if (form.ShowDialog() == DialogResult.OK)
         {
             Layers.SelectedItem.Text = form.Input;
         }
         Refresh();
     }
 }
Пример #4
0
 private void appendTilesItem_Click(object sender, EventArgs e)
 {
     using (StringInputForm form = new StringInputForm())
     {
         form.NumOnly = true;
         if (form.ShowDialog() == DialogResult.OK)
             AddTiles((short)_tileset.Tiles.Count, short.Parse(form.Input));
     }
 }