コード例 #1
0
		public void EditDigitalLegend()
		{
			var digitalLegend = LocalSchedule.ViewSettings.MultiSummaryViewSettings.DigitalLegend;
			using (var form = new FormDigital(digitalLegend))
			{
				form.ShowOutputOnce = Controller.Instance.Summaries.MultiSummary.PublicationNames1.Length - OutputFileIndex > 0;
				form.OutputOnlyFirstSlide = true;
				form.RequestDefaultInfo += (o, e) =>
				{
					((BaseEdit)e.Editor).EditValue = LocalSchedule.GetDigitalInfo(e);
					((BaseEdit)e.Editor).Tag = ((BaseEdit)e.Editor).EditValue;
				};
				if (form.ShowDialog() != DialogResult.OK) return;
				if (digitalLegend.ApplyForAll)
					LocalSchedule.ApplyDigitalLegendForAllViews(digitalLegend);
				Controller.Instance.MultiSummaryDigitalLegend.Image = !digitalLegend.Enabled ? Resources.DigitalDisabled : Resources.Digital;
				Controller.Instance.Supertip.SetSuperTooltip(Controller.Instance.MultiSummaryDigitalLegend, new SuperTooltipInfo("Digital Products", "",
					digitalLegend.Enabled ?
					"Digital Products are Enabled for this slide" :
					"Digital Products are Disabled for this slide"
					, null, null, eTooltipColor.Gray));
				SettingsNotSaved = true;
			}
		}
コード例 #2
0
		public void EditDigitalLegend()
		{
			var digitalLegend = LocalSchedule.ViewSettings.DetailedGridViewSettings.DigitalLegend;
			using (var form = new FormDigital(digitalLegend))
			{
				form.ShowOutputOnce = LocalSchedule.PrintProducts.Count(p => p.Inserts.Any()) > 1;
				form.OutputOnlyFirstSlide = false;
				form.RequestDefaultInfo += (o, e) =>
				{
					((BaseEdit)e.Editor).EditValue = LocalSchedule.GetDigitalInfo(e);
					((BaseEdit)e.Editor).Tag = ((BaseEdit)e.Editor).EditValue;
				};
				if (form.ShowDialog() != DialogResult.OK) return;
				if (digitalLegend.ApplyForAll)
					LocalSchedule.ApplyDigitalLegendForAllViews(digitalLegend);
				Controller.Instance.DetailedGridDigitalLegend.Image = !digitalLegend.Enabled ? Resources.DigitalDisabled : Resources.Digital;
				Controller.Instance.Supertip.SetSuperTooltip(Controller.Instance.DetailedGridDigitalLegend, new SuperTooltipInfo("Digital Products", "",
					digitalLegend.Enabled ?
					"Digital Products are Enabled for this slide" :
					"Digital Products are Disabled for this slide"
					, null, null, eTooltipColor.Gray));
				SettingsNotSaved = true;
			}
		}