コード例 #1
0
 private void InitUIWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     InitUIWorker.ReportProgress(0, new SplashProgressObject("Loading catalog...", 1));
     Globals.Forms.DBViewForm.LoadSets();
     InitUIWorker.ReportProgress(0, new SplashProgressObject("Loading collections...", 2));
     Globals.Forms.NavigationForm.LoadGroups();
     CardManager.CountInventory();
     AddSetIcons();
     InitUIWorker.ReportProgress(0, new SplashProgressObject("Starting application...", 3));
     Thread.Sleep(100);
 }
コード例 #2
0
 private void SetupUI()
 {
     SetupImageLists();
     Globals.Forms.CardInfoForm                 = new CardInfoForm();
     EventManager.CardImageRetrieved           += Globals.Forms.CardInfoForm.cardImageRetrieved;
     Globals.Forms.NavigationForm               = new CollectionNavigatorForm();
     Globals.Forms.NavigationForm.CardsDropped += EventManager.NavigationFormCardsDropped;
     Globals.Forms.DBViewForm = new DBViewForm();
     Globals.Forms.DBViewForm.CardsActivated += EventManager.DBViewFormCardActivated;
     Globals.Forms.DBViewForm.CardSelected   += EventManager.CardSelected;
     Globals.Forms.TasksForm = new TasksForm();
     Globals.Forms.TasksForm.InitializeTaskManager();
     Globals.Forms.TasksForm.tasksListView.GetColumn(0).Renderer = new IconRenderer();
     Globals.Forms.TasksForm.tasksListView.GetColumn(1).Renderer = new ProgressBarRenderer();
     Globals.Forms.TasksForm.TaskManager.SetDownloaded          += EventManager.SetDownloaded;
     Globals.Forms.TasksForm.TaskManager.PricesFetched          += EventManager.PricesFetched;
     splitContainer1.SplitterDistance = Height;
     InitUIWorker.RunWorkerAsync();
 }