摘要: public class Intstrot : IEnumerator,IEnumerable{ int[] a; int CurrentIndex = -1; int EndIndex = -1; int containAblity; public Intstrot(int ContainAblity) { containAblity = Co... 阅读全文
posted @ 2007-02-26 15:02 馒头 阅读(322) 评论(0) 推荐(0) 编辑
摘要: C# defines two interfaces to enumerate a collective object. Now let us see them:public interface IEnumerator{ object Current { get; } bool MoveNext(); void Reset();}public interface IE... 阅读全文
posted @ 2007-02-26 14:30 馒头 阅读(748) 评论(0) 推荐(0) 编辑
摘要: /// /// 填充ComboBox/// /// /// private void FillComboBox(ComboBox cmb) {try {cmb.DropDownStyle = ComboBoxStyle.DropDownList;//设置combobox的样式。ArrayList ary_Tmp = this.GetArrayList();ary_Tmp.Insert(0, (ne... 阅读全文
posted @ 2007-02-26 10:52 馒头 阅读(382) 评论(0) 推荐(0) 编辑