private void toolAdd_Click(object sender, EventArgs e)
        {
            AddEditForm form = new AddEditForm(false, settings.Channels, RecList);

            form.ShowDialog(this);

            if (form.DialogResult == DialogResult.OK)
            {
                this.ShowRecordings(RecList);
                form.Dispose();
            }
            else
            {
                form.Dispose();
            }
        }
        private void listView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listView.SelectedItems.Count == 1)
            {
                ListView.SelectedListViewItemCollection items = listView.SelectedItems;

                ListViewItem lvItem = items[0];
                int          pos    = lvItem.Index;

                AddEditForm form = new AddEditForm(RecList.RecordingNumber(pos), true, settings.Channels);
                form.ShowDialog(this);

                if (form.DialogResult == DialogResult.OK)
                {
                    this.ShowRecordings(RecList);
                    form.Dispose();
                }
                else
                {
                    form.Dispose();
                }
            }
        }
Exemple #3
0
        private void listView_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (listView.SelectedItems.Count == 1)
            {
                ListView.SelectedListViewItemCollection items = listView.SelectedItems;

                ListViewItem lvItem = items[0];
                int pos = lvItem.Index;

                AddEditForm form = new AddEditForm(RecList.RecordingNumber(pos), true, settings.Channels);
                form.ShowDialog(this);

                if (form.DialogResult == DialogResult.OK)
                {
                    this.ShowRecordings(RecList);
                    form.Dispose();
                }
                else
                {
                    form.Dispose();
                }
            }
        }
Exemple #4
0
        private void toolAdd_Click(object sender, EventArgs e)
        {
            AddEditForm form = new AddEditForm(false, settings.Channels, RecList);
            form.ShowDialog(this);

            if (form.DialogResult == DialogResult.OK)
            {
                this.ShowRecordings(RecList);
                form.Dispose();
            }
            else
            {
                form.Dispose();
            }
        }