/// <summary>
        /// SEND button
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            // WARNING
            try
            {
                using (aladdinService.StorageComponentImplService sc = new aladdinService.StorageComponentImplService())
                {
                    aladdinService.Warning userWarning = new aladdinService.Warning();
                    userWarning.DateTimeOfWarning = System.DateTime.Now;
                    aladdinService.SystemParameter typeOfWarning = new aladdinService.SystemParameter();
                    typeOfWarning.Code = "1";
                    typeOfWarning.Description = "Manual";
                    userWarning.TypeOfWarning = typeOfWarning;
                    aladdinService.SystemParameter situation = this.SituationComboBox.SelectedItem as aladdinService.SystemParameter;
                    string situationStr = "";
                    if (situation != null)
                        situationStr = situation.Description;

                    userWarning.Delivered = false;
                    userWarning.JustificationText = string.Format("Situation:{0}, Description:{1}", situationStr, this.DescriptionBox.Text);
                    aladdinService.Patient patient = new aladdinService.Patient();
                    patient.ID = App.PatientID;
                    userWarning.Patient = patient;
                    aladdinService.OperationResult res = sc.SaveWarning(userWarning, App.CurrentUserID);
                    AppCommands.MoveToPageCommand.Execute("StartPage", null);
                }
            }
            catch (Exception ex) {
                MessageBox.Show("Error : " + ex.Message, Config.APP_NAME, MessageBoxButton.OK, MessageBoxImage.Error);
            }

            // SEND EMAIL
            try
            {
                thirdpartyService.ServicesComponentImplService tps = new thirdpartyService.ServicesComponentImplService();
                // String subject, String txt, String sendTo
                tps.sendEmail("Healthcare desktop client application", this.DescriptionBox.Text, App.PatientID);
            }
            catch (Exception ex) {
                MessageBox.Show("Error : " + ex.Message, Config.APP_NAME, MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            using (aladdinService.StorageComponent sc = new aladdinService.StorageComponent())
            {
                aladdinService.Warning userWarning = new aladdinService.Warning();
                userWarning.DateTimeOfWarning = System.DateTime.Now;
                aladdinService.SystemParameter typeOfWarning  = new aladdinService.SystemParameter();
                typeOfWarning.Code = "1";
                typeOfWarning.Description = "Manual";
                userWarning.TypeOfWarning = typeOfWarning;
                aladdinService.SystemParameter situation = this.SituationComboBox.SelectedItem as aladdinService.SystemParameter;
                string situationStr = "";
                if (situation != null)
                    situationStr = situation.Description;

                userWarning.JustificationText = string.Format("Situation:{0}, Description:{1}", situationStr, this.DescriptionBox.Text);
                aladdinService.Patient patient = new aladdinService.Patient();
                patient.ID = App.PatientID;
                userWarning.Patient = patient;
                aladdinService.OperationResult res = sc.SaveWarning(userWarning, App.CurrentUserID);
                AppCommands.MoveToPageCommand.Execute("StartPage", null);
            }
        }