Exemplo n.º 1
0
 /// <summary>
 /// 更新Lable控件
 /// </summary>
 /// <param name="lbl"></param>
 /// <param name="lan"></param>
 /// <param name="resourceManager"></param>
 protected void UpdateLabel(System.Windows.Forms.Label lbl, ProVision.Communal.Language lan, System.Resources.ResourceManager resourceManager)
 {
     if (lbl != null &&
         lbl.Tag != null)
     {
         if (resourceManager != null)
         {
             bool   isChs = lan == ProVision.Communal.Language.Chinese;
             string str   = lbl.Tag.ToString();
             lbl.Text = isChs ? resourceManager.GetString("chs_" + str) : resourceManager.GetString("en_" + str);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 更新GroupBox控件
 /// </summary>
 /// <param name="grpb"></param>
 /// <param name="lan"></param>
 /// <param name="resourceManager"></param>
 protected void UpdateGroupBox(System.Windows.Forms.GroupBox grpb, ProVision.Communal.Language lan, System.Resources.ResourceManager resourceManager)
 {
     if (grpb != null &&
         grpb.Tag != null)
     {
         if (resourceManager != null)
         {
             bool   isChs = lan == ProVision.Communal.Language.Chinese;
             string str   = grpb.Tag.ToString();
             grpb.Text = isChs ? resourceManager.GetString("chs_" + str) : resourceManager.GetString("en_" + str);
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 更新Button控件
 /// </summary>
 /// <param name="btn"></param>
 /// <param name="lan"></param>
 /// <param name="resourceManager"></param>
 protected void UpdateButton(System.Windows.Forms.Button btn, ProVision.Communal.Language lan, System.Resources.ResourceManager resourceManager)
 {
     if (btn != null &&
         btn.Tag != null)
     {
         if (resourceManager != null)
         {
             btn.Click -= Btn_Click;
             bool   isChs = lan == ProVision.Communal.Language.Chinese;
             string str   = btn.Tag.ToString();
             btn.Text   = isChs ? resourceManager.GetString("chs_" + str) : resourceManager.GetString("en_" + str);
             btn.Click += Btn_Click;
         }
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 更新RadioButton控件
 /// </summary>
 /// <param name="rdbtn"></param>
 /// <param name="lan"></param>
 /// <param name="resourceManager"></param>
 protected void UpdateRadioButton(System.Windows.Forms.RadioButton rdbtn, ProVision.Communal.Language lan, System.Resources.ResourceManager resourceManager)
 {
     if (rdbtn != null &&
         rdbtn.Tag != null)
     {
         if (resourceManager != null)
         {
             rdbtn.CheckedChanged -= Rdbtn_CheckedChanged;
             bool   isChs = lan == ProVision.Communal.Language.Chinese;
             string str   = rdbtn.Tag.ToString();
             rdbtn.Text            = isChs ? resourceManager.GetString("chs_" + str) : resourceManager.GetString("en_" + str);
             rdbtn.CheckedChanged += Rdbtn_CheckedChanged;
         }
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// 更新CheckBox控件
 /// </summary>
 /// <param name="chkb"></param>
 /// <param name="lan"></param>
 /// <param name="resourceManager"></param>
 protected void UpdateChekBox(System.Windows.Forms.CheckBox chkb, ProVision.Communal.Language lan, System.Resources.ResourceManager resourceManager)
 {
     if (chkb != null &&
         chkb.Tag != null)
     {
         if (resourceManager != null)
         {
             chkb.CheckedChanged -= Chkb_CheckedChanged;
             bool   isChs = lan == ProVision.Communal.Language.Chinese;
             string str   = chkb.Tag.ToString();
             chkb.Text            = isChs ? resourceManager.GetString("chs_" + str) : resourceManager.GetString("en_" + str);
             chkb.CheckedChanged += Chkb_CheckedChanged;
         }
     }
 }
Exemplo n.º 6
0
 protected internal FrmCalibOnPoint(ProVision.Communal.Language lan) : this()
 {
     this.Load        += FrmCalibratePointBased_Load;
     this.FormClosing += FrmCalibratePointBased_FormClosing;
 }
Exemplo n.º 7
0
 public FrmInteractiveROI(ProVision.Communal.Language lan, HalconDotNet.HObject hoImg, HalconDotNet.HObject region) : this(lan, hoImg)
 {
     _hoResultRegion   = region;
     _isTransmitRegion = true;
 }
Exemplo n.º 8
0
 public FrmInteractiveROI(ProVision.Communal.Language lan, HalconDotNet.HObject hoImg) : this()
 {
     LanguageVersion           = lan;
     _hoImage                  = hoImg;
     this.btnLoadImage.Enabled = false;
 }
Exemplo n.º 9
0
 public FrmInteractiveROI(ProVision.Communal.Language lan) : this()
 {
     LanguageVersion = lan;
 }
Exemplo n.º 10
0
 public UICalibOnPoint(ProVision.Communal.Language lan) : base(lan)
 {
     InitializeComponent();
 }