Inheritance: System.Windows.Forms.Form
        /// <summary>
        /// 响应系统参数设置按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnSystemSettingsClicked(object sender, Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs e)
        {
            try
            {
                TPConfSettingsForm form = new TPConfSettingsForm();
                DialogResult result = form.ShowDialog();

                if (result == DialogResult.OK)
                {
                    ThisAddIn.g_log.Info(String.Format("Set TP Conference button clicked OK!"));
                }
                else
                {
                    ThisAddIn.g_log.Info(String.Format("Set TP Conference button clicked Cancel!"));
                }
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Beispiel #2
0
 /// <summary>
 /// 会议设置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnSettingsClicked(object sender, RibbonControlEventArgs e)
 {
     ThisAddIn.g_log.Info("operator:btnSettingsClicked begin");
     try
     {
         TPConfSettingsForm confSettings = new TPConfSettingsForm();
         confSettings.ShowDialog();
     }
     catch (Exception ex)
     {
         ThisAddIn.g_log.Error(string.Format("open settings failed, because {0}",ex.Message));
         MessageBox.Show(ex.Message);
     }
     ThisAddIn.g_log.Info("operator:btnSettingsClicked end");
 }