Esempio n. 1
0
 /// <summary>
 /// 添加PictureBox到Panel
 /// </summary>
 /// <param name="img"></param>
 /// <param name="tag"></param>
 protected void AddPictureBox(Image img, TagInfo tag)
 {
     this.SetPanelControlsEnabled(true);
     if (ResetMode)
     {
         PicBoxFillImage(img, tag);
         ResetMode = false;
     }
     else
     {
         PicBoxFillImage(img, tag);
         AddControlEvent();
     }
     PanelForm.SetShowStringText(string.Empty);
     this.SetButtonEnabled(true, null);
 }
Esempio n. 2
0
 /// <summary>
 /// 添加Label到Panel
 /// </summary>
 public void AddLabel()
 {
     this.SetPanelControlsEnabled(true);
     if (ResetMode)
     {
         FillPreviewLabel();
         ResetMode = false;
     }
     else
     {
         FillPreviewLabel();
         AddControlEvent();
     }
     PanelForm.SetShowStringText(string.Empty);
     this.SetButtonEnabled(true, null);
 }