摘要: Series 作为cartControl的基本单位来现实图表数据所以每一个Series代表一种需要显示的类型。首先实例化一个SeriesSeries _series = new Series("处理次数", ViewType.Bar);_series.ArgumentScaleType = Scal... 阅读全文
posted @ 2015-02-12 18:16 InDulGed 阅读(2383) 评论(1) 推荐(1) 编辑
摘要: SQL类型C#类型bitbooltinyintbytesmallintshortintintbigintlongrealfloatfloatdoublemoneydecimaldatetimeDateTimecharstringvarcharstringncharstringnvarcharstri... 阅读全文
posted @ 2014-11-18 22:14 InDulGed 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 可能的原因是计算机加入域后计算机名有所更变步骤一: 打开计算机属性,找到计算机名复制到剪贴板步骤二: 打开Sql Server配置工具(SQL Server Configuration Manager) 找到SQL Native Client步骤三:打开该节点下的别名步骤四:新建别名 粘贴剪贴板内容作为别名 端口配置为当前数据库访问端口,默认为:1433 服务器名称填写: .或者localhost都行 步骤五:最后别忘了开启Named Pipes(在Sql Server配置工具的 SQL Server网络配置下将其状态改为启用) 阅读全文
posted @ 2014-04-02 21:59 InDulGed 阅读(3801) 评论(0) 推荐(0) 编辑
摘要: 网上搜索到如下类似文章,经调试可行后改成自己的代码再发上来记录一下独立进程无论程序是否正在运行,我们都要能通知到客户,我们需要一个独立进程的后台服务。我们需要一个独立进程的后台服务。在androidmanifest.xml中注册service时,有一个android:process属性,如果这个属性以"."开头,则为此服务开启一个全局的独立进程,如果以":"开头则为此服务开启一个为此应用私有的独立进程。举个具体的例子吧,我们新建了一个application,创建了主进程com.example.exerciseproc,那么: 通知用户和点击查看packa 阅读全文
posted @ 2014-03-25 16:56 InDulGed 阅读(470) 评论(0) 推荐(0) 编辑
摘要: 一、基础数据类型IOS代码NSString *tempA = @"123";NSString *tempB = @"456"; 1,字符串拼接NSString *newString = [NSString stringWithFormat:@"%@%@",tempA,tempB]; 2,字符转intint intString = [newString intValue];3,int转字符NSString *stringInt = [NSString stringWithFormat:@"%d",intString] 阅读全文
posted @ 2014-03-21 10:14 InDulGed 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 转自:http://my.oschina.net/u/874588/blog/101183 (有个别处修改)一、storyboard页面切换假设view controller1下有一个button1,view controller2下有一个button2,我们要实现storyboard在这两个view controller之间切换。1、 Controller1切换Controller2在storyboard界面下,点住button1,右键拖动至controller2,松手,选择Modal2、Controller2切回Contrller1这里要注意不能使用刚刚的方式了,因为刚刚的方式是一个界面“ 阅读全文
posted @ 2014-03-21 09:45 InDulGed 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cocoachina.com/applenews/devnews/2014/0228/7897.html为节省空间请直接点击原文链接 阅读全文
posted @ 2014-03-17 15:03 InDulGed 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 首先准备一个EditText,添加background="@drawable/bg_edittext" 然后在项目中找到drawable或者类似文件夹新建New个Android XML FileNext-找到shape填写名字bg_edittext_normal 同样的方法建立bg_edittext_focused 然后再建立个选择器selector,步骤还是上面的步骤,最后选择类型的时候找到selector OK ,尝试结果:成功..其它属性设置,设置文本框不可编辑,在文本框中加入an... 阅读全文
posted @ 2014-03-14 10:39 InDulGed 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 折腾了一天,百度了各种方法都不奏效.怎么办呢新建了个测试项目,在里边儿丢进去如下代码这是窗体1package com.example.activityonresult;import android.os.Bundle;import android.app.Activity;import android.content.Intent;import android.util.Log;import android.view.Menu;import android.view.View;import android.view.View.OnClickListener;import android.wid 阅读全文
posted @ 2014-03-13 18:22 InDulGed 阅读(2190) 评论(0) 推荐(0) 编辑
摘要: 今天做了一个TCP和UDP通信的测试,其中使用到两个线程,一个用来监听tcp,另一个用来监听UDP.首先在线程中使用死循环来时刻监听数据,Socket,ServerSocket,DatagramSocket这些就不说了,网上很多例子在收到消息的时候我需要把消息推送到界面上,由于在线程中操作UI控件,百度了好几种方法,照抄来都用了一遍,其中很方便的View.PostUI控件基本都有这个功能,比如我在得到数据后要抛给界面,界面有个TextView叫TxtEdit于是TxtEdit.post(new Runnable(){public void run(){ ... 阅读全文
posted @ 2014-03-12 17:26 InDulGed 阅读(2556) 评论(0) 推荐(0) 编辑