Пример #1
0
        /// <summary>
        /// 检测释放面板资源
        /// </summary>
        internal static void CheckRelease(UILogic uiLogic)
        {
            if (uiLogic.Properties.HasProperty(UIProperties.DontRelease) || null != uiLogic.Parent)
            {
                return;
            }

            removeList.Clear();
            addDict.Clear();
            if (false == checkReleaseDict.ContainsKey(uiLogic))
            {
                checkReleaseDict[uiLogic] = 0;
            }

            foreach (KeyValuePair <UILogic, int> item in checkReleaseDict)
            {
                CheckUILogicCanRelease(item.Key);
            }

            foreach (KeyValuePair <UILogic, int> item in addDict)
            {
                checkReleaseDict[item.Key] = item.Value;
            }

            Release();
        }
Пример #2
0
 private void InferSelectedItem()
 {
     if (ui.GoalTabPane.gameObject.activeSelf)
     {
         selectedItem = ui.GoalTabPane;
     }
     else if (ui.ControlTabPane.gameObject.activeSelf)
     {
         selectedItem = ui.ControlTabPane;
     }
     else if (ui.TurnsTabPane.gameObject.activeSelf)
     {
         selectedItem = ui.TurnsTabPane;
     }
     else if (ui.UnitsTabPane.gameObject.activeSelf)
     {
         selectedItem = ui.UnitsTabPane;
         unitSelection.Enter();
     }
     else
     {
         selectedItem = ui.GoalTabPane;
         selectedItem.gameObject.SetActive(true);
     }
 }
Пример #3
0
 internal void RemoveChild(UILogic child)
 {
     if (m_childList.Contains(child) == true)
     {
         m_childList.Remove(child);
     }
 }
Пример #4
0
 static void ReleaseUILogic(UILogic tempUILogic)
 {
     //if (null != tempUILogic.mainPanel)
     //{
     tempUILogic.ReleaseResources();
     //}
 }
Пример #5
0
 internal void AddChild(UILogic child)
 {
     if (m_childList.Contains(child) == false)
     {
         m_childList.Add(child);
     }
 }
Пример #6
0
        public void Setup()
        {
            GameObject qaGameObject = MonoBehaviour.Instantiate(Resources.Load <GameObject>("Prefabs/Logic/QuestionGenerator"));

            questionGenerator = qaGameObject.GetComponent <QuestionGenerator>();
            GameObject characterObject = MonoBehaviour.Instantiate(Resources.Load <GameObject>("Prefabs/Character"));

            character = characterObject.GetComponent <CharacterLogic>();
            GameObject globalObject = MonoBehaviour.Instantiate(Resources.Load <GameObject>("Prefabs/Logic/GlobalState"));

            global = globalObject.GetComponent <GameLogic>();
            GameObject canvasObject = MonoBehaviour.Instantiate(Resources.Load <GameObject>("Prefabs/Logic/Canvas"));

            canvas                    = canvasObject.GetComponent <UILogic>();
            canvas.global             = globalObject;
            canvas.currentFriendIndex = -1;
            canvas.currentEnemyIndex  = -1;
            global.uiLogic            = canvasObject;
            global.isTestMode         = true;
            global.isGuestMode        = true;
            global.setupGame(false);
            character.global = globalObject;
            InputField questionInputField = GameObject.Instantiate(Resources.Load <InputField>("Prefabs/QuestionInputField"));

            global.inputField = questionInputField;
        }
Пример #7
0
        static void CheckUILogicCanRelease(UILogic item)
        {
            GameObject go = item.MyGameObject;

            if (null != go)
            {
                if (false == go.activeSelf)
                {
                    addDict.Add(item, checkReleaseDict[item] + 1);
                    if (addDict[item] > 2)
                    {
                        removeList.Add(item);
                    }
                }
                else
                {
                    addDict.Add(item, 0);//重置
                    removeList.Remove(item);
                }
            }
            else
            {
                //走到这里证明面板已经被其他手段给卸载掉了
                removeList.Add(item);
            }
        }
