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
MagicSelect.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 MagicSelect : Form
14 {
15 public MagicSelect(int index)
16 {
17 InitializeComponent();
18 thBox.SelectedIndex = index;
19 }
20 private bool numeric = false;
21
22 public bool Numeric
23 {
24 get
25 {
26 return numeric;
27 }
28 }
29
30 public int Threshold
31 {
32 get
33 {
34 return (int)numBox.Value;
35 }
36 }
37
38 public int Min
39 {
40 get { return (int)minBox.Value; }
41 }
42 public int Max
43 {
44 get { return (int)maxBox.Value; }
45 }
46 public int Index
47 {
48 get
49 {
50 return thBox.SelectedIndex;
51 }
52 }
53 private void numericBox_CheckedChanged(object sender, EventArgs e)
54 {
55 numeric = numericBox.Checked;
56 }
57
58 private void okBut_Click(object sender, EventArgs e)
59 {
60 DialogResult = DialogResult.OK;
61 }
62 }
63}