Ejemplo n.º 1
0
        //Same as below, no messagebox - DONE!
        private void listBox1_ShowLists_DoubleClick(object sender, EventArgs e)
        {
            _nameOfList = listBox1_ShowLists.SelectedItem.ToString();
            FormEditList editList = new FormEditList();

            editList.ShowDialog();
        }
Ejemplo n.º 2
0
        //Opens the Edit List window. If no list is selected, shows message - DONE!
        private void button_EditListOpen_Click(object sender, EventArgs e)
        {
            using (FormEditList editList = new FormEditList())
            {
                editList.FormClosing += new FormClosingEventHandler(editListClosing);
                if (listBox1_ShowLists.SelectedItem != null)
                {
                    _nameOfList = listBox1_ShowLists.SelectedItem.ToString();

                    editList.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Please select a list!");
                }
            }
        }