public void UpdateSnapshots(Schedule schedule)
		{
			_snapshots.Clear();
			pnLeftColumn.Controls.Clear();
			pnRightColumn.Controls.Clear();
			int columnIndex = 0;
			foreach (PrintProduct publication in schedule.PrintProducts)
			{
				if (publication.Inserts.Count > 0)
				{
					var snapshot = new PublicationSnapshotControl(publication);
					if (columnIndex == 0)
					{
						pnLeftColumn.Controls.Add(snapshot);
						snapshot.BringToFront();
						columnIndex++;
					}
					else
					{
						pnRightColumn.Controls.Add(snapshot);
						snapshot.BringToFront();
						columnIndex = 0;
					}
					_snapshots.Add(snapshot);
				}
			}
			UpdateColumns(schedule);
		}
Exemple #2
0
        public void UpdateSnapshots(Schedule schedule)
        {
            _snapshots.Clear();
            pnLeftColumn.Controls.Clear();
            pnRightColumn.Controls.Clear();
            int columnIndex = 0;

            foreach (PrintProduct publication in schedule.PrintProducts)
            {
                if (publication.Inserts.Count > 0)
                {
                    var snapshot = new PublicationSnapshotControl(publication);
                    if (columnIndex == 0)
                    {
                        pnLeftColumn.Controls.Add(snapshot);
                        snapshot.BringToFront();
                        columnIndex++;
                    }
                    else
                    {
                        pnRightColumn.Controls.Add(snapshot);
                        snapshot.BringToFront();
                        columnIndex = 0;
                    }
                    _snapshots.Add(snapshot);
                }
            }
            UpdateColumns(schedule);
        }