avatar
我的第一个小C#程序# DotNet - 窗口里的风景
E*s
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
avatar
a*y
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;

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

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

avatar
j*g
4
that is a command pattern?

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

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

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

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

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

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

avatar
j*g
8
faint! sorry, I meant
"What is a command pattern?"
avatar
L*r
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?"

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。