06 2018 档案

摘要:DECLARE @test intSET @test=nullselect isnull(@test,0) 阅读全文
posted @ 2018-06-28 20:33 microsoftzhcn 阅读(3282) 评论(0) 推荐(0)
摘要:一、定义变量--简单赋值 declare @a intset @a=5 print @a --使用select语句赋值 declare @user1 nvarchar(50) select @user1='张三'print @user1 declare @user2 nvarchar(50) sel 阅读全文
posted @ 2018-06-26 10:19 microsoftzhcn 阅读(4257) 评论(0) 推荐(1)
摘要:存储过程的种类: 1.系统存储过程。 以sp_开头 2.扩展存储过程。 以xp_开头 3.用户定义存储过程。 SQL 循环 阅读全文
posted @ 2018-06-26 09:36 microsoftzhcn 阅读(4960) 评论(0) 推荐(0)
摘要:this.but1.AddHandler(Button.ClickEvent,new RoutedEventHandler(OkButton_Click)); 阅读全文
posted @ 2018-06-24 15:41 microsoftzhcn 阅读(2034) 评论(0) 推荐(0)
摘要:MainWindow mwin = new MainWindow(); Application.Current.MainWindow = mwin; this.Close(); mwin.Show(); 阅读全文
posted @ 2018-06-24 15:33 microsoftzhcn 阅读(1564) 评论(0) 推荐(0)
摘要:一、考虑到大部分的splashscreen其实都只是一个图片,所以最简单的做法是,先导入一张图片,然后设置它的生成操作为“splash screen” 二、通过程序设置SplashScreen 阅读全文
posted @ 2018-06-24 15:32 microsoftzhcn 阅读(1239) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-06-24 15:25 microsoftzhcn 阅读(978) 评论(0) 推荐(0)
摘要:方式一、通过当前控件名获取父级窗体 Window targetWindow = Window.GetWindow(button); 方式二、通过当前控件获取父级窗体 Window parentWindow = Window.GetWindow(this); 阅读全文
posted @ 2018-06-24 14:50 microsoftzhcn 阅读(8101) 评论(2) 推荐(3)
摘要:一、IntPtr、HandleC#中的IntPtr类型称为“平台特定的整数类型”,它们用于本机资源,如窗口句柄。1、WPF窗口句柄IntPtr wnip = new System.Windows.Interop.WindowInteropHelper(this).Handle;2、WPF控件句柄Sy 阅读全文
posted @ 2018-06-23 16:14 microsoftzhcn 阅读(1276) 评论(0) 推荐(1)