Пример #1
0
        private void _slideShowSettingsButton_Click(object sender, EventArgs e)
        {
            using (SlideShowSettingsForm slideShowForm = new SlideShowSettingsForm())
            {
                if (_slidePathCollection != null)
                {
                    foreach (string path in _slidePathCollection)
                    {
                        slideShowForm.SlidePathCollection.Add(path);
                    }
                }

                slideShowForm.RandomSlideAlignment = _randomSlideAlignment;
                slideShowForm.SlideFitScreen       = _slideFitScreen;
                slideShowForm.SelectedSlidePath    = _selectedSlidePath;
                slideShowForm.SlideBackgroundColor = _slideBackgroundColor;
                slideShowForm.SlideLatency         = _slideLatency;
                slideShowForm.StretchSlide         = _stretchSlide;
                slideShowForm.SlideAlignment       = _slideAlignment;

                if (slideShowForm.ShowDialog() == DialogResult.OK)
                {
                    _randomSlideAlignment = slideShowForm.RandomSlideAlignment;
                    _slideFitScreen       = slideShowForm.SlideFitScreen;
                    _slideBackgroundColor = slideShowForm.SlideBackgroundColor;
                    _slideLatency         = slideShowForm.SlideLatency;
                    _selectedSlidePath    = slideShowForm.SelectedSlidePath;
                    _stretchSlide         = slideShowForm.StretchSlide;
                    _slideAlignment       = slideShowForm.SlideAlignment;

                    if (_slidePathCollection != null)
                    {
                        _slidePathCollection.Clear();
                    }
                    else
                    {
                        _slidePathCollection = new StringCollection();
                    }

                    foreach (string path in slideShowForm.SlidePathCollection)
                    {
                        _slidePathCollection.Add(path);
                    }
                }
            }
        }
Пример #2
0
		private void _slideShowSettingsButton_Click(object sender, EventArgs e)
		{
			using (SlideShowSettingsForm slideShowForm = new SlideShowSettingsForm())
			{
				if (_slidePathCollection != null)
				{
					foreach (string path in _slidePathCollection)
					{
						slideShowForm.SlidePathCollection.Add(path);
					}
				}

				slideShowForm.RandomSlideAlignment = _randomSlideAlignment;
				slideShowForm.SlideFitScreen = _slideFitScreen;
				slideShowForm.SelectedSlidePath = _selectedSlidePath;
				slideShowForm.SlideBackgroundColor = _slideBackgroundColor;
				slideShowForm.SlideLatency = _slideLatency;
				slideShowForm.StretchSlide = _stretchSlide;
				slideShowForm.SlideAlignment = _slideAlignment;

				if (slideShowForm.ShowDialog() == DialogResult.OK)
				{
					_randomSlideAlignment = slideShowForm.RandomSlideAlignment;
					_slideFitScreen = slideShowForm.SlideFitScreen;
					_slideBackgroundColor = slideShowForm.SlideBackgroundColor;
					_slideLatency = slideShowForm.SlideLatency;
					_selectedSlidePath = slideShowForm.SelectedSlidePath;
					_stretchSlide = slideShowForm.StretchSlide;
					_slideAlignment = slideShowForm.SlideAlignment;

					if (_slidePathCollection != null)
					{
						_slidePathCollection.Clear();
					}
					else
					{
						_slidePathCollection = new StringCollection();
					}

					foreach (string path in slideShowForm.SlidePathCollection)
					{
						_slidePathCollection.Add(path);
					}
				}
			}
		}