namespace #1
{
public partial class increase: Form
{
[DllImport("user32.DLL", EntryPoint = "ReleaseCapture")]
private extern static void ReleaseCapture();
[DllImport("user32.DLL", EntryPoint = "SendMessage")]
private extern static void SendMessage(System.IntPtr hWnd, int wMsg, int
wParam, int lParam);
public increase ()
{
InitializeComponent();
}
private void increase_Load(object sender, EventArgs e)
{
private void label1_Click(object sender, EventArgs e)
{
this.Close();
private void textdes1_TextChanged(object sender, EventArgs e)
{
private void label7_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
}
private void label9_Click(object sender, EventArgs e)
{
Productos pro = new Productos();
pro.Show(this);
}
private void panelname_MouseDown(object sender, MouseEventArgs e)
{
ReleaseCapture();
SendMessage(this.Handle, 0x112, 0xf012, 0);
}
private void panel1_MouseDown(object sender, MouseEventArgs e)
{
ReleaseCapture();
SendMessage(this.Handle, 0x114, 0xf015, 0);
}
}
}
namespace #1
{
public partial class Productos: Form
{
[DllImport("user32.DLL", EntryPoint = "ReleaseCapture")]
private extern static void ReleaseCapture();
[DllImport("user32.DLL", EntryPoint = "SendMessage")]
private extern static void SendMessage(System.IntPtr hWnd, int wMsg, int
wParam, int lParam);
public Productos()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
private void button1_Click(object sender, EventArgs e)
{
double pre, npr, npp;
pre = Convert.ToInt32(textPre.Text);
if (pre <= 1500)
{
npr = pre * 0.11;
npp = npr + pre;
Increase inc = new Increase ();
inc.textdes1.Text = npr.ToString();
inc.textnew1.Text = npp.ToString();
inc.textname1.Text = texName.Text;
inc.Show(this);
texName.Text = "";
textPre.Text = "";
}
else
{
normar nor = new normar();
nor.textname2.Text = texName.Text;
nor.textpres2.Text = pre.ToString();
nor.Show(this);
}
}
private void label3_Click(object sender, EventArgs e)
{
private void label6_Click(object sender, EventArgs e)
{
this.Close();
}
private void label7_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
private void panelname_MouseDown(object sender, MouseEventArgs e)
{
ReleaseCapture();
SendMessage(this.Handle, 0x114, 0xf015, 0);
}
}
}
}
namespace Problema1
{
public partial class normal: Form
{
[DllImport("user32.DLL", EntryPoint = "ReleaseCapture")]
private extern static void ReleaseCapture();
[DllImport("user32.DLL", EntryPoint = "SendMessage")]
private extern static void SendMessage(System.IntPtr hWnd, int wMsg, int
wParam, int lParam);
public normar()
{
InitializeComponent();
}
private void label6_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void label3_Click(object sender, EventArgs e)
{
Productos pro = new Productos();
pro.Show(this);
}
private void label7_Click(object sender, EventArgs e)
{
this.WindowState = FormWindowState.Minimized;
private void timer1_Tick(object sender, EventArgs e)
{
private void button1_Click(object sender, EventArgs e)
{
private void panelname_MouseDown(object sender, MouseEventArgs e)
{
ReleaseCapture();
SendMessage(this.Handle, 0x114, 0xf015, 0);
}
}
}
}
namespace #1
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Productos());
}
}
}