private void ProcessMessage(string message)
 {
     if (message == "Update")
     {
         AllCategories = DataBaseConnector.GetAllCategories();
     }
 }
 public AddActivityDialogViewModel()
 {
     AllCategories = DataBaseConnector.GetAllCategories();
     MessengerInstance.Register <string>(this, ProcessMessage);
 }