Exemple #1
0
        private async void updateLegalInformation(object obj)
        {
            Singleton.getDialogueBox().showSearch(ConfigurationManager.AppSettings["update_message"]);
            bool isSuccessful = LegalInformationFileManagement.save();

            if (isSuccessful)
            {
                await Singleton.getDialogueBox().showAsync("Legal Information content has been saved Successfully!");
            }
            else
            {
                await Singleton.getDialogueBox().showAsync("Error occured while updating the legal Information content!");
            }
            Singleton.getDialogueBox().IsDialogOpen = false;
        }
Exemple #2
0
 private async void eraseLegalInformation(object obj)
 {
     if (await Singleton.getDialogueBox().showAsync("Do you confirm erasing the legal information content?"))
     {
         Singleton.getDialogueBox().showSearch(ConfigurationManager.AppSettings["update_message"]);
         LegalInformationFileManagement.TxtContent = "";
         if (LegalInformationFileManagement.save())
         {
             await Singleton.getDialogueBox().showAsync("Legal Information content has been erased Successfully!");
         }
         else
         {
             await Singleton.getDialogueBox().showAsync("Error occured while erasing the legal information content!");
         }
         Singleton.getDialogueBox().IsDialogOpen = false;
     }
 }