Hello WordPress! 剛從 Live Spaces 轉入

原本的 Live Spaces 空間 dllee 的 ID 已被申請, 現在轉到 WordPress 同樣, dllee 也早就被用掉了, 而 dlleetw 竟然是保留不給用, 於是用 dlleeblog 做為名稱。

不確定是否會開始由此寫 Blog, 原本的 dllee天空部落 發文頻率也低了。

看到 WP 的編輯有自動存草稿的功能, 真的不錯, 再找時間慢慢玩好了…

張貼在 未分類 | 1 則迴響

功能模仿?技術整合?

以目前 Google 首頁也提供 Blogger 的連結來看,很可能在 Google Talk 的下一版或未來就會整合 Blogger,就如同 MSN 整合 MSN Space 一樣,以 MSN Space 與其他 Blog 相比,也許在介面上好用許多,但是,網站的速度實在是太差了,有時心血來潮想寫個網誌,卻發現 MSN Space 連不太上,好不容易連上了,又是超慢的感覺,雖然說可以用 EMail 的方式,但如果要用 EMail 那還用 blog 作什麼
我的 Blog http://dllee.blogspot.com/ 在今年年初申請了,但是因為年初時放圖片還要透過其他的方式很麻煩,就沒再用了,而在 Google 首頁也提供 Blogger 的連結後,再回去試了一次介面,發現已經可以直接上傳圖片了,改天有空,可以好好玩一下
張貼在 胡思亂想 | 2 則迴響

確定與不確定

最近又看了許多房子,每個都各有優缺,很難選擇,真的是「有一好、就沒兩好」
今天以售屋小姐認為不可能的價格預訂了椰林居–峇里島,有成交也好,沒成交也好,看了一年多的房子,總算是踏出了第一步。有確定再來貼照片吧…
 

桃園縣教育開發之相關資料

張貼在 胡思亂想 | 發表留言

找房子… 看房子…

從去年夏天到今年夏天,從二手屋到預售屋,從透天別墅到大樓華夏,看了真的不少的房子…
最早以二手屋為主,北區房屋網站, 力霸房屋網站 是最常去的網頁,再開始看預售屋、成屋後,智邦生活館@不動產, 及經濟部商業司公司登記資料查詢 變成最常查建商資料的網站了。不動產e族有許多買屋賣屋的相關資訊,其房地產新聞也提供不錯的市場訊息。另外,有部分縣市政府的網站有提供都市計畫查詢系統,像是桃園縣政府都市計畫書圖查詢系統就作得不錯。
是否您也想要買個房子呢? 說真的,目前一大堆推案,真不知道是否有那麼多人口… 不是人口正在快速負成長中嗎? 為什麼還能國小國中一直蓋? 為什麼還能大樓別墅一直蓋? 想不懂… 想不懂…
張貼在 胡思亂想 | 1 則迴響

使用列舉的方式取得列表

與上週一樣的範例,不同之處只是使用了列舉的方式,而不是笨笨的一個一個列出。總算是試用了 foreach

