private void Main_NEW_Load(object sender, EventArgs e) { //Draw the availableEpisodes control this.AvailableEpisodes = new EpisodeManager_WinForms.AvailableEpisodesControl(this); this.metroTabPage2.Controls.Add(AvailableEpisodes); this.AvailableEpisodes.Size = new System.Drawing.Size(716, 466); this.AvailableEpisodes.Name = "AvailableEpisodes"; this.AvailableEpisodes.Location = new System.Drawing.Point(1, 0); // this.Size = new System.Drawing.Size(771, 586); metroTabControl1.SelectedTab = metroTabPage1; Control.CheckForIllegalCrossThreadCalls = false; localEpisodes.updateCheckSpinner.Visible = false; localEpisodes.epInfoPanel.BackgroundImage = null; localEpisodes.episodeNameLabel.Text = ""; localEpisodes.descLabel.Text = ""; localEpisodes.authorName.Text = ""; localEpisodes.ss1.BackgroundImage = null; localEpisodes.ss2.BackgroundImage = null; localEpisodes.ss3.BackgroundImage = null; localEpisodes.ss4.BackgroundImage = null; localEpisodes.iconFrame.Visible = false; localEpisodes.iconPicture.Visible = false; writeInitialIni(); writeInitialPaths(); smbxWorldsDir = settingsIni.ReadValue("Settings", "worldlocation"); smbxDir = settingsIni.ReadValue("Settings", "smbxpath"); smbxExeLoc = settingsIni.ReadValue("Settings", "executableloc"); // //settingspanelloading populateListView(); localEpisodes.localEpisodesListview.Focus(); try { localEpisodes.localEpisodesListview.Items[0].Selected = true; } catch { } checkForUpdates(); // try { Directory.CreateDirectory(Environment.CurrentDirectory + @"\temp"); Directory.CreateDirectory(Environment.CurrentDirectory + @"\temp\Server"); Directory.CreateDirectory(Environment.CurrentDirectory + @"\temp\Server\Cache"); Directory.CreateDirectory(Environment.CurrentDirectory + @"\temp\ZipReading"); Directory.CreateDirectory(Environment.CurrentDirectory + @"\temp\Update"); } catch (Exception ex) { Console.WriteLine(ex.Message); } // }
private void menuItem4_Click(object sender, EventArgs e) { AvailableEpisodesControl av = this.AvailableEpisodes; foreach (ListViewItem lvi in av.availEpisodesListview.Items) { lvi.Remove(); } av.loadTimeEvents(); }