예제 #1
0
        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);
            }
        }
예제 #2
0
        public static void SetCurrentProfile(string name)
        {
            CurrentProfile = new Profile(Profiles.Find(a => a.Parameters.ProfileName == name).Parameters);

            if (RaiseCurrentProfileChanged != null)
                RaiseCurrentProfileChanged(CurrentProfile);
        }
예제 #3
0
파일: FormMain.cs 프로젝트: ruslanlyalko/DA
        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;
        }