Exemplo n.º 1
0
        void keyword_Closed(object sender, EventArgs e)
        {
            KeyWdForm keyWd = (KeyWdForm)sender;

            if (keyWd.DialogResult != DialogResult.OK)
            {
                return;
            }

            try
            {
                foreach (ListViewItem item in fileListView.SelectedItems)
                {
                    _currentUser.KeyWordChange((int)item.Tag, keyWd.KeyWord);
                    LoadFiles();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show("系统错误:" + ex.Message, "文档管理系统", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }