Advertisement
aslen

Untitled

May 7th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.26 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 Menu
  12. {
  13.     public partial class Form1 : Form
  14.     {
  15.         private int counterEntrance = 1;
  16.         public Form1()
  17.         {
  18.             InitializeComponent();
  19.         }
  20.  
  21.         private void newFileToolStripMenuItem_Click(object sender, EventArgs e)
  22.         {
  23.             this.Text = "New file";
  24.         }
  25.  
  26.         private void closeToolStripMenuItem_Click(object sender, EventArgs e)
  27.         {
  28.             MessageBox.Show("Are you sure you want to exit?");
  29.             Close();
  30.         }
  31.  
  32.         private void openFileToolStripMenuItem_Click(object sender, EventArgs e)
  33.         {
  34.             MessageBox.Show("Open new file");
  35.         }
  36.  
  37.         private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
  38.         {
  39.             toolsToolStripMenuItem.Text = "My tools";
  40.         }
  41.  
  42.         private void countToolStripMenuItem_Click(object sender, EventArgs e)
  43.         {
  44.             countToolStripMenuItem.Text = "Count passage to program " + counterEntrance;
  45.             counterEntrance++;
  46.         }
  47.     }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement