コード例 #1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Guid idFile = (Guid)dataGridView1.Rows[e.RowIndex].Cells[0].Value;
            FormFile formFile = new FormFile(idFile);

            formFile.ShowDialog();

            if (formFile.DialogResult.Equals(DialogResult.OK))
            {
                archivoTableAdapter.Fill(this.webappDBDataSet.Archivo);
                dataGridView1.Update();
                dataGridView1.Refresh();
            }

            formFile.Dispose();
        }
コード例 #2
0
 private void addToolStripMenuItem3_Click(object sender, EventArgs e)
 {
     FormFile fFile = new FormFile();
     fFile.MdiParent = this;
     fFile.Show();
 }