private void lstSite_MouseClick(object sender, MouseEventArgs e) { if (lstSite.SelectedItem != null) { selectedSite = setting.Sites.FirstOrDefault(w => w.SiteName == (string)lstSite.SelectedItem); } }
private void lstSite_SelectedIndexChanged(object sender, EventArgs e) { if (lstSite.SelectedItem != null) { selectedSite = setting.Sites.FirstOrDefault(w => w.SiteName == lstSite.SelectedItem.ToString()); LoadList(); } }
private void FrmMain_Load(object sender, EventArgs e) { LoadSites(); if (setting.Sites.Count > 0) { selectedSite = setting.Sites.FirstOrDefault(); LoadList(); } timer1.Enabled = true; FrmMain_Resize(null, null); btnRegenerate.Enabled = false; }
private void lstSite_MouseClick(object sender, MouseEventArgs e) { if (lstSite.SelectedItem != null) selectedSite = setting.Sites.FirstOrDefault(w => w.SiteName == (string)lstSite.SelectedItem); }