Example #1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PS4Dialog dialog = new PS4Dialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                addPS4(dialog.ps4);
                savePS4s();
                refresh();
            }
        }
Example #2
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listViewPS4s.SelectedItems.Count == 0)
            {
                return;
            }

            PS4Dialog dialog = new PS4Dialog();

            int index = getPS4Index(listViewPS4s.SelectedItems[0].SubItems[1].Text);

            dialog.ps4 = ps4s[index];
            dialog.updateFields();
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                ps4s[index] = dialog.ps4;
                savePS4s();
                refresh();
            }
        }