private void updateText(string text) { if (this.textBox_resoult.InvokeRequired) { AsynUpdateUI au = new AsynUpdateUI(updateText); this.Invoke(au, new object[] { text }); } else { textBox_resoult.Text += text; } }
private void LoadingControl(bool isLoad) { if (this.Panel_load.InvokeRequired) { AsynUpdateUI au = new AsynUpdateUI(LoadingControl); this.Invoke(au, new object[] { isLoad }); } else { Panel_load.Visible = isLoad; if (isLoad) { DuiPictureBox dp = Panel_load.DUIControls[0] as DuiPictureBox; dp.Images = new Image[] { Properties.Resources.video_loading_01, Properties.Resources.video_loading_02, Properties.Resources.video_loading_03, Properties.Resources.video_loading_04, Properties.Resources.video_loading_05, Properties.Resources.video_loading_06, Properties.Resources.video_loading_07, Properties.Resources.video_loading_08 }; Panel_load.BringToFront(); } else { Panel_load.SendToBack(); } } }