Пример #8
0
        public bool RunWizard()
        {
            this.runCallCount++;
            Assert.AreEqual <int>(1, this.runCallCount, "Run form must only ever be called once");
            Assert.IsNotNull(this.WizardCompleting);
            if (this.runWizardThrowsException)
            {
                throw new UserException("RunWizard exception");
            }

            if (Executable != null)
            {
                dataToReturn = new WizardData();
                dataToReturn.Configuration = new WcfUnitConfiguration();
                UILogic uiLogic = new UILogic();
                using (ScenarioRunManager srm = new ScenarioRunManager())
                {
                    uiLogic.RunProgramAndGetWizardData(Executable, srm, dataToReturn);
                }
            }

            if (resultToReturn)
            {
                CancellableWizardEventArgs cancel = new CancellableWizardEventArgs(dataToReturn, false);
                this.WizardCompleting(this, cancel);
                if (cancel.Cancel)
                {
                    resultToReturn = false;
                }
            }

            return(resultToReturn);
        }
Пример #9
0
    public void OpenUI(string uiName, string groupName, string luaName)
    {
        // Awake的模拟
        // 要打开一个UI时先判断UI池中是否存在这个UI,如果有直接打开,如果没有先创建
        GameObject go      = null;
        string     uiPath  = PathUtil.GetUIPath(uiName);
        Object     uiObj   = Manager.Pool.Spawn("UI", uiPath);
        UILogic    uiLogic = null;

        if (uiObj != null)
        {
            go      = uiObj as GameObject;
            uiLogic = go.GetComponent <UILogic>();
            Transform parent = GetUIGroup(groupName);
            go.transform.SetParent(parent, false);
            uiLogic.OnOpen();           // Start
            return;
        }
        Manager.Resource.LoadUI(uiName, (UnityEngine.Object obj) =>
        {
            go = Instantiate(obj) as GameObject;
            Transform parent = GetUIGroup(groupName);
            go.transform.SetParent(parent, false);
            // m_UI.Add(uiName,go);
            uiLogic        = go.AddComponent <UILogic>();
            uiLogic.UIName = uiPath;
            uiLogic.Init(luaName);
            uiLogic.OnOpen();          // Start
        });
    }
Пример #10
0
 public ResultPage(Session session)
 {
     _session = session;
     // Result.Text = "Вы правильно ответили на "+ session.Score +" вопросов из 24";
     UILogic.CreateSession(session.User, session.Package, session.Score);
     InitializeComponent();
     PleaseWork.Content = "Вы правильно ответили на " + _session.Score + " вопросов из 24";
 }
Пример #11
0
    void Awake()
    {
        Camera.main.orthographicSize = UILogic.GetLinearInterpForScreen(dev16Over9Size, dev4Over3Size, true);
        float cameraOffsetForMapBottom = UILogic.GetLinearInterpForScreen(dev16Over9MapBottomOffset, dev4Over3MapBottomOffset, true);

        Camera.main.transform.localPosition    = new Vector3(0, cameraOffsetForMapBottom, 0);
        BattleInstance.instance.BaseStartpoint = cameraOffsetForMapBottom;
    }
 public VisualProfilerUIView()
 {
     if (Application.ResourceAssembly == null)
     {
         Application.ResourceAssembly = typeof(MainWindow).Assembly;
     }
     EnsureWPFToolKitDllLoads();
     InitializeComponent();
     _uiLogic = new UILogic();
 }
        private void OnMethodClick(UILogic uiLogic, MethodViewModel mvm)
        {
            string sourcePath = uiLogic.GetSourceFilePathForMethod(mvm);

            _dte.ItemOperations.OpenFile(sourcePath);


            //TODO when the adornment layer is stable, enable this line moving.
            //var firstLineOfMethod = uiLogic.GetFirstLineOfMethod(mvm);
            //var commandName = "Edit.GoTo " + firstLineOfMethod;
            //_dte.ExecuteCommand(commandName);
        }
