This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void CreateGfycat(object obj) | |
{ | |
await Task.Factory.StartNew(async () => | |
{ | |
try | |
{ | |
_createGfyResponse = await CreateGfy(); | |
await PostGfy(ClipPath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Console.WriteLine("examining " + dr["Name"]); | |
var id = Convert.ToInt64(dr["Id"]); | |
var name = dr["Name"].ToString(); | |
var added = DateTime.Parse(dr["DateAdded"].ToString()); | |
var rating = 0; | |
if (dr["Rating"] != DBNull.Value) | |
rating = Convert.ToInt32(dr["Rating"]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<FolderVm> GetFolderVms<TItemVm>(ObservableCollection<FolderVm> folders, ObservableCollection<TItemVm> potentialMatches) where TItemVm : IItemVm | |
{ | |
var matchingFolders = new List<FolderVm>(); | |
foreach (var folder in folders) | |
{ | |
var directoryName = new DirectoryInfo(folder.Header).Name; | |
var matchingWebsite = potentialMatches.FirstOrDefault(x => string.Equals(x.Header, directoryName, StringComparison.CurrentCultureIgnoreCase)); |