由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - 我的第一个小C#程序
相关主题
请问可能从command line invoke复杂的Windows Form Application吗?ArrayList question
Which one do u use? ms provider vs. odp.net?有没有Audio programming SDK for .NET
用.net怎么做galleryVS.net 有没有spelling checker?
有人用.NET做PORTAL么?有没有支持vc2008 express的assist?
log fileC# Deploying application 如何加入一个 folder的文件?
急问,如何准备关于Windows Media的Interviewvb.net编程序让另几台电脑直接控制的仪器运行
请教NANT的一个问题新手请教问题
请教VB.net中如何取得Oracle Error code请教 pass by value or reference 的问题
相关话题的讨论汇总
话题: command话题: c#话题: pattern话题: 程序话题: using
进入DotNet版参与讨论
1 (共1页)
E*******s
发帖数: 42
1
今天才知道开了这个版.
我常常往我的homepage放照片给家人看,用这个小程序就一个directory 下面所有jpg
files自动产生一个thumbnail index html file,
很小, 不要见笑. 今天第一次用这个语言.
非常需要改进, 只是满足了今天upload照片的最低需要. 有时间可以添加新功能.
如果有人有更好建议和改进, 请一定开口.
我对C#和.net 的知识都近于零. 刚开始学习. 希望这里是个很好的学习group.
using System;
using System.IO;
using System.Drawing;
namespace edelweiss.album {
class generator
{
public static void Main(string[] args)
{
if(args.Length < 1) {
Console.WriteLine("Usage: album [directory name]");
return;
}
string dirName = arg
a**y
发帖数: 335
2
做个GUI吧, fancy些 呵呵

rawFile);

【在 E*******s 的大作中提到】
: 今天才知道开了这个版.
: 我常常往我的homepage放照片给家人看,用这个小程序就一个directory 下面所有jpg
: files自动产生一个thumbnail index html file,
: 很小, 不要见笑. 今天第一次用这个语言.
: 非常需要改进, 只是满足了今天upload照片的最低需要. 有时间可以添加新功能.
: 如果有人有更好建议和改进, 请一定开口.
: 我对C#和.net 的知识都近于零. 刚开始学习. 希望这里是个很好的学习group.
: using System;
: using System.IO;
: using System.Drawing;

L*******r
发帖数: 1011
3
我来提个建议吧:
内部用command pattern.
这样你的程序就可以支持两个模式:
命令行模式,今后可以批处理。
GUI模式,简单易用。

【在 a**y 的大作中提到】
: 做个GUI吧, fancy些 呵呵
:
: rawFile);

j*****g
发帖数: 223
4
that is a command pattern?

【在 L*******r 的大作中提到】
: 我来提个建议吧:
: 内部用command pattern.
: 这样你的程序就可以支持两个模式:
: 命令行模式,今后可以批处理。
: GUI模式,简单易用。

L*******r
发帖数: 1011
5
hehe,我叫他在内部用command pattern。
这样他的程序今后可以很容易scripting.
and he can change the implementation of the command easily later.

【在 j*****g 的大作中提到】
: that is a command pattern?
L*******r
发帖数: 1011
6
AutoCAD is an example.

【在 L*******r 的大作中提到】
: hehe,我叫他在内部用command pattern。
: 这样他的程序今后可以很容易scripting.
: and he can change the implementation of the command easily later.

E*******s
发帖数: 42
7
本来要做的, 但我现在只装了SDK, 再说, 当时只是为了自己用. 回头买了studio, 在添
上GUI.

【在 a**y 的大作中提到】
: 做个GUI吧, fancy些 呵呵
:
: rawFile);

j*****g
发帖数: 223
8
faint! sorry, I meant
"What is a command pattern?"
L*******r
发帖数: 1011
9
Command pattern has other names such as Action or Transaction. So you know it
now?
the formal to describe its intent is:
Encapsulate a request as an object, thereby letting you parameterize clients
with different requests, queue or log requests, and support undoable
operations.

【在 j*****g 的大作中提到】
: faint! sorry, I meant
: "What is a command pattern?"

1 (共1页)
进入DotNet版参与讨论
相关主题
请教 pass by value or reference 的问题log file
xamarin有没有搞头?急问,如何准备关于Windows Media的Interview
C#版ruby太慢了请教NANT的一个问题
Asp&C# Re: [转载] 最近要用VC#.net编成,请教一下请教VB.net中如何取得Oracle Error code
请问可能从command line invoke复杂的Windows Form Application吗?ArrayList question
Which one do u use? ms provider vs. odp.net?有没有Audio programming SDK for .NET
用.net怎么做galleryVS.net 有没有spelling checker?
有人用.NET做PORTAL么?有没有支持vc2008 express的assist?
相关话题的讨论汇总
话题: command话题: c#话题: pattern话题: 程序话题: using