RespawnsDetailForm.cs 994 B

1234567891011121314151617181920212223242526272829
  1. namespace Server.MirForms.VisualMapInfo.Control.Forms
  2. {
  3. public partial class RespawnsDetailForm : Form
  4. {
  5. public RespawnsDetailForm()
  6. {
  7. InitializeComponent();
  8. }
  9. private void Chk(object sender, KeyPressEventArgs e)
  10. {
  11. e.Handled = (!char.IsDigit(e.KeyChar)) && (!char.IsControl(e.KeyChar));
  12. }
  13. private void DoneButton_Click(object sender, EventArgs e)
  14. {
  15. if (X.Text == string.Empty) X.Text = "0";
  16. if (Y.Text == string.Empty) Y.Text = "0";
  17. if (Spread.Text == string.Empty) Spread.Text = "0";
  18. if (Count.Text == string.Empty) Count.Text = "0";
  19. if (Delay.Text == string.Empty) Delay.Text = "0";
  20. if (RoutePath.Text == string.Empty) RoutePath.Text = "";
  21. if (Direction.Text == string.Empty) Direction.Text = "0";
  22. if (RDelay.Text == string.Empty) RDelay.Text = "0";
  23. this.Close();
  24. }
  25. }
  26. }