void ReleaseDesignerOutlets() { if (LblMessage != null) { LblMessage.Dispose(); LblMessage = null; } if (TxtPassword != null) { TxtPassword.Dispose(); TxtPassword = null; } if (CmdOk != null) { CmdOk.Dispose(); CmdOk = null; } if (CmdCancel != null) { CmdCancel.Dispose(); CmdCancel = null; } }
private void MessageTheread() { for (int i = 0; i < 10; i++) { Console.WriteLine("ThreadProc: {0}", i); Thread.Sleep(500); if (i == 9) { MethodInvoker setM = () => LblMessage.Visible = false; MethodInvoker setP = () => PanelState.BackColor = Color.FromArgb(191, 194, 199); LblMessage.BeginInvoke(setM); LblMessage.BeginInvoke(setP); } } }
private void FxProcessChanged(string pText) { LblMessage.Text = pText; LblMessage.Refresh(); }