public void OnUri(Uri uri) { _type = uri.GetQueryParamEnum<OnlineManagerType>("Mode"); _manager = BaseOnlineManager.ManagerByMode(_type); var id = uri.GetQueryParam("Id"); if (id == null) { throw new Exception(ToolsStrings.Common_IdIsMissing); } _entry = _manager.GetById(id); if (_entry == null) { throw new Exception(string.Format(AppStrings.Online_ServerWithIdIsMissing, id)); } }
public void OnUri(Uri uri) { DataContext = new ViewModel(uri.GetQueryParam("Key")); InitializeComponent(); }
public void OnUri(Uri uri) { _filter = uri.GetQueryParam("Filter"); }
public void OnUri(Uri uri) { var filter = uri.GetQueryParam("Filter"); _filter = filter == null ? @"*" : $"*{filter}*"; }
public void OnUri(Uri uri) { _id = uri.GetQueryParam("Id"); }