Esempio n. 1
0
        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;
        }
 public ApproveSnapshotPayload(SnapshotContent snapshotContent)
 {
     Snapshot = snapshotContent;
 }
Esempio n. 3
0
 public void LoadContent(SnapshotContent editedContent)
 {
     _editedContent = editedContent;
     _settingsControls.OfType <IContentSettingsControl>().ToList().ForEach(c => c.LoadContentData(_editedContent));
 }