Exemplo 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;
        }
Exemplo 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;
     }
 }