Beispiel #1
0
 /// <summary>
 /// 全球火点修正
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void mhiCorrect_Click(object sender, EventArgs e)
 {
     try
     {
         ISmartWindow smartWindow = _session.SmartWindowManager.GetSmartWindow((w) => { return(w.GetType() == typeof(masGbalFireCorrectPage)); });
         if (smartWindow == null)
         {
             smartWindow = new masGbalFireCorrectPage(_session);
             _session.SmartWindowManager.DisplayWindow(smartWindow);
             SetArgsPanelWidth(smartWindow);
         }
         else
         {
             _session.SmartWindowManager.DisplayWindow(smartWindow);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Beispiel #2
0
        private void SetArgsPanelWidth(ISmartWindow smartWindow)
        {
            masGbalFireCorrectPage window = smartWindow as masGbalFireCorrectPage;

            window.SetArgsPanelWidth((int)(window.Width / 4.5f));
        }