本文整理汇总了C#中NavigationParameters.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# NavigationParameters.ToString方法的具体用法?C# NavigationParameters.ToString怎么用?C# NavigationParameters.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NavigationParameters
的用法示例。
在下文中一共展示了NavigationParameters.ToString方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddCustomerHandler
public void AddCustomerHandler()
{
var q = new NavigationParameters();
q.Add("id",-1);
regionManager.RequestNavigate(RegionNames.MainRegion, "CustomerAddUpdateView" + q.ToString());
}
示例2: Edit
public void Edit()
{
if (SelectedCustomer != null )
{
var q = new NavigationParameters();
q.Add("id", SelectedCustomer.CustomerID.ToString());
regionManager.RequestNavigate(RegionNames.MainRegion, "CustomerAddUpdateView" + q.ToString());
//regionManager.RegisterViewWithRegion(RegionNames.MainRegion, typeof(CustomerAddUpdateView));
}
}
示例3: Address
private void Address()
{
var navigationParameters = new NavigationParameters();
var data = employeeService.GetAll();
navigationParameters.Add("DataToDisplay", data.GetHashCode().ToString());
AppParameters.Save(data.GetHashCode(), data);
navigationParameters.Add("ReportPath", @"Reports\EmployeeAddressBook.rdlc");
//navigationParameters.Add("Parameters",);
navigationParameters.Add("ReportDataSourceName", "EmployeeAddressBook");
this.regionManager.RequestNavigate(RegionNames.WorkingArea,
new Uri("ReportWindowView" + navigationParameters.ToString(), UriKind.Relative));
}
示例4: ParametersParsedFromNavigationParametersInAbsoluteUri
public void ParametersParsedFromNavigationParametersInAbsoluteUri()
{
var navParameters = new NavigationParameters();
navParameters.Add("id", 3);
navParameters.Add("name", "brian");
var parameters = UriParsingHelper.GetSegmentParameters("http://www.brianlagunas.com/MainPage" + navParameters.ToString());
Assert.NotEmpty(parameters);
Assert.Contains("id", parameters.Keys);
Assert.Contains("name", parameters.Keys);
Assert.Equal("3", parameters["id"]);
Assert.Equal("brian", parameters["name"]);
}
示例5: ParametersParsedFromNavigationParametersInAbsoluteUri
public void ParametersParsedFromNavigationParametersInAbsoluteUri()
{
var navParameters = new NavigationParameters();
navParameters.Add("id", 3);
navParameters.Add("name", "brian");
var uri = new Uri("http://www.google.com/MainPage" + navParameters.ToString(), UriKind.Absolute);
var parameters = UriParsingHelper.ParseQuery(uri);
Assert.NotEmpty(parameters);
Assert.Contains("id", parameters.Keys);
Assert.Contains("name", parameters.Keys);
Assert.Equal("3", parameters["id"]);
Assert.Equal("brian", parameters["name"]);
}
示例6: BHE
private void BHE()
{
var navigationParameters = new NavigationParameters();
Mapper.CreateMap<WorkHour, BasicWorkHourVM>();
Mapper.CreateMap<Employee, BasicEmployeeVM>();
Mapper.CreateMap<WorkCode, BasicWorkCodeVM>();
var data = workHourService.GetReport().Where(a => a.WorkCode.Billable == true).ToList();
var bworkhours = new List<BasicWorkHourVM>();
foreach (WorkHour wh in data)
{
bworkhours.Add(Mapper.Map<WorkHour, BasicWorkHourVM>(wh));
}
navigationParameters.Add("DataToDisplay", bworkhours.GetHashCode().ToString());
AppParameters.Save(bworkhours.GetHashCode(), bworkhours);
navigationParameters.Add("ReportPath", @"Reports\HoursByEmployee.rdlc");
navigationParameters.Add("ReportDataSourceName", "HoursByEmployee");
this.regionManager.RequestNavigate(RegionNames.WorkingArea,
new Uri("ReportWindowView" + navigationParameters.ToString(), UriKind.Relative));
}
示例7: GoToEmpPhoneList
private void GoToEmpPhoneList(object sender, RoutedEventArgs e)
{
var navigationParameters = new NavigationParameters();
var data = employeeService.GetAll();
navigationParameters.Add("DataToDisplay", data.GetHashCode().ToString());
AppParameters.Save(data.GetHashCode(), data);
navigationParameters.Add("ReportPath", @"Reports\EmployeePhoneList.rdlc");
//navigationParameters.Add("Parameters",);
navigationParameters.Add("ReportDataSourceName", "EmployeePhoneList");
this.regionManager.RequestNavigate(RegionNames.WorkingArea,
new Uri("ReportWindowView" + navigationParameters.ToString(), UriKind.Relative));
}
示例8: AddDocument
private void AddDocument()
{
string docName = NewDocumentName;
if (!string.IsNullOrEmpty(docName))
{
var navigationParameters = new NavigationParameters();
navigationParameters.Add("Name", docName);
m_RegionManager.RequestNavigate("MainRegion",
new Uri("DocumentView" + navigationParameters.ToString(), UriKind.Relative));
NewDocumentName = string.Empty;
}
}
示例9: Edit
private void Edit(bool? obj)
{
BasicEmployeeVM current = EmployeesCV.CurrentItem as BasicEmployeeVM;
if (current != null)
{
var navigationParameters = new NavigationParameters();
navigationParameters.Add("Id", current.Id);
RegionManager.RequestNavigate(RegionNames.WorkingArea,
new Uri("EmployeeView" + navigationParameters.ToString(), UriKind.Relative));
}
}