コード例 #1
0
ファイル: MainForm.cs プロジェクト: jasal-denary/AutoRecorder
        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();
            }
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: jasal-denary/AutoRecorder
        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();
                }
            }
        }
コード例 #3
0
ファイル: MainForm.cs プロジェクト: DenaryGames/AutoRecorder
        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();
                }
            }
        }
コード例 #4
0
ファイル: MainForm.cs プロジェクト: DenaryGames/AutoRecorder
        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();
            }
        }