:: use the following to close WinForms
private void closeAgentLoginWindow()
{
try
{
this.Dispose();
}
catch (COMException ex)
{
showError(ex);
}
}
:: use the following to open WinForms
private void openAgentLoginWindow()
{
try
{
AgentLogin formAgentLogin = new AgentLogin();
formAgentLogin.ShowDialog();
}
catch (COMException ex)
{
showError(ex);
}
}
|