private void UserControlInitialized(object sender, EventArgs e)
{
if (!CheckSettings()) return;
try
{
Model = new ViewModel();
Model.Initialize(MingleSettings.Host, MingleSettings.Login, MingleSettings.Password);
Cursor = Cursors.Wait;
BindProjectList();
}
catch (Exception ex)
{
TraceLog.Exception(new StackFrame().GetMethod().Name, ex);
AlertUser(ex);
return;
}
finally
{
Cursor = Cursors.Arrow;
}
comboProjects.SelectedValue = Model.ProjectId;
}