Пример #1
0
 void SetStatus(StatusUpdateHandler status, string text)
 {
     if (status != null)
     {
         status.Invoke(Name + ": " + text);
     }
 }
Пример #2
0
        public AboutPage()
        {
            RestServiceCategory = new RestService <Category>("api/Categories");
            ItemsCategory       = new ObservableCollection <Category>();

            _ = ExecuteLoadCategoryItemsCommand();

            RestServiceTransaction = new RestService <Transaction>("api/Transactions");
            ItemsTrancations       = new ObservableCollection <Transaction>();
            _ = ExecuteLoadTransactionItemsCommand();
            InitializeComponent();
            ToolRefresh.Clicked       += ToolRefresh_Clicked;
            Refresh                   += new EventHandler(HandelEvent);
            OnUpdateStatusCategory    += new StatusUpdateHandlerCategory(UpdateStatus);
            OnUpdateStatusTransaction += new StatusUpdateHandler(UpdateStatus);
        }