Пример #14
0
    /// <summary>
    /// State exit event. Hides view elements.
    /// </summary>
    public override void Exit()
    {
        ui.Hide();
        DetachEventHandlers();
        if (selectedItem == ui.UnitsTabPane)
        {
            unitSelection.Exit();
        }

        selectedItem = null;
        ui           = null;
        base.Exit();
    }
Пример #15
0
        public PackPage(User user)
        {
            InitializeComponent();
            _user = user;
            var testrepo = new DBRepository();

            dBRepository = testrepo;
            testrepo.LoadData();
            UILogic.AdaptPacksForUser(user, testrepo.Packages);
            PackList.ItemsSource     = testrepo.Packages;
            PointsList.ItemsSource   = UILogic.GetScores(user, testrepo.Packages);
            CheckBoxList.ItemsSource = testrepo.Packages;;
        }
Пример #16
0
        private void RenderCustomerAddressPanel(ComponentController paComponentController, OrderInfoRow paOrderInfoRow)
        {
            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCustomerInfoPanel);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSBriefInfoDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSNameDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(paOrderInfoRow.Name);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSContactNoDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(paOrderInfoRow.ContactNo);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSShortAddressDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);
            paComponentController.Write(UILogic.CompileShortAddress(paOrderInfoRow.Row));
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSButtonDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDShowDetail);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICODownChevron));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Href, ctCMDHideDetail);
            paComponentController.AddAttribute(HtmlAttribute.Src, ResourceManager.GetInstance().GetFoundationIconUrl(ctICOUpChevron));
            paComponentController.RenderBeginTag(HtmlTag.Img);
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.AddAttribute(HtmlAttribute.Class, ctCLSCompleteInfoDiv);
            paComponentController.RenderBeginTag(HtmlTag.Div);

            paComponentController.RenderBeginTag(HtmlTag.Span);
            paComponentController.Write(UILogic.CompileAddress(paOrderInfoRow.Row));
            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();

            paComponentController.RenderEndTag();
        }
        private void StartProfiler(ProfilerTypes profilerType)
        {
            try
            {
                bool buildSuccedded = StartBuild();
                if (!buildSuccedded)
                {
                    throw new Exception("Could not build the solution.");
                }

                Project startUpProject = GetStartUpProject();
                if (startUpProject == null)
                {
                    throw new Exception("Could not locate a startUp project.");
                }

                string assemblyPath = GetOutputAssemblyPath(startUpProject);
                if (string.IsNullOrEmpty(assemblyPath))
                {
                    throw new Exception("Could not locate the output assembly.");
                }
                if (Path.GetExtension(assemblyPath) != ".exe")
                {
                    throw new Exception("The output of the startUp project is not an executable.");
                }
                if (!File.Exists(assemblyPath))
                {
                    throw new Exception("The output executable file could not be found.");
                }

                _window = this.FindToolWindow(typeof(VisualProfilerToolWindow), 0, true) as VisualProfilerToolWindow;
                if ((null == _window) || (null == _window.Frame))
                {
                    throw new NotSupportedException("Cannot create a window.");
                }

                UILogic uiLogic = _window.VisualProfilerUIView.UILogic;
                _window.VisualProfilerUIView.UILogic.MethodClick += mvm => OnMethodClick(uiLogic, mvm);
                _window.VisualProfilerUIView.Profile(profilerType, assemblyPath);
                _window.VisualProfilerUIView.DataUpdate += ContainingUnitView.UpdateDataOfContainingUnits;
                _window.Caption = string.Format("Visual Profiler - {0} Mode", GetModeString(profilerType));
                IVsWindowFrame windowFrame = (IVsWindowFrame)_window.Frame;
                ErrorHandler.ThrowOnFailure(windowFrame.Show());
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "Profiler initialization failed.", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
Пример #18
0
 void Start()
 {
     instance = this;
     inPlay.AddRange(GameLogic.instance.one.pieces);
     inPlay.AddRange(GameLogic.instance.two.pieces);
     foreach (Piece item in inPlay)
     {
         if (!needed.Contains(item.title))
         {
             needed.Add(item.title);
             forUI.Add(item);
         }
     }
     generateCaptureButtons();
 }
Пример #19
0
 private void SelectItem(UILogic item)
 {
     if (selectedItem != item)
     {
         if (selectedItem == ui.UnitsTabPane)
         {
             unitSelection.Exit();
         }
         selectedItem.gameObject.SetActive(false);
         selectedItem = item;
         selectedItem.gameObject.SetActive(true);
         if (selectedItem == ui.UnitsTabPane)
         {
             unitSelection.Enter();
         }
     }
 }
Пример #20
0
        static void ShowUIHandler(UILogic ui, Action callback, object[] param, bool isShowWaitingTip)
        {
            m_uiHandler.Add(ui);

            CheckRelease(ui);
            UpdateCameraStatus();
            //if (isShowWaitingTip)
            //    EventDispatcher.TriggerEvent(MogoGlobleUIManagerEventsEx.ShowWaitingTip, true);
            ui.ShowWindow(param,
                          () =>
            {
                m_data.CurrentMainUI = ui;
                callback.SafeInvoke();
                //if (isShowWaitingTip)
                //    EventDispatcher.TriggerEvent(MogoGlobleUIManagerEventsEx.ShowWaitingTip, false);
            });
        }
Пример #21
0
 public override void Awake()
 {
     base.Awake();
     Settings.directionalLight2DStartingIntensity = directionalLight2D.intensity;
     Settings.directionalLightStartingIntensity   = directionalLight.intensity;
     skyboxMaterial.SetFloat(ExposureVar, Settings.startSkyboxMaterialExposure);
     uiLogic     = UILogic.instance;
     subStartPos = Sub.instance.transform.position;
     ambiencePlayerAboveSurface.SetActive(true);
     foreach (Light light in spotLights)
     {
         light.enabled = false;
     }
     foreach (Light2D light in spotLights2D)
     {
         light.enabled = false;
     }
 }
Пример #22
0
    private void Awake()
    {
        if (Instance != null)
        {
            Debug.LogError("Duplicate UILogic instance");
            return;
        }

        if (GameUI != null)
        {
            Confertable = GameUI.GetComponentInChildren <ConfertableUI>();
            Energy      = GameUI.GetComponentInChildren <EnergyUI>();
            countdown   = GameUI.GetComponentInChildren <CountDown>();
            gameover    = GameUI.GetComponentInChildren <GameOver>();
        }

        Instance = this;
    }
Пример #23
0
        static MapTypeUIContainer getContainer(UILogic ui)
        {
            MapType maptype;

            if (ui.Properties.HasProperty(UIProperties.UseMapType))
            {
                maptype = ui.UIMapType;
            }
            else
            {
                maptype = MapType.Normal;
            }

            if (m_uiCache.ContainsKey(maptype) == false)
            {
                m_uiCache.Add(maptype, new MapTypeUIContainer());
            }

            return(m_uiCache[maptype]);
        }
Пример #24
0
        public static void CloseUI(UILogic ui, Action callback = null)
        {
            if (ui == null || ui.bShow == false)
            {
                return;
            }

            ui.HideWindow(callback);

            if (ui.Parent != null)
            {
                return;
            }

            m_uiHandler.Remove(ui);
            if (m_data.CurrentMainUI == ui)
            {
                m_data.CurrentMainUI = null;
            }
            ShowCachedUI();
        }
Пример #25
0
        public static void ShowUI(UILogic ui, Action callback, object[] param, bool isShowWaitingTip = true)
        {
            if (ui.bShow == true)
            {
                ui.ShowWindow(param, callback);
                return;
            }

            if (ui.Parent != null)
            {
                if (ui.Parent.bShow == true)
                {
                    ui.ShowWindow(param, callback);
                }

                return;
            }

            if (isShowWaitingTip && ui.Properties.HasProperty(UIProperties.DontShowLoadingTip))
            {
                isShowWaitingTip = false;
            }

            if (ui.Properties.HasProperty(UIProperties.UseMapType) == true)
            {
                if (ui.UIMapType != m_data.CurrentMapType)
                {
                    getContainer(ui).UIQueue.Enqueue(() => ShowUI(ui, callback, param));
                    return;
                }
            }

            if (checkShowUIHasProperty(UIProperties.UseMapType) == true)
            {
                getContainer(ui).UIQueue.Enqueue(() => ShowUI(ui, callback, param));
                return;
            }

            InternalShowUI(ui, callback, param, isShowWaitingTip);
        }
Пример #26
0
        static void InternalShowUI(UILogic ui, Action callback, object[] param, bool isShowWaitingTip)
        {
            if (ui.Properties.HasProperty(UIProperties.FullScreen) == true)
            {
                if (m_data.CurrentMainUI != null)
                {
                    var item = m_data.CurrentMainUI;

                    item.HideWindow(null);

                    if (item.Properties.HasProperty(UIProperties.MinimizeByOther) == true)
                    {
                        getContainer(item).UIStack.Push(item);
                    }

                    m_uiHandler.Remove(item);
                }

                UICommonData.MogoMainUICamera.clearFlags = ui.CameraClearFlag;
            }

            ShowUIHandler(ui, callback, param, isShowWaitingTip);
        }
Пример #27
0
        private void PackList_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            var package = PackList.SelectedItem as Package;

            if (package != null)
            {
                package.IsAlreadyPlayed = true;
                var currSession = UILogic.CreateSession(_user, package, 0);
                UILogic.AdaptPacksForUser(_user, dBRepository.Packages);
                UpdateInfo(dBRepository.Packages);
                var pop = new PopUpWindow();
                pop.ShowDialog();
                if (pop.gamemode)
                {
                    var gamepage = new GamePage(package, 1, currSession, this);
                    NavigationService.Navigate(gamepage);
                }
                else
                {
                    var questpage = new QuestionPage(package, this);
                    NavigationService.Navigate(questpage);
                }
            }
        }
Пример #28
0
        static void Main(string[] args)
        {
            UILogic uiLogic = new UILogic();

            uiLogic.StartProgram();
        }
Пример #29
0
        public static void Main()
        {
            UILogic userInterfaceLogic = new UILogic();

            userInterfaceLogic.Run();
        }
Пример #30
0
 void Start()
 {
     cameraLogic = Camera.main.GetComponent<CameraLogic> ();
     uiLogic = canvas.GetComponent<UILogic> ();
     setCarAndCarLogic ();
 }
Пример #31
0
        public void UIRunClient()
        {
            Assert.Inconclusive("Disabled because this test requires web service to be running and will otherwise fail");

            string     exePath = Path.GetFullPath(@"..\..\..\SampleClientAndService\Client\bin\debug\client.exe");
            string     libPath = Path.GetFullPath(@"..\..\..\SampleClientAndService\Client\bin\debug\ClientProxies.dll");
            WizardData data    = new WizardData();

            data.Configuration = new WcfUnitConfiguration();
            UILogic uiLogic = new UILogic();

            using (ScenarioRunManager srm = new ScenarioRunManager())
            {
                uiLogic.RunProgramAndGetWizardData(exePath, srm, data);
                Assert.IsTrue(File.Exists(data.TraceFile));
                Assert.AreEqual <int>(39, data.Configuration.soapActions.soapAction.Length);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/Add", data.Configuration.soapActions.soapAction[0].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/Add2", data.Configuration.soapActions.soapAction[1].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/Add3", data.Configuration.soapActions.soapAction[2].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/WrappedAdd", data.Configuration.soapActions.soapAction[3].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/WrappednoCustomNamesAdd", data.Configuration.soapActions.soapAction[4].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/WrappedMessageWithHeaderAndBodyNamespaceOverrides", data.Configuration.soapActions.soapAction[5].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/UnwrappedAdd", data.Configuration.soapActions.soapAction[6].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/NoParameters", data.Configuration.soapActions.soapAction[7].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/RefParameter", data.Configuration.soapActions.soapAction[8].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/OutParameter", data.Configuration.soapActions.soapAction[9].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IArithmetic/MixedDirectionParameters", data.Configuration.soapActions.soapAction[10].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/ICollections/ProcessCollection", data.Configuration.soapActions.soapAction[11].action);
                Assert.AreEqual <string>("http://tempuri.org/ICustomContracts/Overload", data.Configuration.soapActions.soapAction[12].action);
                Assert.AreEqual <string>("http://tempuri.org/ICustomContracts/Overload2", data.Configuration.soapActions.soapAction[13].action);
                Assert.AreEqual <string>("http://tempuri.org/ICustomContracts/Hidden", data.Configuration.soapActions.soapAction[14].action);
                Assert.AreEqual <string>("http://tempuri.org/ICustomContracts2/Contract2Method", data.Configuration.soapActions.soapAction[15].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IBufferedStreamService/BufferedStreamOperation", data.Configuration.soapActions.soapAction[16].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IBufferedStreamService/BufferedMemoryStreamOperation", data.Configuration.soapActions.soapAction[17].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IStreamedStreamService/StreamedStreamOperation", data.Configuration.soapActions.soapAction[18].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IStreamedStreamService/StreamedMemoryStreamOperation", data.Configuration.soapActions.soapAction[19].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IStreamedStreamService/StreamedWithNonStreamParametersOperation", data.Configuration.soapActions.soapAction[20].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IBufferedStreamService/BufferedUnwrappedMessageWithMemoryStream", data.Configuration.soapActions.soapAction[21].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IBufferedStreamService/BufferedUnwrappedMessageWithStream", data.Configuration.soapActions.soapAction[22].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IBufferedStreamService/BufferedWrappedMessageWithMemoryStream", data.Configuration.soapActions.soapAction[23].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IBufferedStreamService/BufferedWrappedMessageWithStream", data.Configuration.soapActions.soapAction[24].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IStreamedStreamService/StreamedUnwrappedMessageWithMemoryStream", data.Configuration.soapActions.soapAction[25].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IStreamedStreamService/StreamedUnwrappedMessageWithStream", data.Configuration.soapActions.soapAction[26].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IStreamedStreamService/StreamedWrappedMessageWithMemoryStream", data.Configuration.soapActions.soapAction[27].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IStreamedStreamService/StreamedWrappedMessageWithStream", data.Configuration.soapActions.soapAction[28].action);
                Assert.AreEqual <string>("http://contoso.com/service/test/IShapeService/DoSomething", data.Configuration.soapActions.soapAction[29].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/ProcessSimpleAsmxRequestWrapped", data.Configuration.soapActions.soapAction[30].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/ProcessSimpleAsmxRequestBare", data.Configuration.soapActions.soapAction[31].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/ProcessMultipleParametersWrapped", data.Configuration.soapActions.soapAction[32].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/WithNullableInt", data.Configuration.soapActions.soapAction[33].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/SimpleTypes", data.Configuration.soapActions.soapAction[34].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/ScalarArray", data.Configuration.soapActions.soapAction[35].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/XmlRequestMethod", data.Configuration.soapActions.soapAction[36].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/CollectionMethod", data.Configuration.soapActions.soapAction[37].action);
                Assert.AreEqual <string>("http://contoso.com/asmxservice/test/ProcessShape", data.Configuration.soapActions.soapAction[38].action);

                Assert.Inconclusive("The rest of this test is currently disabled because the functionality to autodiscover the referenced assemblies has been temporarily removed to make sure the user specifies the proxy assembly, because the tool cannot yet cope with proxy-less clients");
                List <string> assemblies = new List <string>();
                foreach (AssemblyType a in data.Configuration.assembly)
                {
                    assemblies.Add(a.fileName);
                }

                Assert.AreEqual <int>(2, assemblies.Count);
                Assert.IsTrue(assemblies.Contains(exePath));
                Assert.IsTrue(assemblies.Contains(libPath));
            }
        }
Пример #32
0
    private void Start()
    {
        uiLogic = canvas.GetComponent<UILogic> ();
        changeShot ("menu");

        distance = Vector3.Distance (transform.position, target.transform.position);
        negDistance = new Vector3 (0.0f, 0.0f, -distance);
        rotation = Quaternion.Euler(transform.eulerAngles.y, transform.eulerAngles.x, 0);
    }