Exemplo n.º 1
0
 public MainForm()
 {
     InitializeComponent();
     listBoxLog = new ListBoxLog(listBox1);
     //TVDB = new NewTVDB(commonAppData);
     theXEM     = new thexem(commonAppData);
     TMDbClient = new TMDb(commonAppData);
 }
        //int oldIndex = -1;



        public TVShowOptions(List <TVShowSettings> tvShowList, string rootDir, string commonAppData)

        {
            InitializeComponent();

            _MainTVShowList = tvShowList;
            _RootDir        = rootDir;
            TVDB            = new thexem(commonAppData);
            TMDbClient      = new TMDb(commonAppData);
            listBoxTVShowList.DataSource    = _MainTVShowList;
            listBoxTVShowList.DisplayMember = "SearchName";
            //foreach (TVShowSettings item in tvShowList)
            //{
            //	listBox1.Items.Add(item.SearchName);
            //}
            this.listBoxTVShowList.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
            this.Show();
        }