private void frmForca_Load(object sender, EventArgs e) { if (dlgAbrir.ShowDialog() == DialogResult.OK) { vetPal = new VetorPalavraDica(30); vetPal.LerDados(dlgAbrir.FileName); vetPal.PosicionarNoInicio(); } }
private void FrmFunc_Load(object sender, EventArgs e) { // prepara o toolstrip para exibir os ícones dos botões: tsBotoes.ImageList = imlBotoes; int indice = 0; foreach (ToolStripItem item in tsBotoes.Items) { if (item is ToolStripButton) { (item as ToolStripButton).ImageIndex = indice++; } } if (dlgAbrir.ShowDialog() == DialogResult.OK) { asPld = new VetorPalavraDica(30); asPld.LerDados(dlgAbrir.FileName); asPld.PosicionarNoInicio(); AtualizarTela(); } }
private void btnInicio_Click(object sender, EventArgs e) { asPld.PosicionarNoInicio(); AtualizarTela(); }