Ejemplo n.º 1
0
        private void buttonAddSeries_Click(object sender, EventArgs e)
        {
            FormInputModal form = new FormInputModal();

            if (form.ShowDialog() == DialogResult.OK)
            {
                listBoxFollowingSeries.Items.Add(form.input);
                listBoxFollowingSeries.Refresh();
            }

            form.Dispose();
        }
Ejemplo n.º 2
0
        private void buttonEditSeries_Click(object sender, EventArgs e)
        {
            var item = listBoxFollowingSeries.SelectedItem;

            if (item != null)
            {
                FormInputModal form = new FormInputModal();
                form.input = (string)item;
                if (form.ShowDialog() == DialogResult.OK)
                {
                    listBoxFollowingSeries.Items[listBoxFollowingSeries.SelectedIndex] = form.input;
                    listBoxFollowingSeries.Refresh();
                }

                form.Dispose();
            }
        }