示例#1
0
        private void btnEditKnownGroups_Click(object sender, EventArgs e)
        {
            KnownGroupsList res = LoadKnownGroupsFile();
            KnownGroupsForm f   = new KnownGroupsForm();

            f.Groups = res;
            DialogResult dr = f.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                res = f.Groups;
                lock (_sync)
                {
                    _cache = res;
                }
                SaveKnownGroupsToFile(f.Groups);
            }
        }
示例#2
0
        private void btnEditKnownGroups_Click(object sender, EventArgs e)
        {
            KnownGroupsList res = LoadKnownGroupsFile();
            KnownGroupsForm f = new KnownGroupsForm();
            f.Groups = res;
            DialogResult dr = f.ShowDialog();

            if (dr == System.Windows.Forms.DialogResult.OK)
            {
                res = f.Groups;
                lock (_sync)
                {
                    _cache = res;
                }
                SaveKnownGroupsToFile(f.Groups);
            }
        }