private void GameDays_Load(object sender, EventArgs e) { try { clWork = new CGameDays(connect); this.WindowState = FormWindowState.Maximized; gpos = 0; init_data(); } catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); } }
private void DlgGameDays_Load(object sender, EventArgs e) { string text = null; try { clWork = new CGameDays(connect); clPart = new CParticipant(connect); if (oldData != null) { mode = 1; } else { mode = 0; } if (mode == 0) { text = "Новый игровой день"; int n = clWork.GetFreeId(IS.idseason); textBoxNDay.Text = n.ToString(); textBoxCntGame.Focus(); } if (mode == 1) { text = "Редактировать игровой день"; set_data((STGameDays)oldData); } this.Text = text; init_list_admin(); init_list_washer(); } catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); } }