BioCore  5.0.0
A Windows .NET microscopy library and application for viewing, editing, and annotating images.
Loading...
Searching...
No Matches
Recorder.cs
Go to the documentation of this file.
1namespace BioCore
2{
3 public partial class Recorder : Form
4 {
5 public static string log;
6 public static void AddLine(string s)
7 {
8 log += s + Environment.NewLine;
9 }
10 public static Recorder recorder = null;
11 public static bool recordMicroscope = true;
12 public Recorder()
13 {
14 InitializeComponent();
15 }
16
21 private void clearBut_Click(object sender, EventArgs e)
22 {
23 textBox.Clear();
24 log = "";
25 }
26
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
48 private void Recorder_FormClosing(object sender, FormClosingEventArgs e)
49 {
50 e.Cancel = true;
51 this.WindowState = FormWindowState.Minimized;
52 }
53
58 private void textBox_TextChanged(object sender, EventArgs e)
59 {
60 // update = true;
61 // log = textBox.Text;
62 }
63
68 private void topMostBox_CheckedChanged(object sender, EventArgs e)
69 {
70 this.TopMost = topMostBox.Checked;
71 }
72
77 private void Recorder_Activated(object sender, EventArgs e)
78 {
79 foreach (string s in BioLib.Recorder.Lines)
80 {
81 log += s + Environment.NewLine;
82 }
83 textBox.Text = log;
84 }
85
90 private void microRecBox_CheckedChanged(object sender, EventArgs e)
91 {
92 recordMicroscope = microRecBox.Checked;
93 }
94 }
95}
static void AddLine(string s)
Definition Recorder.cs:6
static string log
Definition Recorder.cs:5
static Recorder recorder
Definition Recorder.cs:10
static bool recordMicroscope
Definition Recorder.cs:11