public static void LoadProfiles() { Profiles = new List<Profile>(); var profileModels = DataExportClientDataManager.GetProfiles(UserId); foreach (var profileModel in profileModels) { var profile = new Profile(profileModel); Profiles.Add(profile); } }
public static void SetCurrentProfile(string name) { CurrentProfile = new Profile(Profiles.Find(a => a.Parameters.ProfileName == name).Parameters); if (RaiseCurrentProfileChanged != null) RaiseCurrentProfileChanged(CurrentProfile); }
public void CurrentProfileChanged(Profile profile) { ui_ProfileQueries_listBox.Items.Clear(); foreach (var query in profile.Queries) { ui_ProfileQueries_listBox.Items.Add(query.QueryName); } ui_EnableLiveExport_checkBox.Checked = profile.Parameters.EnableLinkExport; ui_AutomaticJob_checkBox.Checked = profile.Parameters.EnableScheduleJob; }