Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        /// <summary>
        /// Event fired when a player is selected
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DataTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }

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

            using (PlayerEditForm Form = new PlayerEditForm(Pid))
            {
                Form.ShowDialog();
            }
            BuildList();
        }
        /// <summary>
        /// Event fired when a player is selected
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DataTable_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
                return;

            int Pid = Int32.Parse(DataTable.Rows[e.RowIndex].Cells[1].Value.ToString());
            PlayerEditForm Form = new PlayerEditForm(Pid);
            Form.ShowDialog();
            BuildList();
        }