Esempio n. 1
0
 public bool AddQuery(QueryModel newQuery)
 {
     if (!Queries.Exists(query => query.QueryName == newQuery.QueryName))
     {
         DataExportClientDataManager.AddQueryToProfile(Parameters.ProfileId, newQuery);
         Queries = DataExportClientDataManager.GetQueriesForProfile(Parameters.ProfileId);
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public void EditCurrentQuery(QueryModel newQuery)
 {
     DataExportClientDataManager.EditQuery(CurrentQuery.QueryId, newQuery);
     Queries = DataExportClientDataManager.GetQueriesForProfile(Parameters.ProfileId);
     SetCurrentQuery(newQuery.QueryName);
 }
Esempio n. 3
0
 public Profile(ProfileModel parameters)
 {
     Parameters = parameters;
     Queries    = DataExportClientDataManager.GetQueriesForProfile(Parameters.ProfileId);
 }