Esempio n. 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnConfSettingsClicked(object sender, RibbonControlEventArgs e)
 {
     ThisAddIn.g_log.Info("operator:btnConfSettingsClicked begin");
     try
     {
         VideoConfSettingsForm videoConfSettings = new VideoConfSettingsForm(null);
         videoConfSettings.ShowDialog();
     }
     catch (Exception ex)
     {
         ThisAddIn.g_log.Error("open VideoConfSettingsForm failed!");
         MessageBox.Show(ex.Message);
     }
     ThisAddIn.g_log.Info("operator:btnConfSettingsClicked end");
 }
Esempio n. 2
0
        /// <summary>
        /// 设置会议是否关联到SMC,false: 未关联 ;true:关联(2014/9/29)
        /// </summary>
        //public static bool toSMC = false;
        /// <summary>
        /// 响应会议参数设置按钮
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnConfSettingsClicked(object sender, Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs e)
        {
            ThisAddIn.g_log.Info("operator:btnConfSettingsClicked begin.");
            try
            {
                AppointmentItem ai = null;
                Inspector inspector = Globals.ThisAddIn.Application.ActiveInspector();
                if (inspector != null)
                {
                    if (inspector.CurrentItem != null)
                    {
                        if (inspector.CurrentItem is AppointmentItem)
                        {
                            ai = (AppointmentItem)inspector.CurrentItem;
                        }
                    }
                }
                VideoConfSettingsForm form = new VideoConfSettingsForm(ai);
                DialogResult result = form.ShowDialog();

                if (result == DialogResult.OK)
                {
                    ThisAddIn.g_log.Info(String.Format("Schedule TP Conference button clicked OK!"));
                }
                else
                {
                    ThisAddIn.g_log.Info(String.Format("Schedule TP Conference button clicked Cancel!"));
                }
            }
            catch (System.Exception ex)
            {
                ThisAddIn.g_log.Error("btnConfSettingsClicked failed with ai.");
                MessageBox.Show(ex.Message);
            }
            ThisAddIn.g_log.Info("operator:btnConfSettingsClicked end.");
        }