/*
 * Created by 記事本 [:P]
 * User: Lee, Dong-Liang <dllee@edirect168.com>
 * Date: 2005/06/25
 */
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace ItemOfComboBox
{
 public class MainForm : System.Windows.Forms.Form
 {
  private System.Windows.Forms.ComboBox cBoxHatchStyle;
  private System.Windows.Forms.Button SelectColor;
  private System.Windows.Forms.Button SelectBKColor;

  public MainForm()
  {
   // cBoxHatchStyle
   this.cBoxHatchStyle = new System.Windows.Forms.ComboBox();
   this.cBoxHatchStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
   this.cBoxHatchStyle.Location = new System.Drawing.Point(20, 10);
   this.cBoxHatchStyle.Name = "cBoxHatchStyle";
   this.cBoxHatchStyle.Size = new System.Drawing.Size(200, 20);
   this.cBoxHatchStyle.TabIndex = 16;
   this.cBoxHatchStyle.SelectedIndexChanged += new System.EventHandler(this.CBoxHatchStyleSelectedIndexChanged);

   // SelectColor
   this.SelectColor = new System.Windows.Forms.Button();
   this.SelectColor.BackColor = System.Drawing.Color.Blue;
   this.SelectColor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
   this.SelectColor.Location = new System.Drawing.Point(250, 10);
   this.SelectColor.Name = "SelectColor";
   this.SelectColor.TabIndex = 8;
   this.SelectColor.Text = "Color1";
   this.SelectColor.Click += new System.EventHandler(this.SelectColorClick);

   // SelectBKColor
   this.SelectBKColor = new System.Windows.Forms.Button();
   this.SelectBKColor.BackColor = System.Drawing.Color.Yellow;
   this.SelectBKColor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
   this.SelectBKColor.Location = new System.Drawing.Point(350, 10);
   this.SelectBKColor.Name = "SelectBKColor";
   this.SelectBKColor.TabIndex = 15;
   this.SelectBKColor.Text = "Color2";
   this.SelectBKColor.Click += new System.EventHandler(this.SelectBKColorClick);

   // MainForm
   this.ClientSize = new System.Drawing.Size(600, 400);
   this.Controls.Add(this.cBoxHatchStyle);
   this.Controls.Add(this.SelectColor);
   this.Controls.Add(this.SelectBKColor);
   this.Name = "MainForm";
   this.Text = "ItemOfComboBox : HatchSytle Example by http://dllee.ktop.com.tw";
   this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form_Paint);
   this.ActiveControl = this.cBoxHatchStyle;

   // C# 的 comboBox 可以直接加入物件,它似乎會自己取 .ToString() 的方法
   // 得到字串作列表,而加入的物件之後可以直接取出使用。
   // <2005-06-25> 使用列舉的方式取得列表。
   Array hsList = Enum.GetValues( typeof( HatchStyle ) );
    foreach ( HatchStyle hs in hsList )
     this.cBoxHatchStyle.Items.Add(hs);
   this.cBoxHatchStyle.SelectedIndex=1;
  }
  
  [STAThread]
  public static void Main(string[] args)
  {
   Application.Run(new MainForm());
  }

  void SelectColorClick(object sender, System.EventArgs e)
  {
   ColorDialog clrDlg = new ColorDialog();
   clrDlg.Color = this.SelectColor.BackColor;
   if (clrDlg.ShowDialog() == DialogResult.OK)
   {
    this.SelectColor.BackColor = clrDlg.Color;
     this.Invalidate();
   }
   clrDlg.Dispose();
  }
  
  void SelectBKColorClick(object sender, System.EventArgs e)
  {
   ColorDialog clrDlg = new ColorDialog();
   clrDlg.Color = this.SelectBKColor.BackColor;
   if (clrDlg.ShowDialog() == DialogResult.OK)
   {
    this.SelectBKColor.BackColor = clrDlg.Color;
     this.Invalidate();
   }
   clrDlg.Dispose();
  }

  void Form_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
  {
   Graphics g = e.Graphics;
   // 物件轉換成其他類別
   HatchStyle selectedHatchStyle = (HatchStyle)Convert.ChangeType(
     this.cBoxHatchStyle.SelectedItem,typeof(HatchStyle));
   // Create a hatch brush with selected hatch style and colors
   HatchBrush brush = new HatchBrush(selectedHatchStyle,
     this.SelectColor.BackColor, this.SelectBKColor.BackColor);
   // Fill rectangle
   g.FillRectangle(brush, this.ClientRectangle);
   // Dispose of objects
   brush.Dispose();
  }

  void CBoxHatchStyleSelectedIndexChanged(object sender, System.EventArgs e)
  {
   this.Invalidate();
  }
 }
}

張貼在 C# | 3 則迴響

Item Of ComboBox

