static public void Main() { //測試如何將1Campus的家長資料取得 MenuButton menuButton = MotherForm.StartMenu["行動應用"]; menuButton.Image = Properties.Resources.agronomy_64; menuButton["家長使用查詢"].Click += delegate { ParentForm a = new ParentForm(); a.ShowDialog(); }; menuButton["行動使用統計"].Click += delegate { ParentByStudent a = new ParentByStudent(); a.ShowDialog(); }; }
private void btnView_Click(object sender, EventArgs e) { ParentByStudent pbs = new ParentByStudent(); pbs.ShowDialog(); }