自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (7)
  • 收藏
  • 关注

原创 WPF_无效ALT+F4

/// /// Alt + F4 无效化处理 /// /// Alt + F4 要无效的窗口 /// Alt + F4 无效化处理 /// 返回Action是方便调用处需要同时进行很多处理时+=,-=用 internal static Action DisableAltF4(Window windo

2015-08-25 13:39:25 1106

原创 WPF_常用字典扩展方法

public static class DictionaryExtensions { public static void ForEach(this IDictionary dictionary, Action toAction) { foreach (var pair in dictionary) {

2015-08-14 11:28:49 491

原创 WPF_常用集合扩展方法

public static class EnumerableExtensions { public static void ForEach(this IEnumerable enumerable, Action toAction) { foreach (T each in enumerable) {

2015-08-13 18:31:48 676

转载 WPF_LinearGradientBrush

2015-08-12 18:14:52 1020 1

原创 WPF_Path学习

基础 <Path Data="M 0,0 0,20 5,20 5,100 0,100 0,120 100,120 100,100 95,100 95,20 100,20 100,0 Z" Fill="Red" Stroke="Black" />http://blog.csdn.net/johnsuna/art

2015-08-12 17:58:41 462

原创 WPF_双击改变窗口状态

public Window5() { InitializeComponent(); this.topborder.MouseDown += topborder_MouseDown; } private void topborder_MouseDown(object sender, System.Wi

2015-08-12 17:39:18 417

原创 WPF_圆角图片

<Border Name="bdGoodDetail" BorderBrush="#E2E2E2" BorderThickness="3" CornerRadius="20">

2015-08-12 17:18:55 4229

原创 判断 DEV-〉XtraGrid-〉GridView 中某个单元格是否可以被编辑

public bool IsEditableCell(GridColumn col, int rowHandle) { if (col == null) { return false; } if (!this.view.

2012-04-10 16:46:41 2303 2

转载 unbound checkbox column

http://www.devexpress.com/Support/Center/kb/p/A371.aspx

2012-04-06 00:05:27 356

原创 (struts2验证码)MyUtils.java

package gssw.oa.util.ww; import java.util.Random; public abstract class MyUtils {  public static String[] Hobbies={"游戏","看书","爬山","逛街"}; //获得验证码信息 public static  String getRandStr

2011-06-20 13:28:00 258

原创 (struts2验证码)UtilAction.java

package gssw.oa.util.ww.action; import java.awt.Color;import java.awt.Font;import java.awt.Graphics2D;import java.awt.image.BufferedImage;import java.io.ByteArrayInputStream;import jav

2011-06-20 13:24:00 583

原创 (struts2验证码)struts-util.xml

     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"    "http://struts.apache.org/dtds/struts-2.0.dtd">  image/jpeg  inputStream  

2011-06-20 13:19:00 309

原创 (struts2验证码)login.jsp

String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>       ">        

2011-06-20 13:13:00 652

原创 (struts1)ApplicationResources.properties

#Generated by ResourceBundle Editor (http://eclipse-rbe.sourceforge.net)# Resources for parameter accp.struts.lxl.action.ApplicationResources# Project exercise-one #user.login.loginName =

2011-06-20 13:06:00 539

原创 (struts1)UsersAction.java

package accp.struts.lxl.action; import java.io.FileOutputStream;import java.io.OutputStream;import java.util.List; import javax.servlet.http.HttpServletRequest;import javax.servlet.htt

2011-06-20 13:05:00 245

原创 (struts1)struts-config.xml

                                                                    

2011-06-20 13:04:00 300

原创 (struts1)login.jsp

String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>       ">     用户登录

2011-06-20 13:04:00 326

原创 (struts1)validation.xml

    Licensed to the Apache Software Foundation (ASF) under one or more    contributor license agreements.  See the NOTICE file distributed with    this work for additional information regard

2011-06-20 13:03:00 451

原创 struts1.x +Spring2.0

struts1.x  +Spring2.0 1.web容器监听IOC web.xml中配置:        contextConfigLocation    classpath:applicationContext-*.xml          org.springframework.web.context.ContextLoaderListen

2011-06-20 12:59:00 262

原创 (ssh2整合)log4j.xml

                                                                                                       

2011-06-20 12:53:00 537

原创 (ssh2整合)web.xml

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> index.jsp  

2011-06-20 12:50:00 384

原创 环绕通知

package ssh.lxl.aop; import org.apache.log4j.LogManager;import org.apache.log4j.Logger;import org.aspectj.lang.ProceedingJoinPoint; import ssh.lxl.util.MyUtil; public class LogBean 

2011-06-20 12:44:00 264

原创 前后置通知

package ssh.lxl.aop; import org.apache.log4j.LogManager;import org.apache.log4j.Logger;import ssh.lxl.util.MyUtil; public class RunningTimeBean { Logger log=LogManager.getLogger(LogB

2011-06-20 12:44:00 189

原创 动态代理工厂

package ssh.lxl.aop; import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;import org.apache.log4j.LogManager;import org.apache.log4j.

2011-06-20 12:43:00 295

原创 (spring2.x整合)applicationContext-dao.xml

xmlns="http://www.springframework.org/schema/beans"  xmlns:aop="http://www.springframework.org/schema/aop" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:tx="http://www.spri

2011-06-20 12:36:00 307

WPF共享控件

原创: 本示例以一个共享控件为例,对样式资源加以说明,方便对样式有个更深层次的了解,主要有以下特点: 1.使用简单MVVM模式,使用命令代替UI事件。 2.使用到各种样式。 3.将控件共享化。 4.使用命令触发器。 public MainWindow() { InitializeComponent(); Action<DataGrid, DelegateCommand<IList<object>>, string> bindData = (xamDataGrid, selectedRowsCommand, rowsPropertyName) => { BindingOperations.SetBinding(xamDataGrid, DataGrid.ItemsSourceProperty, new Binding { Source = ViewModel, Path = new PropertyPath(rowsPropertyName), Mode = BindingMode.OneWay }); // TODO : 全选命令未绑定到vm var contextMenu = (MenuItem)xamDataGrid.ContextMenu.Items[0]; contextMenu.Command = ApplicationCommands.SelectAll; contextMenu.Header = "全选"; var commandTrigger = (EventCommandTrigger)CommandSource.GetTriggers(xamDataGrid); BindingOperations.SetBinding(commandTrigger, EventCommandTrigger.CommandParameterProperty, new Binding { Source = xamDataGrid.SelectedItems, }); commandTrigger.Command = selectedRowsCommand; commandTrigger.RoutedEvent = DataGrid.SelectionChangedEvent; commandTrigger.UpdateCommandParameter = true; }; const string SHARED_DATAGRID = "xgShared"; var viewModel = (MainViewModel)ViewModel; var xdgSystem = (DataGrid)Resources[SHARED_DATAGRID]; bindData(xdgSystem, viewModel.SelectedSystemRowsCommand, "SystemRows"); placeSystem.Content = xdgSystem; var xdgImport = (DataGrid)Resources[SHARED_DATAGRID]; bindData(xdgImport, viewModel.SelectedImportRowsCommand, "ImportRows"); placeImport.Content = xdgImport; }

2016-02-02

Dev WindowsForms_主要控件

Dev WindowsForms_主要控件

2012-04-05

classes12.jar

classes12.jarclasses12.jar

2011-07-16

mysqljdbc jar包

mysql-connector-java-5.1.15-bin.jar

2011-07-16

sql2005jdbc

sql2005jdbcsql2005jdbc

2011-07-16

ssh2整合jar包(32个).rar

ssh2整合jar包(精简32个).rar

2011-06-20

Spring2.5-中文参考手册.chm

Spring2.5-中文参考手册.chm

2011-06-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除