Exemplo n.º 1
0
        /// <summary>
        /// 显示机种
        /// </summary>
        /// <param name="e"></param>
        private void ShowModel(CUIModelArgs e)
        {
            if (this.InvokeRequired)
            {
                this.Invoke(new Action <CUIModelArgs>(ShowModel), e);
            }
            else
            {
                if (e.model != null)
                {
                    uiHpInfo.LoadModel(e.model);

                    uiHpData.RefreshUI(e.model.Para.Step);
                }
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 机种UI消息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnModel(object sender, CUIModelArgs e)
 {
     ShowModel(e);
 }