Пример #1
0
        /// <summary>
        /// Initializes the properties.
        /// </summary>
        protected override void InitProperties()
        {
            base.InitProperties();
            Title           = string.Empty; //New report Title
            IsAddReportOpen = Visibility.Collapsed;
            IsPreviewOpen   = Visibility.Collapsed;

            Categories  = GetReportCategories();
            ReportTypes = GetReportTypes();
            Audiences   = GetAudiences();

            Audiences.ForEach(x =>
            {
                x.PropertyChanged += (o, e) =>
                {
                    if (Audiences.Any(s => s.IsSelected))
                    {
                        return;
                    }

                    MessageBox.Show("At least on recommended audience must be selected.", string.Format("MONAHRQ {0}", MonahrqContext.ApplicationVersion.SubStrBeforeLast(".")));
                };
            });
        }