コード例 #1
0
 public ExposedInput(LabelDisplay labelDisplay, string label = "")
 {
     if (labelDisplay == LabelDisplay.Field)
     {
         this.LabelDisplay = LabelDisplay.Field;
     }
     else if (labelDisplay == LabelDisplay.Custom)
     {
         this.LabelDisplay = LabelDisplay.Custom;
         this.Label        = label;
     }
     else
     {
         this.LabelDisplay = LabelDisplay.Hidden;
         this.Label        = "";
     }
 }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (IssuerDisplay != null)
            {
                IssuerDisplay.Dispose();
                IssuerDisplay = null;
            }

            if (LabelDisplay != null)
            {
                LabelDisplay.Dispose();
                LabelDisplay = null;
            }

            if (OTPDisplay != null)
            {
                OTPDisplay.Dispose();
                OTPDisplay = null;
            }
        }