Esempio n. 1
0
        private async void updateSaleGeneralCondition(object obj)
        {
            Singleton.getDialogueBox().showSearch(ConfigurationManager.AppSettings["update_message"]);
            bool isSuccessful = SaleGeneralConditionFileManagement.save();

            if (isSuccessful)
            {
                await Singleton.getDialogueBox().showAsync("Sale General Condition content has been saved Successfully!");
            }
            else
            {
                await Singleton.getDialogueBox().showAsync("Error occured while updating the sale General Condition content!");
            }
            Singleton.getDialogueBox().IsDialogOpen = false;
        }
Esempio n. 2
0
 private async void eraseSaleGeneralCondition(object obj)
 {
     if (await Singleton.getDialogueBox().showAsync("Do you confirm erasing the sale general condition content?"))
     {
         SaleGeneralConditionFileManagement.TxtContent = "";
         if (SaleGeneralConditionFileManagement.save())
         {
             await Singleton.getDialogueBox().showAsync("Sale General Condition content has been erased Successfully!");
         }
         else
         {
             await Singleton.getDialogueBox().showAsync("Error occured while erasing the sale general condition content!");
         }
         Singleton.getDialogueBox().IsDialogOpen = false;
     }
 }
Esempio n. 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();
            });
        }