Наследование: System.Windows.Forms.Form
Пример #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();
        }
Пример #2
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());
            PlayerEditForm Form = new PlayerEditForm(Pid);
            Form.ShowDialog();
            BuildList();
        }