Example #1
0
 public VideoLocal_PlaceVM(Contract_VideoLocal_Place contract)
 {
     this.VideoLocal_Place_ID = contract.VideoLocal_Place_ID;
     this.VideoLocalID = contract.VideoLocalID;
     this.FilePath = contract.FilePath;
     this.ImportFolderID = contract.ImportFolderID;
     this.ImportFolderType = contract.ImportFolderType;
     ImportFolder = new ImportFolderVM(contract.ImportFolder);
 }
Example #2
0
 public VideoLocal_PlaceVM(Contract_VideoLocal_Place contract)
 {
     this.VideoLocal_Place_ID = contract.VideoLocal_Place_ID;
     this.VideoLocalID        = contract.VideoLocalID;
     this.FilePath            = contract.FilePath;
     this.ImportFolderID      = contract.ImportFolderID;
     this.ImportFolderType    = contract.ImportFolderType;
     ImportFolder             = new ImportFolderVM(contract.ImportFolder);
 }
Example #3
0
        public VideoLocalVM(JMMServerBinary.Contract_VideoLocal contract)
        {
            this.CRC32           = contract.CRC32;
            this.DateTimeUpdated = contract.DateTimeUpdated;
            this.FilePath        = contract.FilePath;
            this.FileSize        = contract.FileSize;
            this.Hash            = contract.Hash;
            this.HashSource      = contract.HashSource;
            this.ImportFolderID  = contract.ImportFolderID;
            this.IsWatched       = contract.IsWatched;
            this.IsIgnored       = contract.IsIgnored;
            this.IsVariation     = contract.IsVariation;
            this.MD5             = contract.MD5;
            this.SHA1            = contract.SHA1;
            this.VideoLocalID    = contract.VideoLocalID;
            this.WatchedDate     = contract.WatchedDate;

            ImportFolder = new ImportFolderVM(contract.ImportFolder);
        }
Example #4
0
        public DuplicateFileVM(JMMServerBinary.Contract_DuplicateFile contract)
        {
            this.DateTimeUpdated     = contract.DateTimeUpdated;
            this.DuplicateFileID     = contract.DuplicateFileID;
            this.FilePathFile1       = contract.FilePathFile1;
            this.FilePathFile2       = contract.FilePathFile2;
            this.Hash                = contract.Hash;
            this.ImportFolderIDFile1 = contract.ImportFolderIDFile1;
            this.ImportFolderIDFile2 = contract.ImportFolderIDFile2;

            this.AnimeID       = contract.AnimeID;
            this.AnimeName     = contract.AnimeName;
            this.EpisodeName   = contract.EpisodeName;
            this.EpisodeNumber = contract.EpisodeNumber;
            this.EpisodeType   = contract.EpisodeType;

            ImportFolder1 = new ImportFolderVM(contract.ImportFolder1);
            ImportFolder2 = new ImportFolderVM(contract.ImportFolder2);
        }
Example #5
0
		public void Init(ImportFolderVM ifldr)
		{
			try
			{
				importFldr = ifldr;

				txtImportFolderLocation.Text = importFldr.ImportFolderLocation;
				txtLocalPath.Text = importFldr.LocalPath;
				chkDropDestination.IsChecked = importFldr.IsDropDestination == 1;
				chkDropSource.IsChecked = importFldr.IsDropSource == 1;
				chkIsWatched.IsChecked = importFldr.IsWatched == 1;

				txtImportFolderLocation.Focus();
			}
			catch (Exception ex)
			{
				Utils.ShowErrorMessage(ex);
			}
		}
Example #6
0
        public void Init(ImportFolderVM ifldr)
        {
            try
            {
                importFldr = ifldr;

                txtImportFolderLocation.Text = importFldr.ImportFolderLocation;
                txtLocalPath.Text = importFldr.LocalPath;
                chkDropDestination.IsChecked = importFldr.IsDropDestination == 1;
                chkDropSource.IsChecked = importFldr.IsDropSource == 1;
                chkIsWatched.IsChecked = importFldr.IsWatched == 1;
                if ((ifldr.CloudID ?? 0)==0)
                    comboProvider.SelectedIndex = 0;
                else
                    comboProvider.SelectedItem = JMMServerVM.Instance.FolderProviders.FirstOrDefault(a => a.CloudID == ifldr.CloudID.Value);
                txtImportFolderLocation.Focus();
            }
            catch (Exception ex)
            {
                Utils.ShowErrorMessage(ex);
            }
        }
Example #7
0
        public void RefreshImportFolders()
        {
            ImportFolders.Clear();

            if (!ServerOnline) return;
            try
            {
                List<JMMServerBinary.Contract_ImportFolder> importFolders = Instance.clientBinaryHTTP.GetImportFolders();

                foreach (JMMServerBinary.Contract_ImportFolder ifolder in importFolders)
                {
                    ImportFolderVM grpNew = new ImportFolderVM(ifolder);
                    ImportFolders.Add(grpNew);
                }
            }
            catch (Exception ex)
            {
                Utils.ShowErrorMessage(ex);
            }
        }