12.07.2014

找出目前執行檔的所有的表單

public class FormsCollection : CollectionBase
{
public Form Add(Form FormObject)
{
base.List.Add(FormObject);
return (FormObject);
}

public void Remove(Form FormObject)
{
base.List.Remove(FormObject);
}
}
走訪的方式
Type form = typeof(Form);
foreach (Type item in Assembly.GetExecutingAssembly().GetTypes())
{
//if (item.BaseType == typeof(Form))
if (item.Name.StartsWith("Frm_"))
{
Form f = (Form)Activator.CreateInstance(item);
forms.Add(f);
}
}

資料來源:微軟知識庫

12.01.2011

之前工作上唯一有用到的版本控制系統是微軟的 Visual Source Safe,後來學著用svn,再後來分散式版本控制系統越來越多人使用,hg 和 git 比較過後,選了較易入門的 hg 來用,目前工作上的專案都用 hg 來做控管,也慢慢的在學它的 tag 和 branch 的用法。

Mercurial