Inheritance: IDMain, IUseable, IContextRequestable, IContextRequestableQuick, IContextRequestableText, IComponentInterface, IComponentInterface, IComponentInterface, IComponentInterface, IComponentInterface, IComponentInterface
Exemplo n.º 1
0
        private void SketchForm_Load(object sender, EventArgs e)
        {
            try
            {
                this.mapMain.ShowScrollbars        = false;
                this.mapMain.Appearance            = esriControlsAppearance.esriFlat;
                this.mapMain.AutoKeyboardScrolling = true;
                this.mapMain.AutoMouseWheel        = true;
                this.mapMain.BorderStyle           = esriControlsBorderStyle.esriNoBorder;
                this.mapMain.ShowScrollbars        = false;

                _mapOperator     = new MapOperator();
                _mapOperator.Map = mapMain.Map;

                label1.Text = "正在加载数据,请稍等.......";


                timerLoad.Interval = 1;
                WorkBench.SetSelectedPage("PageSJGL");
            }catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine(ex);
                throw new Exception(ex.ToString());
            }
        }
 void Start()
 {
     if (gameObject.GetComponentInParent <WorkBench> () != null)
     {
         currentWorkbench = gameObject.GetComponentInParent <WorkBench> ();
     }
 }
Exemplo n.º 3
0
 private void Start()
 {
     pui = GetComponentInParent <PlayerUI>();
     if (pui)
     {
         craftingTable = pui.player.usingAsset.model.GetComponent <WorkBench>();
     }
 }
Exemplo n.º 4
0
        public void ThenVerifyTheBusinessPartnerDetailsInApprovalsTabOfWorkbenchV(string nic)
        {
            Console.WriteLine("********************************************");
            WorkBench ApproveStatusChanged = new WorkBench();

            ApproveStatusChanged.ApprovalChangedStatus(nic);

            Console.WriteLine("");
        }
Exemplo n.º 5
0
        public void ThenApproveTheStatusChangedBusinessPartner(string comment)
        {
            Console.WriteLine("********************************************");
            WorkBench ApproveStatusChanged = new WorkBench();

            ApproveStatusChanged.ChangeStatusBusinessPartner(comment);

            Console.WriteLine("");
        }
Exemplo n.º 6
0
        public void ThenApproveTheUpdatedBusinessPartner(string comment)
        {
            Console.WriteLine("********************************************");
            WorkBench approval = new WorkBench();

            approval.ApproveInCentral(comment);

            Console.WriteLine("");
        }
Exemplo n.º 7
0
        public void ThenVerifyTheUpdatedBusinessPartnerDetailsInApprovalsTabOfWorkbenchV(string nic)
        {
            Console.WriteLine("********************************************");
            WorkBench approval = new WorkBench();

            approval.CheckApprovalBusinessPartner(nic);

            Console.WriteLine("");
        }
Exemplo n.º 8
0
        public void ThenVerifyTheWorkflowDataForUpdatedBusinessPartnerV(string nic)
        {
            Console.WriteLine("********************************************");
            WorkBench incompleted = new WorkBench();

            incompleted.CheckIncompletedBusinessPartner(nic);

            Console.WriteLine("");
        }
Exemplo n.º 9
0
        public void ThenVerifyTheWorkflowData(string nic)
        {
            Console.WriteLine("********************************************");
            //dynamic data = table.CreateDynamicInstance();
            WorkBench completed = new WorkBench();

            completed.GetBspId(nic);

            Console.WriteLine("");
        }
Exemplo n.º 10
0
        public void ThenVerifyTheBusinessPartnerUpdateDetailsInCompletedActivitiesV(string nic)
        {
            Console.WriteLine("********************************************");

            WorkBench Completed = new WorkBench();

            Completed.GetBspId(nic);

            Console.WriteLine("");
            Console.WriteLine("********************************************");
        }
Exemplo n.º 11
0
        public void ThenVerifyCompletedActivitiesV(string nic)
        {
            Console.WriteLine("********************************************");

            WorkBench Completed = new WorkBench();

            Completed.CompletedActivies(nic);

            Console.WriteLine("");
            Console.WriteLine("********************************************");
        }
