Exemplo n.º 1
0
 public ClientStructures()
 {
     SlotSon = new SlotViewJson();
     MsgSon  = new MsgViewJson();
     MenuSon = new MenuViewJson();
     GameSon = new GameViewJson();
 }
Exemplo n.º 2
0
        private void Click_Start(object sender, RoutedEventArgs e)
        {
            MenuViewJson MenuCopy = MenuViewModel.MainMenu;

            if (MainWindow.PlayerName == SlotViewModel.SlotJson.Left.Nick)
            {
                MenuCopy.LeftPlayer.Accept = true;
            }
            else if (MainWindow.PlayerName == SlotViewModel.SlotJson.Right.Nick)
            {
                MenuCopy.RightPlayer.Accept = true;
            }
            MenuViewModel.MainMenu = MenuCopy;

            BaseJson <MenuViewJson> JSON = new BaseJson <MenuViewJson>();

            string msg = JSON.Serializer(MenuViewModel.MainMenu);

            CoreClientConnect.ConnCommand(5, msg);
        }
 public StartGameDialog(MenuViewJson _menuMain)
 {
     _MenuMain = _menuMain;
     InitializeComponent();
     TimeOutMethod();
 }
Exemplo n.º 4
0
 public MenuViewModel()
 {
     _mainMenu = new MenuViewJson();
 }