Пример #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;
        }
Пример #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;
     }
 }
Пример #3
0
        private async void loadTexts()
        {
            await Task.Factory.StartNew(() =>
            {
                string login    = (Bl.BlReferential.searchInfo(new QOBDCommon.Entities.Info {
                    Name = "ftp_login"
                }, ESearchOption.OR).FirstOrDefault() ?? new Info()).Value;
                string password = (Bl.BlReferential.searchInfo(new QOBDCommon.Entities.Info {
                    Name = "ftp_password"
                }, ESearchOption.OR).FirstOrDefault() ?? new Info()).Value;

                SaleGeneralConditionFileManagement.TxtLogin    = LegalInformationFileManagement.TxtLogin = login;
                SaleGeneralConditionFileManagement.TxtPassword = LegalInformationFileManagement.TxtPassword = password;

                LegalInformationFileManagement.read();
                SaleGeneralConditionFileManagement.read();
            });
        }