コード例 #1
0
        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 = "";
        }
コード例 #2
0
        int pageindex = 1;          //Index of Page

        public TagManager(DatabaseUtil db, DatabaseUtil.DBTable data)
        {
            InitializeComponent();
            SetWindowScreen(this, GetWindowScreen(App.Current.MainWindow));

            DB   = db;
            Data = data;
        }
コード例 #3
0
 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;
 }
コード例 #4
0
        public Iqdb_Results(IqdbApi.Models.SearchResult _results, DatabaseUtil db, DatabaseUtil.DBTable data, bool imagetagged, string currentimgname, string directoryPath, short currentimgheight, short currentimgwidth, FileInfo currentimg, int currentimageindex)
        {
            InitializeComponent();
            SetWindowScreen(this, GetWindowScreen(App.Current.MainWindow));

            results             = _results;
            _db                 = db;
            _data               = data;
            currentImageName    = currentimgname;
            _DirectoryPath      = directoryPath;
            _currentImageHeight = currentimgheight;
            _currentImageWidth  = currentimgwidth;
            _currentImage       = currentimg;
            _currentImageIndex  = currentimageindex;
        }
コード例 #5
0
ファイル: Settings.xaml.cs プロジェクト: GooseBabies/PPDlocal
        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;
        }