摘要: 相对布局 Relative Layout RelativeLayout是一个ViewGroup子视图显示元素相对位置 视图的位置可以指定为相对于同级元素 (例如,向左的或给定元素的下面),或在位置相对于 RelativeLayout 领域 (例如,对齐左下中心)。 一个RelativeLayout是一个非常强大的工具,用来设计的用户界面,因为它能消除嵌套的ViewGroups。如果你发现自己用几套LinearLayout组,你就可以用单一的RelativeLayout取代它们。 新建项目HelloRelativeLayout。 打开res/layout/main.xml文件,如下修改 < 阅读全文
posted @ 2011-03-25 16:14 敏捷学院 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Linear Layout 新建项目HelloLinearLayout。 打开 res/layout/main.xml文件,修改成下面的代码。 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_pare 阅读全文
posted @ 2011-03-25 16:10 敏捷学院 阅读(211) 评论(0) 推荐(0) 编辑
摘要: Hello,View 本演练以在完成Hello World演练基础上进行。可以让你快速的了解Android布局和小部件。 布局 Layout Linear LayoutRelative LayoutTable LayoutGrid ViewTab LayoutList View Widgets & Other Views Date PickerTime PickerForm StuffSpinnerAuto CompleteGalleryGoogle Map ViewWeb View 阅读全文
posted @ 2011-03-25 16:06 敏捷学院 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Android 应用程序组成 4个部分组成 Activity Broadcast Intent Receiver Service Content Provider 在AndroidManifest.xml 中声明和描述需要用到的组件。 Activity 介绍 Activity代表手机的一个屏幕,可以在Activity中添加Button, CheckBox等View。Activity之间可以传递值。 Intent 和 Intent Filters 一个Intent 就是对将要执行的操作的抽象描述。通过Intent可以在多个Activity之间进行跳转。Intent两个最重要的部分是Intent. 阅读全文
posted @ 2011-03-25 16:03 敏捷学院 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 本演练演示,输出Hello,World字符串到Android系统屏幕。 搭建Android开发环境 是本演练的前提条件 依照惯例我们将创建Hello,World。程序。 开发平台的安装 参见:搭建Android开发环境 创建AVD(Android Virtual Device) To create an AVD: 1.In Eclipse, choose Window > Android SDK and AVD Manager. 2.Select Virtual Devices in the left panel. 3.Click New. The Create New AVD dial 阅读全文
posted @ 2011-03-25 16:00 敏捷学院 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 推荐使用 Android SDK 2.2 Eclipse IDE + ADT Android软件开发包 JDK1.6 以上 http://java.sun.com/javase/downloads Eclipse 3.4 以上 http://www.eclipse.org/downloads For Java developer Android SDK 2.0 http://developer.android.com ADT plugin Windows 开发环境搭建 1. 下载jdk安装包或解压缩包 2. 下载Android SDK开发包,解压到任意目录。将SDK的tools路径添加到PA. 阅读全文
posted @ 2011-03-25 15:38 敏捷学院 阅读(290) 评论(0) 推荐(0) 编辑
摘要: Google 于2007年11月 宣布组建 "开放手机联盟",联盟将支持Android开放源代码的移动操作系统。 官方网站: http://www.Android.com 此处略去238个字….. ^_^ 阅读全文
posted @ 2011-03-25 15:33 敏捷学院 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 05,06年开发的餐饮软件,继续提供维护中.......开发语言: vc++ 2003数据库:mysql (精简)界面库:GuiTookkit http://www.codeproject.com/KB/library/guitoolkit.aspx基本功能包括: 餐饮管理系统主界面 用户点菜就餐 顾客结账收银 挂账单位结账收银 挂账用户管理 顾客餐饮预定 顾客预订管理菜谱及商品管理商品管理 套餐管理 商品类别单位设置经营统计报表分类统计报表(挂账) 分类统计报表(已结账) 分类统计报表查询 经营日报表(挂账结账) 经营日报表 经营详细报表 商品销售明细报表查询 收银报表查询 退菜查询 退菜明 阅读全文
posted @ 2011-03-25 15:07 敏捷学院 阅读(533) 评论(3) 推荐(0) 编辑
摘要: 自定义节的配置文件 myCustom.config 如下: <?xml version="1.0" encoding="utf-8"?><configuration> <configSections> <section name="myCustomSection" type="CustomConfig.MyCustomSection, CustomConfig"/> </configSectio... 阅读全文
posted @ 2011-03-24 23:40 敏捷学院 阅读(306) 评论(0) 推荐(0) 编辑
摘要:  创建WpfApplication项目Mui_lang,窗口如"运行"的对话框。 Xaml 文件如下: <Window x:Class="Mui_lang.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/200... 阅读全文
posted @ 2011-03-24 23:32 敏捷学院 阅读(684) 评论(2) 推荐(1) 编辑
摘要: 为实体类Product添加验证消息[Table(Name="Products")]public class Product : IDataErrorInfo{[Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)]public int ProductID { get; set; }[Column]public string Name { get; set; }[Column]public string Description { get; set; }[Column]p 阅读全文
posted @ 2011-03-24 21:10 敏捷学院 阅读(453) 评论(2) 推荐(0) 编辑
摘要: 定义一个订单提供 IoC 组件在DomainModel项目中新建文件夹Services添加以下接口:namespace DomainModel.Services{public interface IOrderSubmitter{void SubmitOrder(Cart cart);}}修改CartController添加IOrderSubmitter接口。private IOrderSubmitter orderSubmitter;public CartController(IProductsRepository productsRepository, IOrderSubmitter ord 阅读全文
posted @ 2011-03-24 21:03 敏捷学院 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 创建一个自定义的Model绑定在WebUI根目录添加 CartModelBinder类public class CartModelBinder : IModelBinder{private const string cartSessionKey = "_cart";public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext){if (bindingContext.Model != null)throw new InvalidOperationE 阅读全文
posted @ 2011-03-24 20:48 敏捷学院 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 样式(Style)以下是我们将要创建的网页布层:Sports Store (Header)主页分类1分类2分类 3产品1产品2产品3设计Master Page略创建 Partial View (视图控件)右键单击 Views/Shared 打开添加 View对话框。ViewName为 ProductSummary选中Create a partial view。编辑如下代码:<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DomainModel.Entities.Pro 阅读全文
posted @ 2011-03-24 19:14 敏捷学院 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 测试驱动开发(TDD)下载工具http://www.nunit.orghttp://code.google.com/p/moq为Tests项目添加如下引用:nunit.FrameworkSystem.WebSystem.Web.AbstractionsSystem.Web.RoutingSystem.Web.MvcMoq.DllDomainModelWebUI为Tests创建类[TestFixture]public class ProductsControllerTests{[Test]public void List_Presents_Correct_Page_Of_Products(){I 阅读全文
posted @ 2011-03-24 18:46 敏捷学院 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 连接数据库创建SportStore数据库。创建表 Products添加一些演示数据:设置Linq to SQL注意:需要引用 System.Data.Linq。[Table(Name="Products")]public class Product{[Column(IsPrimaryKey = true, IsDbGenerated = true, AutoSync = AutoSync.OnInsert)]public int ProductID { get; set; }[Column]public string Name { get; set; }[Column]pu 阅读全文
posted @ 2011-03-24 18:42 敏捷学院 阅读(719) 评论(0) 推荐(0) 编辑
摘要: Download!!!介绍使用一下技术创建简单的购物网演练。 ASP.NET MVC Framework Castle-Windsor-2.0 NUnit 创建项目创建空的解决方案 SportStore ,向解决方案添加: 项目名称项目类型DomainModelC# class libraryWebUIASP.NET MVC2 Web Application不包含 Unit TestTestsC# class library单元测试 删除WebUI自动生成的文件: 目录文件Controllers*Views/Account*Views/Home* (保留index)Views/SharedEr 阅读全文
posted @ 2011-03-24 18:34 敏捷学院 阅读(964) 评论(0) 推荐(0) 编辑
摘要: 介绍使用WatiN模拟网页操作,可以实现网站的自动登录发帖等等....自个儿联想吧!背景知识 Watin是一个面向.net的Web自动化测试开源项目。想要了解更多的知道参考官方网站 http://watin.org/代码 1 //自动登录QQ微博发贴 2 WatiN.Core.IE ie = new WatiN.Core.IE("http://www.qq.com"); 3 ie.ShowWindow(WatiN.Core.Native.Windows.NativeMethods.WindowShowStyle.Maximize); 4 //单击登录div 5 ie.Div 阅读全文
posted @ 2011-03-24 13:08 敏捷学院 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 和Microsoft Expression Blend 的UI差不多主界面菜单属性卡List&Dialog界面的伸缩另一种界面风格内置pythonDemo下载地址:http://files.cnblogs.com/xingquan/WPF_Demo.zip 阅读全文
posted @ 2011-03-24 08:21 敏捷学院 阅读(927) 评论(2) 推荐(1) 编辑
摘要: 用dotnet写了一个小工具,多文件处理工具。Download Demo! Download!!! Source Code可以清除网页的木马!可以多文件编码转换 阅读全文
posted @ 2011-03-23 19:03 敏捷学院 阅读(514) 评论(0) 推荐(0) 编辑