private void AddLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { CacheSetup setup = new CacheSetup(Core, new WebCache()); if (setup.ShowDialog() == DialogResult.OK) { CacheList.Items.Add(new CacheItem(setup.Cache)); SaveCache = true; } }
private void SetupLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (CacheList.SelectedItem == null) { return; } CacheItem item = CacheList.SelectedItem as CacheItem; CacheSetup setup = new CacheSetup(Core, item.Cache); if (setup.ShowDialog() == DialogResult.OK) { CacheList.Update(); SaveCache = true; } }
private void SetupLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (CacheList.SelectedItem == null) return; CacheItem item = CacheList.SelectedItem as CacheItem; CacheSetup setup = new CacheSetup(Core, item.Cache); if (setup.ShowDialog() == DialogResult.OK) { CacheList.Update(); SaveCache = true; } }