I MADE A PROGRAM IN WHICH I DIVIDED THE PROGRAM INTO 3PARTS.
1.BUSINESS LOGIC
2.PRESENTATION LOGIC
3.PROGRAM.CS
bt1 = new Button();
bt1.Text = "OK";
bt1.Location = new Point(50, 90);
.......................bt1.Click += bt1_Click;........................
bt2 = new Button();
bt2.Text = "CANCEL";
bt2.Location = new Point(140, 90);
...................bt2.Click += bt2_Click;...................
THIS BUTTON bt1.click and bt2.click function
void bt2_Click(object sender, EventArgs e)
{
Application.Exit();
}
void bt1_Click(object sender, EventArgs e)
{
Process.Start(tb1.Text);
}
}
}
this function should appear in business logic page but its coming in presentation logic page
WHAT TO DO????