public BarcodeTypeButton(SBSDKBarcodeType code) { Code = code; Title = new UILabel(); Title.TextColor = UIColor.DarkGray; Title.Font = UIFont.FromName("HelveticaNeue", 14); AddSubview(Title); Switch = new UISwitch(); Switch.On = true; Switch.UserInteractionEnabled = false; Switch.Layer.Opacity = 1.0f; AddSubview(Switch); Title.Text = code.Name; }
public void Update(SBSDKBarcodeType type, bool value) { List[type] = value; }
public bool IsChecked(SBSDKBarcodeType lastCheckedFormat) { return(AcceptedTypes.Contains(lastCheckedFormat)); }