Example #1
0
 public Form1()
 {
     InitializeComponent();
     MenuMaker menu = new MenuMaker() { Randomizer = new Random() };
     label1.Text = menu.GetMenuItem();
     label2.Text = menu.GetMenuItem();
     label3.Text = menu.GetMenuItem();
     label4.Text = menu.GetMenuItem();
     label5.Text = menu.GetMenuItem();
     label6.Text = menu.GetMenuItem();
 }
Example #2
0
        public Form1()
        {
            InitializeComponent();

            //MenuMaker Menu = new MenuMaker() { Randomizer = new Random() };
            MenuMaker Menu = new MenuMaker();

            label1.Text = Menu.GetMenuItem();
            label2.Text = Menu.GetMenuItem();
            label3.Text = Menu.GetMenuItem();
            label4.Text = Menu.GetMenuItem();
            label5.Text = Menu.GetMenuItem();
            label6.Text = Menu.GetMenuItem();
        }
Example #3
0
        public MainForm()
        {
            InitializeComponent();

            MenuMaker menu = new MenuMaker()
            {
                Randomizer = new Random()
            };

            label1.Text = menu.GetMenuItem();
            label2.Text = menu.GetMenuItem();
            label3.Text = menu.GetMenuItem();
            label4.Text = menu.GetMenuItem();
            label5.Text = menu.GetMenuItem();
            label6.Text = menu.GetMenuItem();
        }
        private void newMenu_Click(object sender, RoutedEventArgs e)
        {
            MenuMaker menuMaker = FindResource("menuMaker") as MenuMaker;

            menuMaker.UpdateMenu();
        }