public SlideShow(string[] ops, string profilename, DatabaseUtil.DBTable _data, XMLUtil.SaveSettings ss) { InitializeComponent(); SetWindowScreen(this, GetWindowScreen(App.Current.MainWindow)); savesettings = ss; randomrepeat = savesettings.RepeatShuffle; IntervalTimer = savesettings.Slideshowinterval; shuffle = savesettings.Shuffle; data = _data; foreach (string file in ops) { filepaths.Add(System.IO.Path.Combine(db.GetImageDirectory(data, file), file)); } main = filepaths.ToArray(); Directories = db.GetDirectories(data, profilename); LoadImageFolder(Directories); timerImageChange = new DispatcherTimer(); timerImageChange.Interval = new TimeSpan(0, 0, IntervalTimer); timerImageChange.Tick += new EventHandler(timerImageChange_Tick); if (shuffle) { Randomize(ref FI); Randomize(ref main); } ReturnFile = ""; }
private void Profiles_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (!Deleted) { Savesettings = XMLUtilities.LoadProfile(Profiles.SelectedItem.ToString()); UpdateControls(); } }
public SlideShowSelect(DatabaseUtil db, DatabaseUtil.DBTable data, XMLUtil.SaveSettings ss, string profilename) { InitializeComponent(); SetWindowScreen(this, GetWindowScreen(App.Current.MainWindow)); DB = db; Data = data; prof = profilename; savesettings = ss; }
public Settings(DatabaseUtil.DBTable data) { InitializeComponent(); SetWindowScreen(this, GetWindowScreen(App.Current.MainWindow)); Savesettings = XMLUtilities.LoadDefaultProfile(); UpdateControls(); UpdateProfiles(); defaultprofile = XMLUtilities.GetDefaultProfile(); Profiles.SelectedItem = defaultprofile; Deleted = false; DeletedOnlyProfile = false; Data = data; }