Exemplo n.º 12
0
        public void ThenVerifyTheBusinessPartnerDetailsInCompletedActivitiesV(string nic)
        {
            Console.WriteLine("********************************************");
            Navigation complete = new Navigation();

            complete.CompletedCentral();
            WorkBench Completed = new WorkBench();

            Completed.GetBspId(nic);

            Console.WriteLine("");
        }
Exemplo n.º 13
0
    private void Awake()
    {
        if (_instance != null && _instance != this)
        {
            Destroy(this.gameObject);
        }
        else
        {
            _instance = this;
        }

        railPieceGenerator = gameObject.AddComponent <RailPieceGenerator>();
    }
Exemplo n.º 14
0
 /// <summary>
 /// 作用:动态显示地图比例尺
 /// 作者:汪建龙
 /// 编写时间:2016年12月27日14:08:11
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mapMain_OnExtentUpdated(object sender, IMapControlEvents2_OnExtentUpdatedEvent e)
 {
     try
     {
         string scale = Math.Round(mapMain.ActiveView.FocusMap.MapScale, 3).ToString("f2");
         WorkBench.SetStatusBarValue("Scale", string.Format("比例尺:1:{0}", scale));
     }
     catch (Exception ex)
     {
         WorkBench.SetStatusBarValue("Scale", "");
         System.Diagnostics.Trace.WriteLine(ex);
     }
 }
Exemplo n.º 15
0
        /// <summary>
        /// 作用:地图选中要素事件
        /// 作者:汪建龙
        /// 编写时间:2016年12月23日10:34:00
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mapMain_OnSelectionChanged(object sender, EventArgs e)
        {
            IMap map = mapMain.Map;

            if (map.SelectionCount > 0)
            {
                WorkBench.SetStatusBarValue("Message", string.Format("选中{0}个要素", map.SelectionCount));
            }
            else
            {
                WorkBench.SetStatusBarValue("Message", "");
            }
        }
Exemplo n.º 16
0
 /// <summary>
 /// 作用:当鼠标在地图上移动时,动态实时显示坐标信息
 /// 作者:汪建龙
 /// 编写时间:2016年12月23日09:32:55
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void mapMain_OnMouseMove(object sender, IMapControlEvents2_OnMouseMoveEvent e)
 {
     try
     {
         double xTemp = Math.Round(e.mapX, 4);
         double yTemp = Math.Round(e.mapY, 4);
         WorkBench.SetStatusBarValue("PointXY", string.Format("X={0},Y={1}", xTemp.ToString("f3"), yTemp.ToString("f3")));
     }catch (Exception ex)
     {
         WorkBench.SetStatusBarValue("PointXY", "未知错误");
         System.Diagnostics.Trace.Write(ex);
     }
 }
Exemplo n.º 17
0
        public void ThenVerifyTheBusinessPartnerDetailsInIncompletedWorkbenchV(string nic)
        {
            Console.WriteLine("********************************************");
            Navigation IncompletedWorkbench = new Navigation();

            IncompletedWorkbench.WorkBenchIncompleted();

            WorkBench CheckIncompletedBSDData = new WorkBench();

            CheckIncompletedBSDData.CheckIncompletedBusinessPartner(nic);

            Console.WriteLine("");
        }
        /// <summary>
        /// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        /// </summary>
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            //Start the configuration on WorkBench
            WorkBench.UseTelemetry <AppInsights>();
            WorkBench.UseRepository <CosmosDB>();
            WorkBench.UseMessageBus <ServiceBus>();

            app.UseWorkBench();

            app.UseMvc();
        }
Exemplo n.º 19
0
        /// <summary>
        /// While in abstract layer, this method calls the LightEvent per CRUD operations in repository
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="model"></param>
        /// <param name="dataOperation"></param>
        /// <returns></returns>
        public static Task RaiseEvent <T>(T model, string dataOperation)
        {
            try
            {
                LightEvent Event = (LightEvent)WorkBench.GetRegisteredService(WorkBenchServiceType.EventHandler);

                if (Event != null)
                {
                    Event.SendToHub(model, dataOperation);
                }
            }
            catch (Exception exRegister)
            {
                ((LightTelemetry)WorkBench.Telemetry).TrackException(exRegister);
            }

            return(Task.FromResult <T>(default(T)));
        }
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseHsts();
            }

            WorkBench.UseTelemetry <AppInsights>();
            WorkBench.UseRepository <CosmosDB>();
            WorkBench.UseMessageBus <ServiceBus>();

            app.UseWorkBench();

            app.UseHttpsRedirection();
            app.UseMvc();
        }
 public override void OnClick()
 {
     try
     {
         SketchForm sketchForm = WorkBench.FindDocument <SketchForm>();
         if (sketchForm == null)
         {
             sketchForm = WorkBench.ShowDocument <SketchForm>();
             if (PubishFunction.LoadDataState)
             {
                 sketchForm.LoadMapData();
             }
         }
         else
         {
             sketchForm.Activate();
         }
     }catch (Exception ex)
     {
         throw new Exception(ex.ToString());
     }
 }
Exemplo n.º 22
0
        /// <summary>
        /// Returns the first item you can build, if any.
        /// </summary>
        /// <returns></returns>
        internal Type GetBuildableType(WorkBench workBench)
        {
            if (workBench.CanAssemble(typeof(PowerCube), this))
            {
                return(typeof(PowerCube));
            }
            else if (workBench.CanAssemble(typeof(GlassCube), this))
            {
                return(typeof(GlassCube));
            }
            else if (workBench.CanAssemble(typeof(PositronEmitter), this))
            {
                return(typeof(PositronEmitter));
            }
            else if (workBench.CanAssemble(typeof(AntimatterCoil), this))

            {
                return(typeof(AntimatterCoil));
            }

            return(null);
        }
Exemplo n.º 23
0
        /// <summary>
        /// Activates the WorkBench and the middleware of its services previously initiatedB.
        /// </summary>
        /// <param name="builder">The builder of the core application</param>
        /// <returns>The builder of the core application</returns>
        public static IApplicationBuilder UseWorkBench(this IApplicationBuilder builder)
        {
            //Inject telemetry middleware according to ILightTelemetry type informed in WorkBench.UseTelemetry<T>(), being it either AMAW's or custom.
            Object telemetryService = WorkBench.GetRegisteredService(WorkBenchServiceType.Telemetry);

            //If a ILightTelemetry type was injected then injects its related middleware
            if (telemetryService != null)
            {
                builder.UseTelemetry();
            }

            // Inject Swagger for all microservices
            builder.UseOpenApiSwagger();
            builder.UseOpenApiConventions();

            //Inject ByPass Auth and MVC Authentication
            builder.UseByPassAuth();
            builder.UseAuthentication();

            //Inject to UseCors on the WorkBench
            builder.UseCrossOrigin();

            // Enables Json localization
            builder.AddLocalization();

            /////Adicionando o serviço de Health Check
            builder.UseHealthCheck();

            // Inject Model Specification middleware
            builder.UseModelSpecification();

            //Inject Polly framework, to Resilience.
            WorkBench.Polly = WorkBench.Polly ?? new Runtime.Polly.Polly();

            //Always injects the InputValidation middleware
            return(builder.UseMiddleware <MiddlewareInputValidation>());
        }
Exemplo n.º 24
0
    //! Actions by clicking on an item.
    /*! If the application is "lab_workBench", remove reagent liquid from inventory, else if the liquid is in inventory, set the name and the concentration. */
    public void MsgMouseDown()
    {
        if (Application.loadedLevelName == "lab_workBench")
        {
            WorkBench wb = FindObjectOfType(typeof(WorkBench)) as WorkBench;
            Enable();
            inventory.RemoveReagentLiquid(this);
//			wb.useSlot(this, null); //TODO descomentar isso, fazendo as alteraçoes necessarias no workbench
        }
        else
        {
            MachineBehaviour machine = FindObjectOfType(typeof(MachineBehaviour)) as MachineBehaviour;

            if (machine != null && inventory)
            {
                if (machine.textResult != null)
                {
                    machine.textResult.text = "waiting";
                }
                machine.actualReagent       = info.Formula;
                machine.actualConcentration = concentration;
            }
        }
    }
