Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public string TextValue
- {
- set
- {
- if (this.Memo.InvokeRequired)
- {
- this.Invoke((MethodInvoker)delegate
- {
- this.Memo.Text += value + "n";
- });
- }
- else
- {
- this.Memo.Text += value + "n";
- }
- }
- }
- public int Timer
- {
- set
- {
- if (this.timer.InvokeRequired) //?? No such thing
- {
- this.Invoke((MethodInvoker)delegate
- {
- if (value == 1)
- this.timer.Enabled = true;
- else
- this.timer.Enabled = false;
- });
- }
- else
- {
- if (value == 1)
- this.timer.Enabled = true;
- else
- this.timer.Enabled = false;
- }
- }
- }
- public int Timer
- {
- set
- {
- if (this.InvokeRequired)
- {
- this.Invoke((MethodInvoker)delegate
- {
- if (value == 1)
- this.timer.Enabled = true;
- else
- this.timer.Enabled = false;
- });
- }
- else
- {
- if (value == 1)
- this.timer.Enabled = true;
- else
- this.timer.Enabled = false;
- }
- }
- }
Add Comment
Please, Sign In to add comment