Пример #1
0
        private void sendButton_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(this.toTextBox.Text) &&
                !string.IsNullOrEmpty(this.msgTextBox.Text))
            {
                var sms = new SMSClient();
                try
                {
                    this.Enabled = false;
                    this.Cursor  = Cursors.WaitCursor;

                    if (!sms.Send(this.toTextBox.Text, this.msgTextBox.Text))
                    {
                        FormManager.Alert("Wystapił bład w trakcie wysyłania SMSa");
                    }
                }
                catch (Exception ex)
                {
                    throw ex;
                }
                finally
                {
                    this.Cursor  = Cursors.Default;
                    this.Enabled = true;
                }
            }
        }
Пример #2
0
 public override void EndEdit()
 {
     base.EndEdit();
     if (this.RozdzielonaReklamacja != null)
     {
         FormManager.Alert("Dodano nową reklamację o numerze: " + RozdzielonaReklamacja.Numer.NumerPelny);
         this.Reload();
     }
 }