今天終於去下載了 .NET SDK,試試 csc /out:sample.exe sample.cs 還真是簡單  以下是最近在學 GDI+ 時,修改書本的範例,所得到的心得,原本以為,.NET ComboBox 為什麼 List Item 只能放 object 沒有 string,原來她把這兩個東西給合併了。
PS1. MSN Spaces 不太適合貼程式碼… 金害…
PS2. 我貼的圖內含程式原始碼及 csc 輸出的可執行檔喔,下載改名為 .zip 可解出。
/*
 * Created by 記事本 [:P]
 * User: Lee, Dong-Liang <dllee@edirect168.com>
 * Date: 2005/06/18
 */
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace ItemOfComboBox
{
 public class MainForm : System.Windows.Forms.Form
 {
  private System.Windows.Forms.ComboBox cBoxHatchStyle;
  private System.Windows.Forms.Button SelectColor;
  private System.Windows.Forms.Button SelectBKColor;

  public MainForm()
  {
   // cBoxHatchStyle
   this.cBoxHatchStyle = new System.Windows.Forms.ComboBox();
   this.cBoxHatchStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
   this.cBoxHatchStyle.Location = new System.Drawing.Point(20, 10);
   this.cBoxHatchStyle.Name = "cBoxHatchStyle";
   this.cBoxHatchStyle.Size = new System.Drawing.Size(200, 20);
   this.cBoxHatchStyle.TabIndex = 16;
   this.cBoxHatchStyle.SelectedIndexChanged += new System.EventHandler(this.CBoxHatchStyleSelectedIndexChanged);

   // SelectColor
   this.SelectColor = new System.Windows.Forms.Button();
   this.SelectColor.BackColor = System.Drawing.Color.Blue;
   this.SelectColor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
   this.SelectColor.Location = new System.Drawing.Point(250, 10);
   this.SelectColor.Name = "SelectColor";
   this.SelectColor.TabIndex = 8;
   this.SelectColor.Text = "Color1";
   this.SelectColor.Click += new System.EventHandler(this.SelectColorClick);

   // SelectBKColor
   this.SelectBKColor = new System.Windows.Forms.Button();
   this.SelectBKColor.BackColor = System.Drawing.Color.Yellow;
   this.SelectBKColor.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
   this.SelectBKColor.Location = new System.Drawing.Point(350, 10);
   this.SelectBKColor.Name = "SelectBKColor";
   this.SelectBKColor.TabIndex = 15;
   this.SelectBKColor.Text = "Color2";
   this.SelectBKColor.Click += new System.EventHandler(this.SelectBKColorClick);

   // MainForm
   this.ClientSize = new System.Drawing.Size(600, 400);
   this.Controls.Add(this.cBoxHatchStyle);
   this.Controls.Add(this.SelectColor);
   this.Controls.Add(this.SelectBKColor);
   this.Name = "MainForm";
   this.Text = "ItemOfComboBox : HatchSytle Example by http://dllee.ktop.com.tw";
   this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form_Paint);
   this.ActiveControl = this.cBoxHatchStyle;

   // C# 的 comboBox 可以直接加入物件,它似乎會自己取 .ToString() 的方法
   // 得到字串作列表,而加入的物件之後可以直接取出使用。
   this.cBoxHatchStyle.Items.Add(HatchStyle.BackwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Cross); // 與 LargeGrid 相同?!
   this.cBoxHatchStyle.Items.Add(HatchStyle.DarkDownwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DarkHorizontal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DarkUpwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DarkVertical);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DashedDownwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DashedHorizontal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DashedUpwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DashedVertical);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DiagonalBrick);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DiagonalCross);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Divot);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DottedDiamond);
   this.cBoxHatchStyle.Items.Add(HatchStyle.DottedGrid);
   this.cBoxHatchStyle.Items.Add(HatchStyle.ForwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Horizontal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.HorizontalBrick);
   this.cBoxHatchStyle.Items.Add(HatchStyle.LargeCheckerBoard);
   this.cBoxHatchStyle.Items.Add(HatchStyle.LargeConfetti);
   this.cBoxHatchStyle.Items.Add(HatchStyle.LargeGrid);
   this.cBoxHatchStyle.Items.Add(HatchStyle.LightDownwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.LightHorizontal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.LightUpwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.LightVertical);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Max);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Min);
   this.cBoxHatchStyle.Items.Add(HatchStyle.NarrowHorizontal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.NarrowVertical);
   this.cBoxHatchStyle.Items.Add(HatchStyle.OutlinedDiamond);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent05);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent10);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent20);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent25);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent30);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent40);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent50);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent60);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent70);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent75);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent80);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Percent90);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Plaid);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Shingle);
   this.cBoxHatchStyle.Items.Add(HatchStyle.SmallCheckerBoard);
   this.cBoxHatchStyle.Items.Add(HatchStyle.SmallConfetti);
   this.cBoxHatchStyle.Items.Add(HatchStyle.SmallGrid);
   this.cBoxHatchStyle.Items.Add(HatchStyle.SolidDiamond);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Sphere);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Trellis);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Vertical);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Wave);
   this.cBoxHatchStyle.Items.Add(HatchStyle.Weave);
   this.cBoxHatchStyle.Items.Add(HatchStyle.WideDownwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.WideUpwardDiagonal);
   this.cBoxHatchStyle.Items.Add(HatchStyle.ZigZag);
   this.cBoxHatchStyle.SelectedIndex=1;
  }
  
  [STAThread]
  public static void Main(string[] args)
  {
   Application.Run(new MainForm());
  }

  void SelectColorClick(object sender, System.EventArgs e)
  {
   ColorDialog clrDlg = new ColorDialog();
   clrDlg.Color = this.SelectColor.BackColor;
   if (clrDlg.ShowDialog() == DialogResult.OK)
   {
    this.SelectColor.BackColor = clrDlg.Color;
     this.Invalidate();
   }
   clrDlg.Dispose();
  }
  
  void SelectBKColorClick(object sender, System.EventArgs e)
  {
   ColorDialog clrDlg = new ColorDialog();
   clrDlg.Color = this.SelectBKColor.BackColor;
   if (clrDlg.ShowDialog() == DialogResult.OK)
   {
    this.SelectBKColor.BackColor = clrDlg.Color;
     this.Invalidate();
   }
   clrDlg.Dispose();
  }

  void Form_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
  {
   Graphics g = e.Graphics;
   // 物件轉換成其他類別
   HatchStyle selectedHatchStyle = (HatchStyle)Convert.ChangeType(
     this.cBoxHatchStyle.SelectedItem,typeof(HatchStyle));
   // Create a hatch brush with selected hatch style and colors
   HatchBrush brush = new HatchBrush(selectedHatchStyle,
     this.SelectColor.BackColor, this.SelectBKColor.BackColor);
   // Fill rectangle
   g.FillRectangle(brush, this.ClientRectangle);
   // Dispose of objects
   brush.Dispose();
  }

  void CBoxHatchStyleSelectedIndexChanged(object sender, System.EventArgs e)
  {
   this.Invalidate();
  }
 }
}

張貼在 C# | 發表留言

放些什麼好…

在 MSN Spaces 開放的初期,本來想註冊一個來玩玩,但網頁多也是麻煩,自己已經有許多沒空更新的網站,再多一個也擔心會變成另一個沒空更新的網站… 那時的 dllee 還能註冊,如今,dllee 已被用去  只能使用 sharedllee 的 ID 了,希望大家不要記錯

在此分享空間,我會把 C# 的一些學習狀況作分享。雖然已寫了十幾年的 C/C++ 程式,應該也還可以用個十幾年,但個人認為 C#/.Net 可能是未來十幾年的必備軟體開發語言,在不同的作業平台幾乎都有 .Net 轉換的空間,即使沒有玩到 Kylix,現在來玩 http://www.mono-project.com (.Net on Linux, Windows, OSX, BSD, Solaris) 也是不錯喔。

另外,還會貼一些兒子/女兒的照片分享給親友看看,如果有看到不錯的心情分享文章,也會轉貼上來,希望大家會喜歡。

張貼在 胡思亂想 | 發表留言