BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
SelectRecording.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Threading.Tasks;
9using System.Windows.Forms;
10
11namespace BioCore
12{
13 public partial class SelectRecording : Form
14 {
15 /* Adding the items in the Automation.Properties.Values and Automation.Recordings.Values to the
16 propsBox and recsBox. */
18 {
19 InitializeComponent();
20 foreach (var item in Automation.Properties.Values)
21 {
22 propsBox.Items.Add(item);
23 }
24 foreach (var item in Automation.Recordings.Values)
25 {
26 recsBox.Items.Add(item);
27 }
28 }
29 private Automation.Recording rec = null;
30 /* A property that returns the value of the variable rec. */
32 {
33 get
34 {
35 return rec;
36 }
37 }
38
44 private void recsBox_SelectedIndexChanged(object sender, EventArgs e)
45 {
46 rec = (Automation.Recording)recsBox.SelectedItem;
47 }
48
54 private void propsBox_SelectedIndexChanged(object sender, EventArgs e)
55 {
56 rec = (Automation.Recording)propsBox.SelectedItem;
57 }
58
63 private void okBut_Click(object sender, EventArgs e)
64 {
65 DialogResult = DialogResult.OK;
66 this.Close();
67 }
68 }
69}
static Dictionary< string, Recording > Recordings
Definition Automation.cs:12
static Dictionary< string, Recording > Properties
Definition Automation.cs:13
Automation.Recording Recording