Ejemplo n.º 1
0
        private void btnListabol_Click(object sender, EventArgs e)
        {
            frmLista formLista = new frmLista(todos);
            var      result    = formLista.ShowDialog();

            if (result == DialogResult.OK)
            {
                tbBevitel.Text = formLista.SelectedToDo;
            }
            tbBevitel.Focus();
            tbBevitel.SelectionStart  = tbBevitel.Text.Length;
            tbBevitel.SelectionLength = 0;
        }
Ejemplo n.º 2
0
        private void btnListabol_Click(object sender, EventArgs e)
        {
            frmLista formLista = new frmLista(todos);  //a frmLista konstruktor egy metódus

            var result = formLista.ShowDialog();

            if (result == DialogResult.OK)
            {
                textBox1.Text = formLista.SelectedTodo;
            }

            textBox1.Focus();
            textBox1.SelectionStart  = textBox1.Text.Length;
            textBox1.SelectionLength = 0;
        }