Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Net.Sockets;
- using System.Net;
- using System.Windows.Input;
- namespace TestApp1
- {
- class MenuEntrys
- {
- public int id { get; set; }
- public string name;
- public string Name
- {
- get { return name; }
- set { name = value; }
- }
- public MenuEntrys()
- {
- this.id = identificator;
- this.name = "Entry " + this.id;
- this.selected = false;
- identificator++;
- numOfEntries++;
- }
- public MenuEntrys(string name)
- {
- this.id = identificator;
- this.name = name;
- this.selected = false;
- identificator++;
- numOfEntries++;
- }
- static int numOfEntries = 0;
- static int identificator = 0;
- public static int getCount()
- {
- return numOfEntries;
- }
- public bool selected
- {
- get { return selected; }
- set { selected = value; }
- }
- public void select()
- {
- this.selected = !this.selected;
- }
- public int getId()
- {
- return this.id;
- }
- }
- class Program
- {
- static void mainMenu()
- {
- MenuEntrys start = new MenuEntrys("StartGame");
- }
- static void Main(string[] args)
- {
- mainMenu();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement