public StudGraduateCertficateForm()
 {
     InitializeComponent();
     sgcm = new StudGraduateCertficateManager();
     if (sgcm.GetisDefaultTemplate())
     {
         cbxDefault.Checked = true;
     }
     else
     {
         cbxUserDefine.Checked = true;
     }
 }
 public StudGraduateCertficateForm()
 {
     InitializeComponent();
     sgcm = new StudGraduateCertficateManager();
     if (sgcm.GetisDefaultTemplate() == "true") //畢業證書預設樣板
     {
         cbxDefault.Checked = true;
     }
     else if (sgcm.GetisDefaultTemplate() == "false")
     {
         cbxUserDefine.Checked = true;
     }
     else if (sgcm.GetisDefaultTemplate() == "true2")//修業證書預設樣板
     {
         cbxDefault2.Checked = true;
     }
     else if (sgcm.GetisDefaultTemplate() == "false2")
     {
         cbxUserDefine2.Checked = true;
     }
 }