Beispiel #1
0
 public OCA.Common.DataSets.Kartabl.MessageBox GetSendedMessages(string Username)
 {
     try
     {
         dsmessage.Clear();
         dsmessage = messageclass.GetSendedMessages(Username);
         return(dsmessage);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Beispiel #2
0
 public void Load_DataGridView()
 {
     try
     {
         dsmessage = messageclass.GetSendedMessages(online_Username);
         dsmessage.AcceptChanges();
         DataGridView.DataSource = dsmessage.Tbl_MessageBox;
         txtMsgName.Clear();
         txtMsgText.Clear();
     }
     catch (Exception ex)
     {
         mesg.Error("خطا", ex.Message);
     }
 }