Beispiel #1
0
 public static void DeleteMailsData(int ID)
 {
     try
     {
         DBServiceClient dws = new DBServiceClient();
         dws.DeleteMailsData(ID);
         dws.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Beispiel #2
0
 public static void SetMailsData(Mail mailData)
 {
     try
     {
         DBServiceClient dws = new DBServiceClient();
         dws.SetMailsData(mailData);
         dws.Close();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Beispiel #3
0
        public static List <Tag> GetTags()
        {
            List <Tag> tagsList = new List <Tag>();

            try
            {
                DBServiceClient dws = new DBServiceClient();
                tagsList = dws.GetTags();
                dws.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            return(tagsList);
        }
Beispiel #4
0
        public static List <Mail> GetMails(bool isSender, int chosenID)
        {
            List <Mail> mailsList = new List <Mail>();

            try
            {
                DBServiceClient dws = new DBServiceClient();
                mailsList = dws.GetMails(isSender, chosenID);
                dws.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            return(mailsList);
        }
Beispiel #5
0
        public static List <Employee> GetEmployees()
        {
            List <Employee> employeesList = new List <Employee>();

            try
            {
                DBServiceClient dws = new DBServiceClient();
                employeesList = dws.GetEmployees();
                dws.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            return(employeesList);
        }