You are on page 1of 15

///////////////////////////////////////////////////////////////////////////////////////////////////////////

VOLUMEN
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;

using
using
using
using

System.Drawing;
System.Linq;
System.Text;
System.Windows.Forms;

namespace splash
{
public partial class Volumen : Form
{
validar v3 = new validar();
float L = 0;
float vmL = 0.001f, vgal = 3.785f, vcmc = 0.01f, vpie = 28.32f, vpulg = 0.016f, vmcub =
1000f, vyardc = 764.6f;
float mL = 0, gal = 0, cmc = 0, pie = 0, pulg = 0, mcub = 0, yardc = 0;
public Volumen()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
Form2 frm = new Form2();
frm.Show();
}
private void Volumen_Load(object sender, EventArgs e)
{
}
private void txtl_KeyPress(object sender, KeyPressEventArgs e)
{
v3.solonumeros(e);
}
private void button3_Click(object sender, EventArgs e)
{
L = float.Parse(txtl.Text);
mL = L * vmL;
gal= L * vgal;
cmc = L * vcmc;
pie = L * vpie;
pulg = L * vpulg;
mcub = L * vmcub;
yardc = L * vyardc;

textBox1.Text
textBox2.Text
textBox3.Text
textBox4.Text
textBox5.Text
textBox6.Text
textBox7.Text
}

=
=
=
=
=
=
=

mL.ToString();
gal.ToString();
cmc.ToString();
pie.ToString();
pulg.ToString();
mcub.ToString();
yardc.ToString();

////////////////////////////////////////////////////////////////////////////////////////////////////////////
TEMPERATURA
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Windows.Forms;

namespace splash
{
public partial class Temperatura : Form
{
float gc = 0;
float vk = 273.15f, vfk = 33.8f, vrk = 493.47f;
float k = 0, fk = 0, rk = 0;
validar v4 = new validar();
public Temperatura()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
Form2 frm = new Form2();
frm.Show();
}
private void txtc_KeyPress(object sender, KeyPressEventArgs e)
{
v4.solonumeros(e);
}
private void Temperatura_Load(object sender, EventArgs e)
{
}
private void txtc_TextChanged(object sender, EventArgs e)
{

private void button4_Click(object sender, EventArgs e)


{
gc = float.Parse(txtc.Text);
k = gc * vk;
fk = gc * vfk;
rk = gc * vrk;
textBox1.Text = k.ToString();
textBox2.Text = fk.ToString();
textBox3.Text = rk.ToString();
}
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////
LONGITUD
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Windows.Forms;

namespace splash
{
public partial class Longitud : Form
{
validar v1= new validar ();
float m;
float vmm = 1000 , vm=0.00062f , vkm=0.001f , vy=1.094f ,vft=3.281f , vpl=39.37f , vc=
100f , vmn=0.00054f;
float mm = 0, millas = 0, km = 0, yard = 0, ft = 0, plg = 0, cm = 0, milln = 0;
public Longitud()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
Form2 frm = new Form2();
frm.Show();
}
private void txtm_KeyPress(object sender, KeyPressEventArgs e)
{
v1.solonumeros(e);
}
private void Longitud_Load(object sender, EventArgs e)
{
}

private void button4_Click(object sender, EventArgs e)


{
m = float.Parse(txtm.Text);
mm = m * vmm;
millas = m * vm;
km = m * vkm;
yard = m * vy;
ft = m * vft;
plg = m * vpl;
cm = m * vc;
milln = m * vmn;
textBox1.Text = cm.ToString();
textBox2.Text = millas.ToString();
textBox3.Text = km.ToString();
textBox4.Text = yard.ToString();
textBox5.Text = ft.ToString();
textBox6.Text = plg.ToString();
textBox7.Text = milln.ToString();
textBox8.Text = mm.ToString();

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
MASA
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Windows.Forms;

namespace splash
{
public partial class Masa : Form
{
validar v = new validar();
float kg=0 ;
float vg = 1000f , vl=2.205f , vt=0.001f ,vo=35.27f ,vd=980392.16f ,vml=1000000;
float g = 0 , l=0 , t=0 , o=0 ,ml=0 ,d=0;

public Masa()
{
InitializeComponent();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
Form2 frm = new Form2();

frm.Show();

private void button1_Click(object sender, EventArgs e)


{
kg= float.Parse(txtm.Text);
g = kg * vg;
l = kg * vl;
t = kg * vt;
o = kg * vo;
d = kg * vd;
ml = kg * vml;
textBox1.Text
textBox2.Text
textBox3.Text
textBox4.Text
textBox6.Text
textBox5.Text

=
=
=
=
=
=

g.ToString();
l.ToString();
t.ToString();
o.ToString();
d.ToString();
ml.ToString();

}
private void Masa_Load(object sender, EventArgs e)
{
}

private void txtm_KeyPress(object sender, KeyPressEventArgs e)


{
v.solonumeros(e);
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////
TIEMPO
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Windows.Forms;

namespace splash
{
public partial class Tiempo : Form
{
float seg = 0;
float vdia = 1.1574e-5f, vhor = 0.000277778f, vmin = 0.01666668f;
float dia = 0, hora = 0, min = 0;
validar v2 = new validar();
public Tiempo()
{
InitializeComponent();

}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
Form2 frm = new Form2();
frm.Show();
}
private void textBox7_KeyPress(object sender, KeyPressEventArgs e)
{
v2.solonumeros(e);
}
private void txts_TextChanged(object sender, EventArgs e)
{
}
private void Tiempo_Load(object sender, EventArgs e)
{
}
private void button4_Click(object sender, EventArgs e)
{
seg = float.Parse(txts.Text);
dia = seg * vdia;
hora = seg * vhor;
min= seg * vmin;
textBox1.Text = dia.ToString();
textBox2.Text = hora.ToString();
textBox3.Text = min.ToString();
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////
VALIDADCION DE NUMEROS
using
using
using
using
using

System;
System.Collections.Generic;
System.Linq;
System.Text;
System.Windows.Forms;

namespace splash
{
class validar
{
public void solonumeros(KeyPressEventArgs e)
{
if( char.IsNumber(e.KeyChar))
{
e.Handled = false;

}
}

}
if (char.IsLetter(e.KeyChar))
{
e.Handled = true;
}
if (char.IsSymbol(e.KeyChar))
{
e.Handled = true;
}

//////////////////////////////////////////////////////////////////////////////////////////////////
SPLASH (intro)
using
using
using
using
using
using
using
using

System;
System.Collections.Generic;
System.ComponentModel;
System.Data;
System.Drawing;
System.Linq;
System.Text;
System.Windows.Forms;

namespace splash
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void timer1_Tick(object sender, EventArgs e)
{
if (progressBar1.Value < 100)
{
progressBar1.Value = progressBar1.Value + 5 ;
label2.Text = "Cargando" + progressBar1.Value + " %";
}
else
{
{
timer1.Enabled = false;
MessageBox.Show("carga completa del sistema");
Close();

////////////////////////////////////////////////////////////////////////////////////////////////////////

Screenshots
SPLASH

MEN

LONGITUD

MASA

TEMPERATURA

TIEMPO

VOLUMEN

You might also like