private void SyncWizard_Load(object sender, EventArgs e)
{
try
{
_config = Config.Load();
}
#region Error handling
catch (IOException ex)
{
Log.Error(ex);
Msg.Inform(this, ex.Message, MsgSeverity.Error);
Close();
}
catch (UnauthorizedAccessException ex)
{
Log.Error(ex);
Msg.Inform(this, ex.Message, MsgSeverity.Error);
Close();
}
catch (InvalidDataException ex)
{
Log.Error(ex);
Msg.Inform(this, ex.Message, MsgSeverity.Error);
Close();
}
#endregion
}