Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace test2
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void button1_Click(object sender, EventArgs e)
- {
- // textBox1.Text = Convert.ToString(calculate(1, 1));
- }
- private int calculate(int varOne, int varTwo)
- {
- int varThree;
- varThree = varOne + varTwo;
- return varThree;
- }
- private void alert(string text)
- {
- MessageBox.Show(text);
- }
- private void button2_Click(object sender, EventArgs e)
- {
- alert("Pling!");
- }
- }
- }
Add Comment
Please, Sign In to add comment