private void button2_Click(object sender, EventArgs e) { decimal t1 = Convert.ToDecimal(creTextBox1.Text)/100; decimal t2 = Convert.ToDecimal(creTextBox2.Text) / 100; decimal t3 = Convert.ToDecimal(creTextBox3.Text) / 100; Services.get_GUI get_GUI = new get_GUI(); get_GUI.UpdateTax(StaticClass.storeId,t1,t2,t3); this.Dispose(); }