public void LoadContentData(SnapshotContent content)
		{
			_content = content;

			_allowToSave = false;

			buttonXLineId.Checked = _content.SnapshotSummary.ShowLineId;
			buttonXCampaign.Checked = _content.SnapshotSummary.ShowCampaign;
			buttonXComments.Checked = _content.SnapshotSummary.ShowComments;
			buttonXSpots.Checked = _content.SnapshotSummary.ShowSpots;
			buttonXCost.Checked = _content.SnapshotSummary.ShowCost;
			buttonXLogo.Checked = _content.SnapshotSummary.ShowLogo;
			buttonXTotalWeeks.Checked = _content.SnapshotSummary.ShowTotalWeeks;
			buttonXTotalCost.Checked = _content.SnapshotSummary.ShowTotalCost;
			buttonXTallySpots.Checked = _content.SnapshotSummary.ShowTallySpots;
			buttonXTallyCost.Checked = _content.SnapshotSummary.ShowTallyCost;

			_allowToSave = true;
		}
示例#2
0
        public SnapshotSummary(SnapshotContent parent)
        {
            Parent = parent;

            ApplySettingsForAll = MediaMetaData.Instance.ListManager.DefaultSnapshotSettings.UniversalToggles;

            ContractSettings = new ContractSettings();

            #region Options
            ShowLineId      = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowLineId;
            ShowLogo        = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowLogo;
            ShowCampaign    = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowCampaign;
            ShowComments    = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowComments;
            ShowSpots       = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowSpots;
            ShowCost        = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowCost;
            ShowTotalWeeks  = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTotalWeeks;
            ShowTotalCost   = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTotalCost;
            ShowTallySpots  = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTallySpots;
            ShowTallyCost   = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTallyCost;
            ShowSpotsX      = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowSpotsX;
            UseDecimalRates = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.UseDecimalRates;
            #endregion
        }
		public SnapshotSummary(SnapshotContent parent)
		{
			Parent = parent;

			ApplySettingsForAll = MediaMetaData.Instance.ListManager.DefaultSnapshotSettings.UniversalToggles;

			ContractSettings = new ContractSettings();

			#region Options
			ShowLineId = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowLineId;
			ShowLogo = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowLogo;
			ShowCampaign = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowCampaign;
			ShowComments = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowComments;
			ShowSpots = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowSpots;
			ShowCost = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowCost;
			ShowTotalWeeks = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTotalWeeks;
			ShowTotalCost = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTotalCost;
			ShowTallySpots = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTallySpots;
			ShowTallyCost = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowTallyCost;
			ShowSpotsX = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.ShowSpotsX;
			UseDecimalRates = MediaMetaData.Instance.ListManager.DefaultSnapshotSummarySettings.UseDecimalRates;
			#endregion
		}
		public void LoadContent(SnapshotContent editedContent)
		{
			_editedContent = editedContent;
			_settingsControls.OfType<IContentSettingsControl>().ToList().ForEach(c => c.LoadContentData(_editedContent));
		}