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
Recorder.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 Recorder : Form
14 {
15 public static string log;
16 public static void AddLine(string s)
17 {
18 log += s + Environment.NewLine;
19 }
20 public static Recorder recorder = null;
21 public static bool recordMicroscope = true;
22 public Recorder()
23 {
24 InitializeComponent();
25 }
26
27 private void clearBut_Click(object sender, EventArgs e)
28 {
29 textBox.Clear();
30 log = "";
31 }
32
33 private void delLineBut_Click(object sender, EventArgs e)
34 {
35 string[] sts = textBox.Lines;
36 string[] st = new string[sts.Length - 1];
37 for (int i = 0; i < st.Length; i++)
38 {
39 st[i] = sts[i];
40 }
41 textBox.Lines = st;
42 }
43
44 private void Recorder_FormClosing(object sender, FormClosingEventArgs e)
45 {
46 e.Cancel = true;
47 this.WindowState = FormWindowState.Minimized;
48 }
49
50 private void textBox_TextChanged(object sender, EventArgs e)
51 {
52 // update = true;
53 // log = textBox.Text;
54 }
55
56 private void topMostBox_CheckedChanged(object sender, EventArgs e)
57 {
58 this.TopMost = topMostBox.Checked;
59 }
60
61 private void Recorder_Activated(object sender, EventArgs e)
62 {
63 textBox.Text = log;
64 }
65
66 private void microRecBox_CheckedChanged(object sender, EventArgs e)
67 {
68 recordMicroscope = microRecBox.Checked;
69 }
70 }
71}
static Recorder recorder
Definition Recorder.cs:20
static string log
Definition Recorder.cs:15
static bool recordMicroscope
Definition Recorder.cs:21
static void AddLine(string s)
Definition Recorder.cs:16