Inheritance: System.Windows.Forms.Form
コード例 #1
0
        /// <summary>
        /// When a row is double clicked, this method is called, opening the Account Edit Form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DataTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

            int Id = Int32.Parse(DataTable.Rows[e.RowIndex].Cells[0].Value.ToString());

            using (AccountEditForm Form = new AccountEditForm(Id))
            {
                Form.ShowDialog();
                BuildList();
            }
        }
コード例 #2
0
        /// <summary>
        /// When a row is double clicked, this method is called, opening the Account Edit Form
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DataTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
                return;

            int Id = Int32.Parse(DataTable.Rows[e.RowIndex].Cells[0].Value.ToString());
            AccountEditForm Form = new AccountEditForm(Id);
            Form.ShowDialog();
            BuildList();
        }