示例#1
0
        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;
            }
        }
示例#2
0
        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;
            }
        }
示例#3
0
        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;
            }
        }
示例#4
0
        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;
            }
        }