/// <summary> /// 出題按鍵點擊事件 /// </summary> /// <param name="sender">事件發生者</param> /// <param name="e">事件處理</param> private void SureClick(object sender, EventArgs e) { TopMost = true; // 打開歷屆題型 if (cmbWorkPages.SelectedIndex > 0) { // 使用IE打開已作成的靜態頁面 CallCommondProcess(() => { return("\"" + Path.GetFullPath(ConfigurationUtil.GetKeyValue("HtmlWork") + cmbWorkPages.SelectedValue.ToString()) + "\""); }); Environment.Exit(0); return; } // 選題情況 if (!Process.ChooseCheck()) { MessageBox.Show(this, MessageUtil.GetMessage(() => MsgResources.I0009A)); return; } LogUtil.LogDebug(MessageUtil.GetMessage(() => MsgResources.I0002A)); // 出題按鍵點擊事件 FileInfo exerciseFile = Process.Compile(); // 使用IE打開已作成的靜態頁面 CallCommondProcess(() => { if (ConfigurationUtil.GetUseIIS()) { return("\"" + ConfigurationUtil.GetIISUrl() + exerciseFile.Name + "\""); } return("\"" + Path.GetFullPath(exerciseFile.FullName) + "\""); }, 3000); Environment.Exit(0); }