示例#1
0
        private void button_add_Click(object sender, EventArgs e)
        {
            AddFileVersionForm addForm = new AddFileVersionForm(this.fileConfig, null);

            addForm.addSuccessEvent += new ESBasic.CbGeneric(addForm_addSuccessEvent);
            addForm.Show();
        }
示例#2
0
        private void button_update_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedRows.Count == 0)
            {
                MessageBox.Show("请选择要修改的文件");
                return;
            }
            FileUnit           fileObject = this.dataGridView1.SelectedRows[0].DataBoundItem as FileUnit;
            AddFileVersionForm addForm    = new AddFileVersionForm(this.fileConfig, fileObject);

            addForm.addSuccessEvent += new ESBasic.CbGeneric(addForm_addSuccessEvent);
            addForm.Show();
        }
示例#3
0
        private void dataGridView1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (e.Button != System.Windows.Forms.MouseButtons.Left)
            {
                return;
            }

            DataGridView.HitTestInfo info = this.dataGridView1.HitTest(e.X, e.Y);
            if (info.RowIndex >= 0)
            {
                FileUnit           fileObject = this.dataGridView1.SelectedRows[0].DataBoundItem as FileUnit;
                AddFileVersionForm addForm    = new AddFileVersionForm(this.fileConfig, fileObject);
                addForm.addSuccessEvent += new ESBasic.CbGeneric(addForm_addSuccessEvent);
                addForm.Show();
            }
        }