Exemple #1
0
 private void frmGraphView_Load(object sender, EventArgs e)
 {
     LoadImages(PrivateData.GetRelativePath(@"\Cache\Images\")); // Load all known images for use in the Graph
     u = PersistenceBase.Load <Universe>(PrivateData.GetRelativePath(@"\Cache\uinverse3.json"));
     refreshLists();
     //viewer.Graph = SetViewAll();
     lblSelectedNode.Text = "Selected Node: " + selectedNode;
 }
 private void btnLoadFranchise_Click(object sender, EventArgs e)
 {
     u = PersistenceBase.Load <Universe>(PrivateData.GetRelativePath(@"\Cache\uinverse3.json"));
     lbActors.Items.Clear();
     lbCharacters.Items.Clear();
     tbActor.Clear();
     tbCharacter.Clear();
     lbMovies.Items.Clear();
     refreshLists();
 }
Exemple #3
0
 /// <summary>
 /// This function was created to avoid multiple google searches since it is limited to 100 a day.
 /// Saving the search results to File and loading from it saves the search and helps to figure out how to refine
 /// as well as developing the desired feature of being able to crop / scale and save for Character Profile and Icon (for graph)
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnLoadFromFile_Click(object sender, EventArgs e)
 {
     if (lbCharacters.SelectedIndex >= 0)
     {
         //todo - prefer Jared Leto as The Joker in Suicide Squad.json to just character name as they could be duplicates
         //Need same lookup as CharacterImageMaker to do that..
         string query    = lbCharacters.SelectedItem.ToString();
         string filePath = PrivateData.GetAppPath() + @"\Private\" + query.Replace("/", "_") + ".json";
         if (File.Exists(filePath))
         {
             CharacterImageSearchResults cisr = PersistenceBase.Load <CharacterImageSearchResults>(filePath);
             foreach (CharacterImageSearchResult r in cisr.CharacterImageSearchResultsList)
             {
                 string tFilter = r.Title.ToLower();
                 if (tFilter.Contains("toys") || tFilter.Contains("tv") || tFilter.Contains("collectibles") || tFilter.Contains("figure") || tFilter.Contains("halloween"))
                 {
                     continue; //skip this one
                 }
                 createImage(r.ThumbnailLink, r.ImageLink, r.ThumbnailWidth, r.ThumbnailHeight);
             }
         }
     }
 }
 public WelcomeForm()
 {
     InitializeComponent();
     //Since this is a demo This is loaded for the full data universe
     u = PersistenceBase.Load <Universe>(PrivateData.GetRelativePath(@"\Cache\uinverse3.json"));
 }
Exemple #5
0
 public CharacterFinder()
 {
     InitializeComponent();
     u = PersistenceBase.Load <Universe>(PrivateData.GetRelativePath(@"\Cache\uinverse3.json"));
     //InitTheMovieDb();
 }