QQ聊天

随笔分类 -  DotNet

Winform,WPF
摘要:Fn GetSpecialFolder argEnumName = (DotNetClass "System.Environment").GetFolderPath (Execute ("(DotnetClass \"Environment+SpecialFolder\")." + argEnumName)) Fn GetSpecialFolderArgs = GetPropNames (... 阅读全文
posted @ 2018-04-17 10:47 SITT 阅读(667) 评论(0) 推荐(0)
摘要:做个记录,写个示例using System;class Rubbish{ public void Say() { Console.Write("Hello"); }}static class RubbishExtensions{ public static... 阅读全文
posted @ 2014-05-07 12:36 SITT 阅读(769) 评论(0) 推荐(0)
摘要:自己写个随机数生成器有些好处,比如可以保证跨了语言都可以获得同样结果。于是查了一下资料,做了一个简单一些的实现,此处用的float,正常情况一般应该用double。using System;public class RandomGenerator{ int seed; int num1; int num2; public RandomGenerator() : this(DateTime.Now.Millisecond) { } public RandomGenerator(int argSeed) : this(argSeed,123456,789) { ... 阅读全文
posted @ 2014-01-01 22:24 SITT 阅读(338) 评论(0) 推荐(0)
摘要:出于强迫症,我查了一下文档弄明白了WPF脱离xaml应该怎么搞。当然其实本质是为了MaxScript里使用做准备。using System;using System.Windows;using System.Windows.Controls;using System.Windows.Input;namespace SimpleWPF{ public static class Program { [STAThread] public static void Main() { Window theWindow = new ... 阅读全文
posted @ 2013-12-26 08:02 SITT 阅读(642) 评论(0) 推荐(0)

QQ聊天