Ejemplo n.º 1
0
        private void DisposeLabel(bool bTrue)
        {
            YesNoLabel labelYN = GetLabel(bTrue);

            if (labelYN != null)
            {
                _containerPanel.Controls.Remove(labelYN);
                labelYN.Dispose();
            }
        }
Ejemplo n.º 2
0
 protected override void Build(SMPathOut pathOut)
 {
     base.Build(pathOut);
     if (pathOut is SMPathOutBool)
     {
         SMPathOutBool pathOutBool = pathOut as SMPathOutBool;
         YesNoLabel    tbYesNo     = new YesNoLabel(this, pathOutBool);
         tbYesNo.BackColor  = System.Drawing.Color.Transparent;
         tbYesNo.Name       = BuildLabelName((pathOutBool).True);
         tbYesNo.Size       = new System.Drawing.Size(16, 16);
         tbYesNo.TabIndex   = 0;
         tbYesNo.Text       = pathOutBool.Text;
         tbYesNo.TextAlign  = System.Drawing.ContentAlignment.MiddleCenter;
         tbYesNo.Click     += new EventHandler(tbYesNo_Click);
         tbYesNo.MouseMove += new MouseEventHandler(OnMouseMove);
         _containerPanel.Controls.Add(tbYesNo);
     }
 }