-
Notifications
You must be signed in to change notification settings - Fork 0
/
FameForm.cs
51 lines (46 loc) · 855 Bytes
/
FameForm.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using AODPSo.Properties;
namespace AODPSo
{
public partial class FameForm : Form
{
public string fText
{
get
{
return this._fText;
}
set
{
this._fText = value;
this.updatefText(this._fText);
}
}
public Label pubLabel
{
get { return label1; }
}
public FameForm()
{
this.InitializeComponent();
}
private void updatefText(string newText)
{
if (this.label1.InvokeRequired)
{
FameForm.updatefTextDelegate del = new FameForm.updatefTextDelegate(this.updatefText);
this.label1.Invoke(del, new object[]
{
newText
});
return;
}
this.label1.Text = newText;
}
private string _fText;
private delegate void updatefTextDelegate(string newText);
}
}