摘要: public void DownLoadConfigurationFile(string ID) { if (string.IsNullOrEmpty(ID)) { string configFilePath = ConfigurationManager.AppSettings["Config"]; string MachineInfoNmae = "MachineInfo"; string machineIDAttrName = "MachineId"; XDocument xmlDoc = XDocument.Load(confi 阅读全文
posted @ 2012-01-07 18:59 Damon-Cui 阅读(196) 评论(0) 推荐(0) 编辑
摘要: View Code 1 <UserControl x:Class="Coinstar.Coin.Kiosk.Administration.Ui.ServiceMode.Views.IOBoardDeviceView" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 xmlns:mc="http://schemas.. 阅读全文
posted @ 2011-12-23 16:56 Damon-Cui 阅读(184) 评论(0) 推荐(0) 编辑
摘要: view 代码如下:View Code 1 <Grid> 2 <Grid.RowDefinitions> 3 <RowDefinition Height="50"/> 4 <RowDefinition Height="*"/> 5 </Grid.RowDefinitions> 6 <StackPanel Orientation="Horizontal"> 7 <Button x:Name="BtnPrevious" Width=" 阅读全文
posted @ 2011-12-17 15:45 Damon-Cui 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: button 通过Behavior操作textbox内的textView 代码如下:View Code 1 <UserControl x:Class="TestApp.Views.TestView" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 xmlns:mc="http://schemas.openxmlf.. 阅读全文
posted @ 2011-12-17 11:36 Damon-Cui 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 代码如下:Code Behind 1 void MainWindow_Loaded(object sender, RoutedEventArgs e) 2 { 3 string imgURL = "http://www.***.com/***.jpg"; 4 if (!String.IsNullOrEmpty(imgURL)) 5 { 6 Application.Current.Dispatcher.BeginInvoke(new Action(() => 7 { 8 //return byte[]... 阅读全文
posted @ 2011-12-07 17:57 Damon-Cui 阅读(849) 评论(0) 推荐(0) 编辑