private void LoadState(State state)
{
var methodName = MethodBase.GetCurrentMethod().Name;
try
{
state.Page.Dispatcher.Invoke(new Action(() =>
{
CurrentPage = state.Page;
}));
}
catch (Exception ex)
{
_logger.Error(Thread.CurrentThread.ManagedThreadId + " # " + "{0} - {1}:{2}", methodName, MessageResource.ErrorUnExpectedException, ex.Message);
}
}
public Page CurrentPage
{
get
{
return
_currentPage;
}
set
{
var methodName = MethodBase.GetCurrentMethod().Name;
try
{
_currentPage = value;
NotifyChanged("CurrentPage");
}
catch (Exception ex)
{
_logger.Fatal("{0} - {1}:{2}", methodName, MessageResource.ErrorUnExpectedException, ex.Message);
}
}
}