public virtual void Release()
		{
			_inputControls.ForEach(i => i.Release());
			_inputControls.Clear();
			xtraScrollableControlInput.Controls.Clear();
			_sectionContainer = null;
		}
Exemple #2
0
 public virtual void Release()
 {
     _inputControls.ForEach(i => i.Release());
     _inputControls.Clear();
     xtraScrollableControlInput.Controls.Clear();
     _sectionContainer = null;
 }
		public SectionControl(SectionContainer sectionContainer)
		{
			_sectionContainer = sectionContainer;
			InitializeComponent();
			Dock = DockStyle.Fill;
			Text = MediaMetaData.Instance.DataTypeString;
		}
Exemple #4
0
        public SectionSummaryControl(SectionContainer sectionContainer)
        {
            InitializeComponent();
            _sectionContainer = sectionContainer;
            Text = "Summary Slide";
            buttonXAddItem.Visible = true;
            buttonXAddItem.Click  += OnAddItem;

            layoutControlItemAddItem.MaxSize = RectangleHelper.ScaleSize(layoutControlItemAddItem.MaxSize, Utilities.GetScaleFactor(CreateGraphics().DpiX));
            layoutControlItemAddItem.MinSize = RectangleHelper.ScaleSize(layoutControlItemAddItem.MinSize, Utilities.GetScaleFactor(CreateGraphics().DpiX));
        }
Exemple #5
0
        private SectionContainer AddSectionControl(ScheduleSection sectionData, int position = -1)
        {
            var sectionTabControl = new SectionContainer();

            sectionTabControl.InitControls();
            sectionTabControl.LoadData(sectionData);
            sectionTabControl.DataChanged          += OnSectionDataChanged;
            sectionTabControl.SectionEditorChanged += OnSectionEditorChanged;
            position = position == -1 ? xtraTabControlSections.TabPages.OfType <SectionContainer>().Count() : position;
            xtraTabControlSections.TabPages.Insert(position, sectionTabControl);
            return(sectionTabControl);
        }
		public SectionSummaryControl(SectionContainer sectionContainer)
		{
			InitializeComponent();
			_sectionContainer = sectionContainer;
			Text = "Summary Slide";
			buttonXAddItem.Visible = true;
			buttonXAddItem.Click += OnAddItem;
			if ((CreateGraphics()).DpiX > 96)
			{
				laHeaderTitle.Font = new Font(laHeaderTitle.Font.FontFamily, laHeaderTitle.Font.Size - 2, laHeaderTitle.Font.Style);
				buttonXAddItem.Font = new Font(buttonXAddItem.Font.FontFamily, buttonXAddItem.Font.Size - 2, buttonXAddItem.Font.Style);
			}
		}
Exemple #7
0
 private void DeleteSection(SectionContainer sectionControl)
 {
     if (PopupMessageHelper.Instance.ShowWarningQuestion("Are you sure want to delete {0}?", sectionControl.SectionData.Name) != DialogResult.Yes)
     {
         return;
     }
     EditedContent.Sections.Remove(sectionControl.SectionData);
     EditedContent.RebuildSectionIndexes();
     xtraTabControlSections.TabPages.Remove(sectionControl);
     UpdateSectionSplash();
     UpdateStatusBar();
     settingsContainer.UpdateSettingsAccordingDataChanges(SectionEditorType.Schedule);
     SettingsNotSaved = true;
 }
Exemple #8
0
 private void RenameSection(SectionContainer snapshotControl)
 {
     if (snapshotControl == null)
     {
         return;
     }
     using (var form = new FormSectionName())
     {
         form.SectionName = snapshotControl.SectionData.Name;
         if (form.ShowDialog(Controller.Instance.FormMain) != DialogResult.OK)
         {
             return;
         }
         snapshotControl.SectionData.Name = form.SectionName;
         snapshotControl.Text             = form.SectionName;
         settingsContainer.UpdateSettingsAccordingDataChanges(SectionEditorType.Schedule);
         SettingsNotSaved = true;
     }
 }
Exemple #9
0
 private void CloneSection(SectionContainer sectionControl)
 {
     using (var form = new FormSectionName())
     {
         form.SectionName = String.Format("{0} (Clone)", sectionControl.SectionData.Name);
         if (form.ShowDialog(Controller.Instance.FormMain) != DialogResult.OK)
         {
             return;
         }
         var section = sectionControl.SectionData.Clone <ScheduleSection, ScheduleSection>();
         section.Name   = form.SectionName;
         section.Index += 0.5;
         EditedContent.Sections.Add(section);
         EditedContent.RebuildSectionIndexes();
         var newControl = AddSectionControl(section, (Int32)section.Index);
         xtraTabControlSections.SelectedTabPage = newControl;
         settingsContainer.UpdateSettingsAccordingDataChanges(SectionEditorType.Schedule);
         SettingsNotSaved = true;
     }
 }
		public override void Release()
		{
			base.Release();
			_sectionContainer = null;
		}
		public SectionDigitalInfoControl(SectionContainer sectionContainer)
		{
			_sectionContainer = sectionContainer;
		}
		public void Release()
		{
			_spotColumns.Clear();
			gridControlProgramSource.DataSource = null;
			gridControlSchedule.DataSource = null;
			_selectedQuarter = null;
			_sectionContainer = null;
		}
 public override void Release()
 {
     base.Release();
     _sectionContainer = null;
 }
 public SectionDigitalInfoControl(SectionContainer sectionContainer)
 {
     _sectionContainer = sectionContainer;
 }