Exemplo n.º 25
0
 public void SetWorkbench(WorkBench workbenchObj)
 {
     this._myWorkBench = workbenchObj;
     this.Initialize();
 }
Exemplo n.º 26
0
    void Controll()
    {
        GameMng.instance.PressE.SetActive(false);
        RaycastHit hitinfo;
        bool       israyhit = Physics.Raycast(Camera.main.transform.position, Camera.main.transform.forward, out hitinfo, 8.0f);

        if (PlayerType == PLAYERTYPE.HEALER && Input.GetKeyDown(KeyCode.Mouse0) && israyhit)
        {
            if (hitinfo.transform.gameObject.CompareTag("Player"))
            {
                HealTarget = hitinfo.transform.gameObject;
            }
        }

        if (Input.GetKeyDown(KeyCode.F))
        {
            CmdSetFlash(!FlashActive);
        }


        if (!isOtherInvOn && !isWorkBenchOn)
        {
            if (!isInvOn)
            {
                if (Input.GetKeyDown(KeyCode.Q))
                {
                    OpenInventory();
                }
            }
            else if (Input.GetKeyDown(KeyCode.Q) || Input.GetKeyDown(KeyCode.Escape))
            {
                CloseInventory();
            }
        }
        if (!isInvOn)
        {
            if (!isWorkBenchOn)
            {
                if (israyhit)
                {
                    workbench = hitinfo.transform.GetComponent <WorkBench>();
                    if (workbench != null)
                    {
                        GameMng.instance.PressE.SetActive(true);
                        if (Input.GetKeyDown(KeyCode.E))
                        {
                            isWorkBenchOn = true;
                            workbench.OpenWorkBech();
                        }
                    }
                }
            }
            else
            {
                if ((Input.GetKeyDown(KeyCode.E) || Input.GetKeyDown(KeyCode.Escape)) && workbench != null)
                {
                    isWorkBenchOn = false;
                    workbench.CloseWorkBech();
                }
            }
        }

        if (!isOtherInvOn)
        {
            if (israyhit)
            {
                otherInventory = hitinfo.transform.GetComponent <OtherInventory>();
                if (otherInventory != null && otherInventory.enabled)
                {
                    GameMng.instance.PressE.SetActive(true);
                    if (Input.GetKeyDown(KeyCode.E))
                    {
                        isOtherInvOn         = true;
                        otherinventoryobject = hitinfo.transform.gameObject;
                        OpenOtherInventory(otherinventoryobject);
                    }
                }
            }
        }
        else
        {
            if ((Input.GetKeyDown(KeyCode.E) || Input.GetKeyDown(KeyCode.Escape)) && otherInventory != null)
            {
                isOtherInvOn = false;
                CloseOtherInventory(otherinventoryobject, inventory.gameObject);
                if (otherInventory.OpenToDestroy)
                {
                    Destroy(otherInventory.gameObject);
                }
            }
        }

        if (isInvOn || isWorkBenchOn || isWorkBenchOn)
        {
            return;
        }

        if (Input.GetKeyDown(KeyCode.Mouse0) && PlayerState == (PlayerState | PLAYERSTATE.ZOOM))
        {
            Shoot(Camera.main.transform.position, Camera.main.transform.forward);
        }

        for (KeyCode k = KeyCode.Alpha1; k < KeyCode.Alpha6; k++)
        {
            if (Input.GetKeyDown(k))
            {
                playerstatus.setEquipItem((int)k - 49);
            }
        }

        Item eitem = inventory.UIInventory.getItemByNum(playerstatus.EquipItem + 30);

        if (israyhit && eitem != null)
        {
            barrier = hitinfo.transform.GetComponent <Barrier>();

            Door door = hitinfo.transform.GetComponent <Door>();
            if (door != null && Input.GetMouseButtonDown(1))
            {
                CmdOpenCloseDoor(door.gameObject);
            }

            if (eitem.id == 25 &&
                Input.GetMouseButtonDown(0))
            {
                inventory.UIInventory.DestroyItem(inventory.UIInventory.getItemByNum(30 + playerstatus.EquipItem), 1);
                SpawnCampFire(hitinfo.point + (Vector3.one / 2.0f));
                clearmng.setCampFirePlant();
            }

            if (barrier != null &&
                barrier.isBroken &&
                ItemDatabase.instance.Items[eitem.id].itemType == ItemDatabase.ItemType.RepairMaterial &&
                barrier.gameObject.CompareTag("Window"))
            {
                barrier.meshrenderer.material = GameMng.instance.RepairMaterials[eitem.id - 13];
                barrier.isPreview             = true;
                if (Input.GetMouseButtonDown(0))
                {
                    inventory.UIInventory.DestroyItem(inventory.UIInventory.getItemByNum(30 + playerstatus.EquipItem), 1);
                    CmdSetNewBarrier(barrier.gameObject, eitem.id - 13);
                }
            }

            if (eitem.id == 26 && Input.GetMouseButtonDown(0))
            {
                inventory.UIInventory.DestroyItem(inventory.UIInventory.getItemByNum(30 + playerstatus.EquipItem), 1);
                CmdSetRadio(hitinfo.point + (Vector3.one / 2.0f));
                clearmng.setRadio();
            }
        }

        if ((Input.GetKeyDown(KeyCode.Space) || Input.GetAxis("Mouse ScrollWheel") > 0f) && isGround)
        {
            JumpFlag = true;
        }

        foreach (var item in FindObjectsOfType <Barrier>())
        {
            item.isPreview = false;
        }
    }
Exemplo n.º 27
0
 internal void CreateWorkBench()
 {
     this.WorkBench = new WorkBench();
 }
Exemplo n.º 28
0
    public void GenerateCraftingList()
    {
        playerUsing.pui.UpdateCraftingPanelScroll(true);
        WorkBench station = playerUsing.usingAsset.model.GetComponent <WorkBench>();

        playerUsing.pui.craftingPanel.SetActive(true);
        playerUsing.pui.craftingPanel.transform.Find("Title").GetComponent <TextMeshProUGUI>().text = "Assembly Blueprints";
        Button b = playerUsing.pui.craftingPanel.GetComponentInChildren <Button>();

        foreach (Button butt in b.transform.parent.GetComponentsInChildren <Button>())
        {
            if (butt == b)
            {
                continue;
            }
            Destroy(butt.gameObject);
        }
        if (station.blueprintsUnlocked)
        {
            foreach (AssetData d in C.c.data.assetData)
            {
                if (d.workbenchNeeded != station.type || d.craftingMaterials.Count == 0)
                {
                    continue;
                }
                var newButton = Instantiate(b, b.transform.parent);
                if (d.craftingOutput == 1)
                {
                    newButton.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text = d.name;
                }
                else
                {
                    newButton.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text = d.name + " (" + d.craftingOutput + ")";
                }
                newButton.GetComponent <CraftingButton>().craftBlueprintData = d;
            }
            Destroy(b.gameObject);
        }
        else if (C.c.data.craftingBlueprintList.Count > 0)
        {
            foreach (AssetData d in C.c.data.craftingBlueprintList)
            {
                if (d.workbenchNeeded != station.type)
                {
                    continue;
                }
                var newButton = Instantiate(b, b.transform.parent);
                if (d.craftingOutput == 1)
                {
                    newButton.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text = d.name;
                }
                else
                {
                    newButton.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text = d.name + " (" + d.craftingOutput + ")";
                }
            }
            Destroy(b.gameObject);
        }
        else
        {
            b.transform.GetChild(0).GetComponent <TextMeshProUGUI>().text = "No Assembly Blueprints";
        }
    }
Exemplo n.º 29
0
        public void ThenVerifiedThatComapnyDBDataInCompletedActivitiesOfWorkbenchMAAA(string br)
        {
            WorkBench completed = new WorkBench();

            completed.CompanyCompletedActivities(br);
        }
Exemplo n.º 30
0
 public void SetWorkbench(WorkBench workbenchObj)
 {
     this._myWorkBench = workbenchObj;
     this.Initialize();
 }
Exemplo n.º 31
0
 /// <summary>
 /// Initializes selected cartridges for WorkBench
 /// </summary>
 public static void ConfigureWorkBench()
 {
     WorkBench.UseTelemetry <AppInsights>();
     WorkBench.UseEnventHandler <AzureEventHub>();
 }