void OVSSample_Loaded(object sender, RoutedEventArgs e) { WizardControl1.GoToStep(0); //DataGridSample.ApplyTemplate(); DataGridSample.Bind(); //this.Dispatcher.BeginInvoke(() => // { // DataGridSample.Bind(); // }); BindAutoComplete(); }
private void ButtonGoToSetp_Click(object sender, RoutedEventArgs e) { DataGridSample.IsShowPager = true; //System.Windows.Browser.HtmlPage.Window.Navigate(new Uri("http://www.baidu.com", UriKind.Absolute),"blank"); //RestClient restServiceClient = new RestClient("http://localhost:11355/Services/AR.svc"); //http://localhost:11355/Services/AR.svc/Query/Invoice/100009 //DataSet GetB2BCustomerMailToInfo(int? customerNumber) //restServiceClient.Query<int>("B2BCustomerMailToInfo/100009", new EventHandler<RestClientEventArgs<int>>(); //restServiceClient.Query<ObservableCollection<MenuItemModel>>("GetInvoice","100009", (target, args) => //{ //}); //HttpWebRequest request = WebRequest.Create(new Uri("http://10.1.41.25:777/Portal/Service/Framework/V50/MenuRestService.svc/")) as HttpWebRequest; //request.Method = "GET"; //request.Headers[HttpRequestHeader.Allow] = "True"; //request.Headers["X-Accept-Language-Override"] = "en-US"; //request.Accept = "application/json"; //request.BeginGetRequestStream((obj) => //{ // HttpWebRequest request = ((WebRequest)obj.AsyncState).EndGetRequestStream(obj) as HttpWebRequest; // request. //}, request); //request.BeginGetResponse((obj) => //{ //HttpWebResponse response = ((WebRequest)obj.AsyncState).EndGetResponse(obj) as HttpWebResponse; //Stream stream = response.GetResponseStream(); //}, request); //Page.Window.AuthManager.GetAuthUserByFunctionName(new List<string> { "CP_LogCategoryConfig_CanEditGlobalRegion", "Menu_ControlPanel_CategoryConfig" }, "0dfb2673-3d38-4d7c-b75f-ba582ff080c8", (result) => //{ // var result2 = result; //}); //var result4 = Page.Window.AuthManager.HasFunction("CP_OrderMgmt_CanDecryptCreditCardNumber", "0dfb2673-3d38-4d7c-b75f-ba582ff080c8"); //var result3 = Page.Window.AuthManager.GetAttributesByRoleName("Admin", "0dfb2673-3d38-4d7c-b75f-ba582ff080c8"); //请注意这里是从0开始的. WizardControl1.GoToStep(2); }
private void ButtonNext_Click(object sender, RoutedEventArgs e) { WizardControl1.Next(); }
private void ButtonPrevious_Click(object sender, RoutedEventArgs e) { WizardControl1.Previous(); }