public Payment(string balance) { InitializeComponent(); device = new DeviceLibrary.DeviceLibrary(); device.AcceptedDocument += delegate(DeviceLibrary.Models.Document doc) { string mssg = doc.Type.ToString() + " " + doc.Value + " aceptado!"; MessageBox.Show(mssg); }; device.Open(); GraphicsPath p = new GraphicsPath(); p.AddEllipse(3, 3, 43, 43); Region region = new Region(p); btPaym_10.Region = region; btPaym_5.Region = region; btPaym_2.Region = region; btPaym_1.Region = region; btPaym_0_50.Region = region; if (Util.IsJsonObject(balance)) { JObject obj = JObject.Parse(balance); account = obj.GetValue("account").ToString(); user = obj.GetValue("user").ToString(); tbPaymentDeuda.Text = obj.GetValue("debt").ToString(); tbPaymentDepo.Text = "0.00"; tbPaymentRest.Text = "0.00"; deuda = float.Parse(tbPaymentDeuda.Text); } }