Advertisement
bombillo

Rocio C# Calculadora

Dec 10th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.59 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10.  
  11. namespace registro
  12. {
  13.    
  14.     public partial class Form1 : Form
  15.     {
  16.         double servicio = 0;
  17.         public Form1()
  18.         {
  19.             InitializeComponent();
  20.         }
  21.  
  22.         private void sencillo_CheckedChanged(object sender, EvenPUtArgs e)
  23.         {
  24.            
  25.             int ls = 50;
  26.             if (sencillo.Checked == true)
  27.             {
  28.                 servicio = servicio + ls;
  29.                
  30.             }
  31.            if(sencillo.Checked == false)
  32.             {
  33.                 servicio = servicio - ls;
  34.                
  35.             }
  36.            
  37.             txtresultado.Text = txtresultado.Text += servicio;
  38.            
  39.         }
  40.  
  41.         private void conlinea_CheckedChanged(object sender, EventArgs e)
  42.         {
  43.             int lcl = 100;
  44.             if (conlinea.Checked == true)
  45.             {
  46.                
  47.                 servicio = servicio + lcl;
  48.              
  49.             }
  50.             if(conlinea.Checked == false)
  51.             {
  52.                 servicio = servicio - lcl;
  53.             }
  54.             txtresultado.Text = txtresultado.Text += servicio;
  55.            
  56.         }
  57.  
  58.         private void secador_CheckedChanged(object sender, EventArgs e)
  59.         {
  60.             int ss = 150;
  61.             if (secador.Checked == true)
  62.             {
  63.                 servicio = servicio + ss;
  64.             }
  65.             if(secador.Checked == false)
  66.             {
  67.                 servicio = servicio - ss;
  68.             }
  69.             txtresultado.Text = txtresultado.Text += servicio;
  70.  
  71.         }
  72.  
  73.         private void blower_CheckedChanged(object sender, EventArgs e)
  74.         {
  75.             int sb = 200;
  76.             if (blower.Checked == true)
  77.             {
  78.                 servicio = servicio + sb;
  79.             }
  80.             if(blower.Checked == false)
  81.             {
  82.                 servicio = servicio - sb;
  83.             }
  84.             txtresultado.Text = txtresultado.Text += servicio;
  85.         }
  86.  
  87.         private void puntas_CheckedChanged(object sender, EventArgs e)
  88.         {
  89.             int cp = 300;
  90.             if(puntas.Checked == true)
  91.             {
  92.               servicio = servicio + cp;
  93.             }
  94.             if(puntas.Checked == false)
  95.             {
  96.                 servicio = servicio - cp;
  97.             }
  98.             txtresultado.Text = txtresultado.Text += servicio;
  99.          
  100.         }
  101.  
  102.         private void retoque_CheckedChanged(object sender, EventArgs e)
  103.         {
  104.             int cr = 300;
  105.             if(retoque.Checked == true)
  106.             {
  107.                 servicio = servicio + cr;
  108.             }
  109.             if(retoque.Checked == false)
  110.             {
  111.                 servicio = servicio - cr;
  112.             }
  113.  
  114.             txtresultado.Text = txtresultado.Text += servicio;
  115.         }
  116.  
  117.         private void conforma_CheckedChanged(object sender, EventArgs e)
  118.         {
  119.             int ccf = 700;
  120.             if (conforma.Checked == true)
  121.             {
  122.                 servicio = servicio + ccf;
  123.             }
  124.             if(conforma.Checked == false)
  125.             {
  126.                 servicio = servicio - ccf;
  127.             }
  128.             txtresultado.Text = txtresultado.Text += servicio;
  129.         }
  130.  
  131.         private void completo_CheckedChanged(object sender, EventArgs e)
  132.         {
  133.             int cc = 900;
  134.             if (completo.Checked == true)
  135.             {
  136.                 servicio = servicio + cc;
  137.             }
  138.             if(completo.Checked == false)
  139.             {
  140.                 servicio = servicio - cc;
  141.             }
  142.             txtresultado.Text = txtresultado.Text += servicio;
  143.         }
  144.  
  145.         private void posuñas_CheckedChanged(object sender, EventArgs e)
  146.         {
  147.             int pu = 300;
  148.             if(posuñas.Checked == true)
  149.             {
  150.                 servicio = servicio + pu;
  151.            
  152.             }
  153.             if(posuñas.Checked == false)
  154.             {
  155.                 servicio = servicio - pu;
  156.             }
  157.             txtresultado.Text = txtresultado.Text += servicio;
  158.         }
  159.  
  160.         private void esmaltemano_CheckedChanged(object sender, EventArgs e)
  161.         {
  162.             int em = 200;
  163.             if(esmaltemano.Checked == true)
  164.             {
  165.                 servicio = servicio + em;
  166.             }
  167.             if(esmaltemano.Checked == false)
  168.             {
  169.                 servicio = servicio - em;
  170.             }
  171.             txtresultado.Text = txtresultado.Text += servicio;
  172.         }
  173.  
  174.         private void limpieza_CheckedChanged(object sender, EventArgs e)
  175.         {
  176.             int lp = 200;
  177.             if(limpieza.Checked == true)
  178.             {
  179.                 servicio = servicio + lp;
  180.             }
  181.             if(limpieza.Checked == false)
  182.             {
  183.                 servicio = servicio - lp;
  184.             }
  185.             txtresultado.Text = txtresultado.Text += servicio;
  186.         }
  187.  
  188.         private void esmaltepies_CheckedChanged(object sender, EventArgs e)
  189.         {
  190.             int ep = 200;
  191.             if(esmaltepies.Checked == true)
  192.             {
  193.                 servicio = servicio + ep;
  194.             }
  195.             if(esmaltepies.Checked == false)
  196.             {
  197.                 servicio = servicio - ep;
  198.             }
  199.             txtresultado.Text = txtresultado.Text += servicio;
  200.         }
  201.  
  202.         private void Form1_Load(object sender, EventArgs e)
  203.         {
  204.            
  205.         }
  206.     }
  207. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement