BioImager  5.0.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
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 BioImager
12{
13 public partial class SelectRecording : Form
14 {
16 {
17 InitializeComponent();
18 foreach (var item in Automation.Properties.Values)
19 {
20 propsBox.Items.Add(item);
21 }
22 foreach (var item in Automation.Recordings.Values)
23 {
24 recsBox.Items.Add(item);
25 }
26 }
27 private Automation.Recording rec = null;
29 {
30 get
31 {
32 return rec;
33 }
34 }
35
36 private void recsBox_SelectedIndexChanged(object sender, EventArgs e)
37 {
38 rec = (Automation.Recording)recsBox.SelectedItem;
39 }
40
41 private void propsBox_SelectedIndexChanged(object sender, EventArgs e)
42 {
43 rec = (Automation.Recording)propsBox.SelectedItem;
44 }
45
46 private void okBut_Click(object sender, EventArgs e)
47 {
48 DialogResult = DialogResult.OK;
49 this.Close();
50 }
51 }
52}
static Dictionary< string, Recording > Recordings
Definition Automation.cs:14
static Dictionary< string, Recording > Properties
Definition Automation.cs:15
Automation.Recording Recording