InitialSampleDemo → DemoBase → ZedGraphDemo(介面)
String Description, String Title, ZedGraphControl ZedGraphControl, ICollection Types
PaneBase Pane、MasterPane MasterPane。Init 初始化 ZedGraphControl。public DemoBase(string description, string title, DemoType type) {
ArrayList types = new ArrayList();
types.Add(type);
Init(description, title, types);
}
// ... 其他多載同理
private void Init(string description, string title, ICollection types) {
this.description = description;
this.title = title;
this.types = types;
control = new ZedGraphControl();
}
public InitialSampleDemo() : base("Code Project Initial Sample", "Initial Sample", DemoType.Tutorial)
傳入描述、標題、類型枚舉,完成基類初始化。