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
Resolutions.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;
10using loci.common.services;
11using loci.formats;
12using loci.formats.services;
13using ome.xml.model.primitives;
14using loci.formats.meta;
15
16namespace BioImager
17{
18 public partial class Resolutions : Form
19 {
20 private int res;
21 public int Resolution
22 {
23 get{return res;}
24 }
25
26 public Resolutions(List<BioLib.Resolution> res)
27 {
28 InitializeComponent();
29 foreach (var item in res)
30 {
31 resBox.Items.Add(item);
32 }
33 }
34
35 private void resBox_SelectedIndexChanged(object sender, EventArgs e)
36 {
37 res = resBox.SelectedIndex;
38 }
39
40 private void okBut_Click(object sender, EventArgs e)
41 {
42 this.Close();
43 }
44 }
45}
Resolutions(List< BioLib.Resolution > res)