public Plane()
 {
     onBoard = new OnBoard()
     {
         CoupleOfChairs = 0, LightObj = new OnBoard.Light()
         {
             LightPower = 0
         }
     };
 }
        public OnBoard GetOnBoard(int id)
        {
            OnBoard nOnboard = new OnBoard();

            nOnboard.imageSource = "obs" + (id + 1).ToString() + ".png";
            switch (id)
            {
            case 0:
                nOnboard.imageDescription = "Use the top left icon to open the event menu, use the top right icon to open event selection page. ";    //"Use hamburger icon to access event menu.<br>Use dotted menu to access all events panel <br>";
                nOnboard.imageHeader      = "Navigation Bar";
                nOnboard.buttonText       = "Next";
                break;

            case 1:
                nOnboard.imageDescription = "All the available events are shown on this screen. Select one of them to access.";
                nOnboard.imageHeader      = "Event Selection";
                nOnboard.buttonText       = "Next";
                break;

            case 2:
                nOnboard.imageDescription = "This is the event menu, here you can access your settings, notes, bookmarks and also look at other registered users. You can also access relative information of the selected event.";
                nOnboard.imageHeader      = "Event Menu";
                nOnboard.buttonText       = "Next";
                break;

            case 3:
                nOnboard.imageDescription = "Click on the star to bookmark sessions, speakers etc.";
                nOnboard.imageHeader      = "Bookmark";
                nOnboard.buttonText       = "Next";
                break;

            case 4:
                nOnboard.imageDescription = "All of your bookmarks can be accessed here.";
                nOnboard.imageHeader      = "Your Bookmarks";
                nOnboard.buttonText       = "Finish";
                break;
            }
            return(nOnboard);
        }
示例#3
0
 private void Awake()
 {
     Instance = this;
     Turn     = transform.parent.GetChild(1).GetComponent <Text>();
     StepText = transform.parent.GetChild(2).GetComponent <Text>();
     MathText = transform.parent.GetChild(3).GetComponent <Text>();
     for (int i = 0, count = 0; i < 8; i++)
     {
         for (var j = 0; j < 8; j++)
         {
             Board[i, j] = transform.GetChild(count++).gameObject;
             Board[i, j].GetComponent <OnClickBoard>().X = i;
             Board[i, j].GetComponent <OnClickBoard>().Y = j;
             var chess = Board[i, j].GetComponentInChildren <ChessMen>();
             if (chess)
             {
                 chess.X = i;
                 chess.Y = j;
                 AllChess.Add(chess);
             }
         }
     }
 }
        public async Task <Guid> Post(OnBoard onBoard)
        {
            var activationContext = FabricRuntime.GetActivationContext();

            string applicationInstance = "ServiceFabricPoc.BottleFiller";

            var serviceUri = new Uri("fabric:/" + applicationInstance + "/" + BottleFillerServiceName);

            Guid fillerId = Guid.NewGuid();

            //We create a unique Guid that is associated with a customer order, as well as with the actor that represents that order's state.
            IBottleFillerActor bottleFiller = ActorProxy.Create <IBottleFillerActor>(new ActorId(fillerId), serviceUri);

            var message = new OnBoardMessage()
            {
                Id           = onBoard.Id,
                OnBoardUser  = onBoard.OnBoardUser,
                SerialNumber = onBoard.SerialNumber
            };

            await bottleFiller.OnBoard(message);

            return(fillerId);
        }