Example #1
0
 private void NewItem(object sender, EventArgs e)
 {
     var newSms = new SmsForm(currentUser);
     var result = newSms.ShowDialog();
     if (result == System.Windows.Forms.DialogResult.OK)
     {
         RefreshItems(sender, e);
     }
 }
Example #2
0
        private void NewItem(object sender, EventArgs e)
        {
            var newSms = new SmsForm(currentUser);
            var result = newSms.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                RefreshItems(sender, e);
            }
        }
Example #3
0
        private void UpdateItem(object sender, EventArgs e)
        {
            var item = dataGridView.SelectedRows[0].DataBoundItem as Sms;

            var newSms = new SmsForm(item.Id, currentUser);
            var result = newSms.ShowDialog();
            if (result == System.Windows.Forms.DialogResult.OK)
            {
                RefreshItems(sender, e);
            }
        }
Example #4
0
        private void UpdateItem(object sender, EventArgs e)
        {
            var item = dataGridView.SelectedRows[0].DataBoundItem as Sms;

            var newSms = new SmsForm(item.Id, currentUser);
            var result = newSms.ShowDialog();

            if (result == System.Windows.Forms.DialogResult.OK)
            {
                RefreshItems(sender, e);
            }
        }