Home > Net >  Refresh the Winform multi-page synchronization
Refresh the Winform multi-page synchronization

Time:04-16




Is similar to that of multiple page form, modify the data in a page, click on other page, other pages data real-time update, data may be a linkage between several pages

CodePudding user response:

Each page have a delegate, in mutual use save event

CodePudding user response:

In event subscription way, simple and direct

CodePudding user response:

Write a function, switch the TAB when event binding function

CodePudding user response:

Entrust can use

CodePudding user response:

Define a Action, and then the corresponding need, is under processing

CodePudding user response:

 
Public Action ChangeStr;
Private void Form3_Load (object sender, EventArgs e)
{
ChangeStr=new Action (LoadMsg);

}
Private void textBox1_TextChanged (object sender, EventArgs e)
{
ChangeStr (textBox1. Text);
}

Private void LoadMsg (string obj)
{
Label1. Text=obj;
Label2. Text=obj;
}

CodePudding user response:

Event subscription way
https://www.cnblogs.com/lishuyi/p/10765846.html
  •  Tags:  
  • C#
  • Related