当前位置: 首页>>代码示例>>C#>>正文


C# NavigationParameters.ToString方法代码示例

本文整理汇总了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());
            

        }
开发者ID:TheNeal,项目名称:ABBProject,代码行数:8,代码来源:CustomerListVM.cs

示例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));
     }
 }
开发者ID:TheNeal,项目名称:ABBProject,代码行数:11,代码来源:CustomerListVM.cs

示例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));
        }
开发者ID:mahdimousavi,项目名称:DarkStorm-Desktop,代码行数:13,代码来源:TCDashboardVM.cs

示例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"]);
        }
开发者ID:dersia,项目名称:Prism,代码行数:16,代码来源:UriParsingHelperFixture.cs

示例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"]);
        }
开发者ID:Almatrodi,项目名称:Prism,代码行数:17,代码来源:UriParsingHelperFixture.cs

示例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));
        }
开发者ID:mahdimousavi,项目名称:DarkStorm-Desktop,代码行数:21,代码来源:TCDashboardVM.cs

示例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));
        }
开发者ID:mahdimousavi,项目名称:DarkStorm-Desktop,代码行数:13,代码来源:NPITimeCard.xaml.cs

示例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;
     }
 }
开发者ID:countincognito,项目名称:Zametek.PrismEx.AvalonDock,代码行数:12,代码来源:ShellViewModel.cs

示例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));
     }
 }
开发者ID:mahdimousavi,项目名称:DarkStorm-Desktop,代码行数:11,代码来源:EmployeesVM.cs


注:本文中的NavigationParameters.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。