Inheritance: MonoBehaviour
Ejemplo n.º 1
0
    // CLASS METHODS
    // Adds the managers to a list and starts them up asynchronously
    void Awake()
    {
        Game = GetComponentInChildren<GameManager>();
        Battery = GetComponentInChildren<Battery>();
        Jellyfish = GetComponentInChildren<JellyfishManager>();
        Landmarks = GetComponentInChildren<LandmarkManager>();
        Periscope = GetComponentInChildren<Periscope>();
        Searchlight = GetComponentInChildren<Searchlight>();
        TemplePull = GetComponentInChildren<TemplePull>();
        UI = GetComponentInChildren<UIController>();
        Views = GetComponentInChildren<ViewManager>();

        _startSequence = new List<IGameManager>();
        _startSequence.Add(Game);
        _startSequence.Add(Battery);
        _startSequence.Add(Jellyfish);
        _startSequence.Add(Landmarks);
        _startSequence.Add(Periscope);
        _startSequence.Add(Searchlight);
        _startSequence.Add(TemplePull);
        _startSequence.Add(UI);
        _startSequence.Add(Views);

        StartCoroutine(StartupManagers());
    }
Ejemplo n.º 2
0
        public void When_ResetViews_Views()
        {
            _creationTime = DateTime.Now;
            _creationGuid = Guid.NewGuid();
            _postId = Guid.NewGuid();
            _events = new List<IDomainEvent>()
                {
                    new BlogCreatedEvent("test", "test2", _creationTime, _creationGuid),
                    new PostCreatedEvent("Hej", "hej hej", "slug", new List<string> {"tag"}, "excerpt",
                                         _creationTime.AddDays(1), _postId)
                };

            _blogView = new Mock<IBlogView>();
            _blogView.Setup((y) => y.ResetView());
            _userView = new Mock<IUserView>();
            _userView.Setup((y) => y.ResetView());
            _postView = new Mock<IPostView>();
            _postView.Setup((y) => y.ResetView());
            _eventStore = new Mock<IEventStore>();
            _eventStore.Setup((y) => y.GetAllEvents()).Returns(_events);
            _eventBus = new Mock<IEventBus>();
            _eventBus.Setup((y) => y.PublishEvents(_events));
            var viewManager = new ViewManager(_blogView.Object, _userView.Object, _postView.Object);

            _blogController = new BlogController(viewManager, _authenticationService, _commandBus, _eventBus.Object,
                                                 _eventStore.Object);

            _blogController.ResetViews();
        }
Ejemplo n.º 3
0
 public PostController(ViewManager viewManager, IAuthenticationService authenticationService, ICommandBus commandBus)
     : base(commandBus)
 {
     _postView = viewManager.GetView<IPostView>();
     _blogView = viewManager.GetView<IBlogView>();
     _authenticationService = authenticationService;
 }
Ejemplo n.º 4
0
        public ScreenManager(ContentManager content, ViewManager viewManager)
        {
            this.screens = new Stack<Screen>();
            this.content = content;
            this.viewManager = viewManager;

            Initialize();
        }
Ejemplo n.º 5
0
        static void Main(string[] args)
        {
            // open debug output
            var tl = new System.Diagnostics.ConsoleTraceListener();
            System.Diagnostics.Debug.Listeners.Add ( tl );

            Console.WriteLine("begin testing AtomRefManager\n");
            AtomRefManager atom = new AtomRefManager(10);
            int index = atom.allocate(0);
            atom.setElement(index, 1);
            int r = (int)atom.getElement(index);
            Console.WriteLine("end testing ArrayRefManager\n");

            Console.WriteLine("begin testing ArrayRefManager\n");
            ArrayRefManager arr = new ArrayRefManager(10);
            int index2 = arr.allocate(2, 0);
            arr.setElement(index2, 1, 42);
            int r2 = (int)arr.getElement(index2, 1);
            Debug.Assert(r2 == 42, "r2 == 42 failed");


            int index3 = arr.allocate(3, 0);
            arr.setElement(index3, 1, 41);
            int r3 = (int)arr.getElement(index3, 1);
            Debug.Assert(r3 == 41, "r3 == 41 failed");

            Console.WriteLine(arr.ExpressionID);
            Console.WriteLine(arr.ToString());

            Console.WriteLine("end testing ArrayRefManager\n");

            Console.WriteLine("begin testing ViewManager\n");

            ViewManager vm = new ViewManager();

            Maybe opt_rec = vm.get(0, 0, 1, 1);
            Debug.Assert(!Maybe.is_none(opt_rec), "Fail to get lock.");
            vm = (ViewManager)vm.GetClone();
            Console.WriteLine(vm.ExpressionID);
            Console.WriteLine(vm.ToString());

            
            opt_rec = vm.get(0, 0, 1, 1);
            Debug.Assert(Maybe.is_none(opt_rec), "should not get lock.");
            vm = (ViewManager)vm.GetClone();
            Console.WriteLine(vm.ExpressionID);
            Console.WriteLine(vm.ToString());

            opt_rec = vm.get(0, 1, 1, 1);
            Debug.Assert(!Maybe.is_none(opt_rec), "Fail to get lock.");
            vm = (ViewManager)vm.GetClone();
            Console.WriteLine(vm.ExpressionID);
            Console.WriteLine(vm.ToString());
            Console.WriteLine("end testing ViewManager\n");


        }
Ejemplo n.º 6
0
        public InfoArea(ViewManager viewManager)
        {
            infoZoneRect = new Rectangle(0, viewManager.Height - viewManager.RelativeX(17.5f), viewManager.RelativeX(25), viewManager.RelativeX(17.5f));
            characterCircleRect = new Rectangle(viewManager.RelativeX(3.5f), viewManager.Height - viewManager.RelativeX(11f),
                viewManager.RelativeX(10), viewManager.RelativeX(10));
            expBarRect = new Rectangle(characterCircleRect.X + characterCircleRect.Width / 2,
                characterCircleRect.Y + characterCircleRect.Height - viewManager.RelativeX(1), viewManager.RelativeX(25), viewManager.RelativeX(1));
            hpBarRect = new Rectangle(characterCircleRect.X + (int)(0.7f * characterCircleRect.Width), expBarRect.Y - viewManager.RelativeX(2),
                expBarRect.Width - (int)(0.20f * characterCircleRect.Width), viewManager.RelativeX(2));

            // Element icons
            int iconWidth = viewManager.RelativeX(3.5f);
            int iconMargin = viewManager.RelativeX(0.1f);
            int radius = (characterCircleRect.Width + iconWidth) / 2 + iconMargin;
            this.fireIconRect =
                new Rectangle(-iconWidth / 2 + characterCircleRect.Center.X + (int)(radius * Math.Cos(Math.PI * 13 / 12)),
                    -iconWidth / 2 + characterCircleRect.Center.Y + (int)(radius * Math.Sin(Math.PI * 13 / 12)),
                    iconWidth, iconWidth);
            this.waterIconRect =
                new Rectangle(-iconWidth / 2 + characterCircleRect.Center.X + (int)(radius * Math.Cos(Math.PI * 49 / 36)),
                    -iconWidth / 2 + characterCircleRect.Center.Y + (int)(radius * Math.Sin(Math.PI * 49 / 36)),
                    iconWidth, iconWidth);
            this.earthIconRect =
                new Rectangle(-iconWidth / 2 + characterCircleRect.Center.X + (int)(radius * Math.Cos(Math.PI * 59 / 36)),
                    -iconWidth / 2 + characterCircleRect.Center.Y + (int)(radius * Math.Sin(Math.PI * 59 / 36)),
                    iconWidth, iconWidth);
            this.windIconRect =
                new Rectangle(-iconWidth / 2 + characterCircleRect.Center.X + (int)(radius * Math.Cos(Math.PI * 23 / 12)),
                    -iconWidth / 2 + characterCircleRect.Center.Y + (int)(radius * Math.Sin(Math.PI * 23 / 12)),
                    iconWidth, iconWidth);

            // Stat icons
            int statIconWidth = viewManager.RelativeX(2);
            int statIconMargin = viewManager.RelativeX(3);
            int baseY = infoZoneRect.Y + statIconMargin / 2;
            this.attackIconRect = new Rectangle(infoZoneRect.Right - statIconWidth - 4 * statIconMargin / 3, baseY,
                statIconWidth, statIconWidth);
            this.staminaIconRect = new Rectangle(infoZoneRect.Right - statIconWidth - 4 * statIconMargin / 3, baseY + statIconMargin,
                statIconWidth, statIconWidth);
            this.defenseIconRect = new Rectangle(infoZoneRect.Right - statIconWidth - 4 * statIconMargin / 3, baseY + 2 * statIconMargin,
                statIconWidth, statIconWidth);
            this.speedIconRect = new Rectangle(infoZoneRect.Right - statIconWidth - 4 * statIconMargin / 3, baseY + 3 * statIconMargin,
                statIconWidth, statIconWidth);

            // Stat number rects
            this.attackStatRect = new Rectangle(attackIconRect.Right + viewManager.RelativeX(0.5f), attackIconRect.Top,
                statIconWidth * 2 / 3, statIconWidth);
            this.staminaStatRect = new Rectangle(staminaIconRect.Right + viewManager.RelativeX(0.5f), staminaIconRect.Top,
                statIconWidth * 2 / 3, statIconWidth);
            this.defenseStatRect = new Rectangle(defenseIconRect.Right + viewManager.RelativeX(0.5f), defenseIconRect.Top,
                statIconWidth * 2 / 3, statIconWidth);
            this.speedStatRect = new Rectangle(speedIconRect.Right + viewManager.RelativeX(0.5f), speedIconRect.Top,
                statIconWidth * 2 / 3, statIconWidth);
            this.healthStatRect = new Rectangle(hpBarRect.Right - statIconWidth * 3, hpBarRect.Top - statIconWidth * 5 / 3, statIconWidth,
                statIconWidth * 3 / 2);
        }
Ejemplo n.º 7
0
 public void ProcessRequest(HttpContext context)
 {
     string appRelativePath = context.Request.AppRelativeCurrentExecutionFilePath;
     string controlPath = appRelativePath.ToLower().Replace(".jza", ".ascx");
     var viewManager = new ViewManager<UserControl>();
     var control = viewManager.LoadViewControl(controlPath);
     SelectPropertyMetaDataProc.SetPropertyValues(control, context);
     context.Response.ContentType = "text/html";
     context.Response.Write(viewManager.RenderView(control));
 }
Ejemplo n.º 8
0
    private void ChangeView()
    {
        GameObject viewGameObject = null;
        Transform viewTransform = viewBaseTransform.Find(currentViewStr);
        viewGameObject = (viewTransform != null) ? viewTransform.gameObject : ImportView(currentView);

        HideCurrentView();
        currentViewManager = viewGameObject.GetComponent<ViewManager>();
        ShowCurrentView();
    }
Ejemplo n.º 9
0
 public BlogController(ViewManager viewManager, IAuthenticationService authenticationService, ICommandBus commandBus, IEventBus eventBus, IEventStore eventStore)
     : base(commandBus)
 {
     _viewManager = viewManager;
     _authenticationService = authenticationService;
     _eventBus = eventBus;
     _eventStore = eventStore;
     _blogView = _viewManager.GetView<IBlogView>();
     _userView = _viewManager.GetView<IUserView>();
 }
Ejemplo n.º 10
0
    void Awake()
    {
        if (instance == null)
            instance = this;
        else if (instance != null)
            Destroy(gameObject);

        m_bottomScreen = GetComponent<Transform>().Find("bottomScreen");
        m_targetPos = GetComponent<Transform>().Find("targetPos");
    }
 /// <summary>
 /// Initializes a new instance of the ProportionalScaleChangeEffect class
 /// </summary>
 /// <param name="viewManager">The view manager to be affected</param>
 /// <param name="finalScaleValue">Final scale wanted</param>
 /// <param name="proportionAffectPerFrameInPercent">Number by which to resize the node at each step, in percent</param>
 /// <param name="numberOfIntermediateValue">The number of steps for the size change</param>
 public ProportionalScaleChangeEffect(
     ViewManager viewManager,
     double finalScaleValue,
     double proportionAffectPerFrameInPercent,
     int numberOfIntermediateValue)
     : base(viewManager, finalScaleValue)
 {
     this.numberOfIntermediateValueLeft = numberOfIntermediateValue;
     this.proportionAffectPerFrameInPercent = proportionAffectPerFrameInPercent;
 }
Ejemplo n.º 12
0
		internal RegionItem(Region region, object item, Control hostControl)
		{
			Verify.ArgumentNotNull(region, "region", out _region);
			Verify.ArgumentNotNull(item, "item", out _item);
			Verify.ArgumentNotNull(hostControl, "hostControl", out _hostControl);
			_hostControl.Tag = this;
			_clientControl = item as Control;
			_task = item as UipTask;

			if (_task != null)
			{
				_viewManager = new ViewManager(_hostControl);
				_task.ServiceContainer.RegisterInstance<IRegion>(_region);
				_task.ServiceContainer.RegisterInstance<IRegionInfo>(this);
				_task.TaskComplete += Task_TaskComplete;
				UpdateRegionInfo(_task);
			}
			else if (_clientControl != null)
			{
				Form form = _clientControl as Form;
				if (form != null)
				{
					form.TopLevel = false;
					form.FormBorderStyle = FormBorderStyle.None;
				}

				UpdateRegionInfo(_clientControl);

				_hostControl.Controls.Add(_clientControl);
				_clientControl.Dock = DockStyle.Fill;
				_clientControl.Visible = true;
			}
			else
			{
				string message = String.Format("Cannot add object of type {0} to a Windows Forms region",
											   item.GetType().FullName);
				Log.Error(message);
				throw new ArgumentException(message);
			}
		}
Ejemplo n.º 13
0
 private void UpdateElementals(GameTime gameTime, Character character, ViewManager viewManager)
 {
     for (int i = 0; i < elementals.Count; i++)
     {
         // Using relativeX for both check for a circle image zone
         if (Vector2.DistanceSquared(character.Position, elementals[i].Position) > Math.Pow(viewManager.RelativeX(relativeRemovalRadius), 2))
         {
             // Console.WriteLine("Elemental removed");
             elementals.RemoveAt(i);
         }
         else if (!elementals[i].IsAlive)
         {
             character.AddExperience(elementals[i].PointYield);
             character.AddElementalPoints(elementals[i].CurrentElement, elementals[i].PointYield * 2);
             elementals.RemoveAt(i);
         }
         else
         {
             elementals[i].Update(gameTime, elementals, character.Position);
             elementals[i].Visible = Math.Abs(character.Position.X - elementals[i].Position.X) < viewManager.RelativeX(50) + elementals[i].Width
                 || Math.Abs(character.Position.Y - elementals[i].Position.Y) < viewManager.RelativeY(50) + elementals[i].Height;
         }
     }
 }
Ejemplo n.º 14
0
 private void InitializeViewManager()
 {
     //throw new NotImplementedException();
     viewManager = new ViewManager(this);
     viewManager.Add(choroplethMap, splitContainer2.Panel1);
     viewManager.Add(component, splitContainer2.Panel2);
     viewManager.Add(this.tableLensA.tablelens, this.BarGraphContainer.Panel1);
     viewManager.Add(this.tableLensB.tablelens, this.BarGraphContainer.Panel2);
     viewManager.Add(this.parallelCoordinatesPlot, this.FilterContainer.Panel2);
     viewManager.InvalidateAll();
 }
Ejemplo n.º 15
0
 void Awake()
 {
     i = this;
     enabled = false;
 }
 internal void CancelButton_Renamed_Click(Object eventSender, System.EventArgs eventArgs)
 {
     ViewManager.DisposeView(this);
 }
Ejemplo n.º 17
0
 internal void cmdClose_Click(Object eventSender, System.EventArgs eventArgs)
 {
     ViewManager.DisposeView(this);
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Gets the context from the passed <paramref name="view"/>.
 /// </summary>
 /// <param name="view">The view from which the context should get retrieved.</param>
 /// <returns>The context of the passed <paramref name="view"/>.</returns>
 private static object GetContextFromView(object view)
 {
     return(ViewManager.GetContextOfView(view));
 }
Ejemplo n.º 19
0
 public override void Initialize()
 {
     BackButton.onClick.AddListener(() => ViewManager.ShowLast());
     GetSkillButton.onClick.AddListener(() => GetSkill());
 }
Ejemplo n.º 20
0
 public void ShowOverstock()
 {
     ViewManager.Show("ExtraProductShipped");
 }
Ejemplo n.º 21
0
 private void HideWaitingView()
 {
     // ViewManager.CloseCurrentView(gameObject.name);
     ViewManager.CloseWaitTip();
 }
Ejemplo n.º 22
0
 private void ShowWaitingView(UnityAction timeOutAction = null)
 {
     ViewManager.ShowWaitTip("请稍等......", 45, timeOutAction);
 }
Ejemplo n.º 23
0
    private void ShowInfoView()
    {
        ViewManager.ReplaceView(infoView, gameObject.name);

        Text nickName = infoView.transform.Find("NickName").GetComponent <Text>();
        Text money    = infoView.transform.Find("Money").GetComponent <Text>();
        Text address  = infoView.transform.Find("Address").GetComponent <Text>();
        Text keystore = infoView.transform.Find("Panel/Keystore").GetComponent <Text>();

        nickName.text = AccountManager.Instance.GetNickName();
        address.text  = AccountManager.Instance.GetAddress();
        keystore.text = AccountManager.Instance.GetKeytore();

        Button btnCopyAddress = infoView.transform.Find("BtnCopyAddress").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnCopyAddress, delegate(){
            UniClipboard.SetText(AccountManager.Instance.GetAddress());
            ViewManager.ShowTip("复制成功");
        });

        money.text = "正在请求刷新";
        AccountManager.Instance.UpdateBalance((balance) => {
            money.text = balance.ToString("0.0000");
        });

        AccountJsonInfo mAccountJsonInfo = AccountManager.Instance.GetAccounts();

        for (int i = 0; i < mAccountJsonInfo.accountInfos.Count; i++)
        {
            AccountInfo ai = mAccountJsonInfo.accountInfos[i];
            if (ai.address == AccountManager.Instance.GetAddress())
            {
                mCurrentAccountIdx = i;
                break;
            }
        }

        // netdropdown
        Dropdown urlDropDown = infoView.transform.Find("NetDropdown").GetComponent <Dropdown>();

        urlDropDown.options.Clear();
        Dropdown.OptionData tempData;
        for (int i = 0; i < AccountManager.Instance.netNames.Length; i++)
        {
            tempData = new Dropdown.OptionData(AccountManager.Instance.netNames[i]);
            urlDropDown.options.Add(tempData);
        }
        urlDropDown.captionText.text = AccountManager.Instance.GetCurrentNetName();
        urlDropDown.onValueChanged.RemoveAllListeners();
        urlDropDown.onValueChanged.AddListener(delegate(int value) {
            UnityEngine.Debug.Log("点击了value " + value);
            AccountManager.Instance.SwitchNet(value);
            // 更新资产
            money.text = "正在请求刷新";
            AccountManager.Instance.UpdateBalance((balance) => {
                money.text = balance.ToString("0.0000");
            });
        });
        // namedropdown
        Dropdown nameDropDown = infoView.transform.Find("NameDropdown").GetComponent <Dropdown>();

        nameDropDown.options.Clear();
        for (int i = 0; i < mAccountJsonInfo.accountInfos.Count; i++)
        {
            tempData = new Dropdown.OptionData(mAccountJsonInfo.accountInfos[i].name);
            nameDropDown.options.Add(tempData);
        }
        nameDropDown.value            = mCurrentAccountIdx;
        nameDropDown.captionText.text = mAccountJsonInfo.accountInfos[mCurrentAccountIdx].name;
        nameDropDown.onValueChanged.RemoveAllListeners();
        nameDropDown.onValueChanged.AddListener(delegate(int value) {
            UnityEngine.Debug.Log("点击了nameDropDown value " + value);
            mCurrentAccountIdx = value;
            AccountManager.Instance.SwitchAccount(mCurrentAccountIdx);
            ShowInfoView();
        });


        // Button btnCopyPrivateKey = infoView.transform.Find("BtnCopyPrivateKey").GetComponent<Button>();
        // Utils.AddButtonClickEvent(btnCopyPrivateKey, delegate(){
        //  UniClipboard.SetText(mPrivateKeyString);
        // });
        // Button btnCopyKeystore = infoView.transform.Find("BtnCopyKeystore").GetComponent<Button>();
        // Utils.AddButtonClickEvent(btnCopyKeystore, delegate(){
        //  UniClipboard.SetText(mKeystore);
        // });
        Button btnLogout = infoView.transform.Find("BtnLogout").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnLogout, delegate(){
            Logout();
        });
        Button btnTransfer = infoView.transform.Find("BtnTransfer").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnTransfer, delegate(){
            ShowTransferView();
        });
        Button btnNewAccount = infoView.transform.Find("NewAccount").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnNewAccount, delegate(){
            ShowSelectView();
        });

        Button btnSetting = infoView.transform.Find("BtnSetting").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnSetting, delegate(){
            ShowSettingView();
        });
    }
Ejemplo n.º 24
0
 private void ImportAccountTimeOut()
 {
     ViewManager.ShowMessageBox("导入超时, 请检查输入");
 }
Ejemplo n.º 25
0
 private void ImportAccountExeption(Notification notification)
 {
     ViewManager.CloseWaitTip();
     ViewManager.ShowMessageBox("导入失败, 请检查输入");
 }
Ejemplo n.º 26
0
    private void ShowWordsConfirmView()
    {
        ViewManager.ReplaceView(wordsConfirmView, gameObject.name);
        string[] randomWords = new string[12];
        for (int i = 0; i < 12; i++)
        {
            randomWords[i] = AccountManager.Instance.GetWords()[i];
        }
        for (int i = 11; i > 0; i--)
        {
            int    j   = UnityEngine.Random.Range(0, i);
            string tmp = randomWords[i];
            randomWords[i] = randomWords[j];
            randomWords[j] = tmp;
        }

        Text selectedWordsText = wordsConfirmView.transform.Find("SelectedWords/Text").GetComponent <Text>();

        bool[]        selectedFlags = new bool[12];
        List <string> selectedWords = new List <string>();
        Color         selectedColor = new Color(32 / 255f, 187 / 255f, 201 / 255f);
        Color         normalColor   = new Color(1f, 1f, 1f, 0.5f);

        for (int i = 0; i < 12; i++)
        {
            Text       text  = wordsConfirmView.transform.Find(string.Format("GridInput/{0}/Text", i.ToString())).GetComponent <Text>();
            Button     btn   = wordsConfirmView.transform.Find(string.Format("GridInput/{0}", i.ToString())).GetComponent <Button>();
            GameObject image = wordsConfirmView.transform.Find(string.Format("GridInput/{0}/Image", i.ToString())).gameObject;
            image.SetActive(false);
            text.text = randomWords[i];
            Utils.AddButtonClickEvent(btn, delegate() {
                int idx   = int.Parse(btn.name);
                bool flag = selectedFlags[idx];
                if (flag)
                {
                    text.color = normalColor;
                    image.SetActive(false);
                    selectedFlags[idx] = false;
                    UnityEngine.Debug.Log("diselect " + idx);
                    selectedWords.Remove(randomWords[idx]);
                }
                else
                {
                    text.color = selectedColor;
                    image.SetActive(true);
                    selectedFlags[idx] = true;
                    UnityEngine.Debug.Log("select " + idx);
                    selectedWords.Add(randomWords[idx]);
                }
                selectedWordsText.text = string.Join("    ", selectedWords.ToArray());
            });
        }

        Button btnConfirm = wordsConfirmView.transform.Find("BtnConfirm").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnConfirm, delegate(){
            bool isCorrect = true;
            for (int i = 0; i < 12; i++)
            {
                if (i >= selectedWords.Count || selectedWords[i] != AccountManager.Instance.GetWords()[i])
                {
                    isCorrect = false;
                    ViewManager.ShowMessageBox("输入错误");
                    break;
                }
            }
            if (isCorrect)
            {
                CheckKeystoreInited();
            }
        });

        Button btnClose = wordsConfirmView.transform.Find("BtnClose").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnClose, delegate() {
            ShowWordsView();
        });
    }
Ejemplo n.º 27
0
 public override void ShowTitle()
 {
     ViewManager.ShowTitle(ResourceHelper.GetResourceText("ModifyFactor"));
 }
Ejemplo n.º 28
0
 public void Cancel(object sender, EventArgs e)
 {
     ViewManager.ShowStart();
 }
Ejemplo n.º 29
0
 private void onStartup(object sender, StartupEventArgs e)
 {
     viewManager = new ViewManager();
 }
Ejemplo n.º 30
0
    private void ShowTransferView()
    {
        ViewManager.ReplaceView(transferView, gameObject.name);
        InputField addressInput  = transferView.transform.Find("AddressInputField").GetComponent <InputField>();
        InputField ethInput      = transferView.transform.Find("EthInputField").GetComponent <InputField>();
        InputField gasPriceInput = transferView.transform.Find("GasPriceInputField").GetComponent <InputField>();
        InputField gasInput      = transferView.transform.Find("GasInputField").GetComponent <InputField>();
        // InputField pwdInput = transferView.transform.Find("PwdInputField").GetComponent<InputField>();

        Button btnReports = transferView.transform.Find("BtnHistory").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnReports, delegate(){
            ShowTransactionHistoryView();
        });

        Button btnPasteAddress = transferView.transform.Find("BtnPasteAddress").GetComponent <Button>();

        gasInput.text      = "21000";
        gasPriceInput.text = AccountManager.Instance.GetGasPrice().ToString();

        Utils.AddButtonClickEvent(btnPasteAddress, delegate(){
            addressInput.text = UniClipboard.GetText();
        });
        Button btnClose = transferView.transform.Find("BtnClose").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnClose, delegate(){
            ShowInfoView();
        });
        Button btnConfirm = transferView.transform.Find("BtnConfirm").GetComponent <Button>();

        Utils.AddButtonClickEvent(btnConfirm, delegate(){
            if (string.IsNullOrEmpty(addressInput.text) ||
                string.IsNullOrEmpty(ethInput.text) ||
                string.IsNullOrEmpty(gasPriceInput.text) ||
                string.IsNullOrEmpty(gasInput.text))
            {
                ViewManager.ShowMessageBox("请输入完整的转账信息");
                return;
            }
            // UnityEngine.Debug.Log(System.DateTime.Now);
            // string privateKey = Wallet.GetPrivateKeyByKeystoreAndPassword(mKeystore, pwdInput.text);
            // UnityEngine.Debug.Log(System.DateTime.Now);

            //gasPriceInput.text = Web3.Web3.Convert.FromWei(TransactionBase.DEFAULT_GAS_PRICE, UnitConversion.EthUnit.Gwei);

            ethAmount        = Decimal.Parse(ethInput.text);
            decimal gasPrice = Decimal.Parse(gasPriceInput.text);
            gas       = BigInteger.Parse(gasInput.text);
            toAddress = addressInput.text;
            UnityEngine.Debug.LogError("ethAmount " + ethAmount.ToString() + " gasPrice " + gasPrice.ToString() + " gas " + gas.ToString() + " toaddr " + toAddress);
            // LoadPrivateKeyInSubThread(mKeystore, pwdInput.text);
            // StartCoroutine(WaitForPrivateKey());

            ShowWaitingView();
            Action <string, bool, string> callback = new Action <string, bool, string>(transferCallBack);
            StartCoroutine(Wallet.TransferEth(AccountManager.Instance.GetPrivateKey(), AccountManager.Instance.GetAddress(), toAddress, ethAmount, gasPrice, gas, callback));
        });


        // addressdropdown
        Dropdown addressDropDown = transferView.transform.Find("AddressDropdown").GetComponent <Dropdown>();

        addressDropDown.options.Clear();
        var address_list = GetToAddresses();

        Dropdown.OptionData tempData;
        for (int i = 0; i < address_list.Length; i++)
        {
            tempData = new Dropdown.OptionData(address_list[i]);
            addressDropDown.options.Add(tempData);
        }

        addressDropDown.onValueChanged.RemoveAllListeners();
        addressDropDown.onValueChanged.AddListener(delegate(int value) {
            UnityEngine.Debug.Log("点击了value " + value);
            // 选中地址
            // addressDropDown.captionText.text = address_list[value];
            addressInput.text = address_list[value];
        });
    }
Ejemplo n.º 31
0
 /// <summary>
 /// Initializes a new instance of the AbstractVisualEffect class
 /// </summary>
 /// <remarks>
 /// This constructor MUST BE CALL in ALL inheriting classes
 /// </remarks>
 /// <param name="viewManager">The view manager to be affected by the visual effect</param>
 public AbstractVisualEffect(ViewManager viewManager)
 {
     this.viewManager = viewManager;
 }
Ejemplo n.º 32
0
 public ViewManager(Stage stage)
 {
     srcClip  = stage;
     instance = this;
 }
Ejemplo n.º 33
0
 public void SetUp()
 {
     _couchbaseClient = new Mock<ICouchbaseClient>();
     _dictionary      = new Dictionary<string, IView>();
     _viewManager     = new ViewManager(this._dictionary, new Cache(this._couchbaseClient.Object));
     _view            = new Mock<IView>();
     _viewName        = "ViewName";
     _view.SetupGet(p => p.Name).Returns(_viewName);
 }
Ejemplo n.º 34
0
 void Start()
 {
     viewManager = GameObject.Find("ViewManager").GetComponent <ViewManager>();
 }
Ejemplo n.º 35
0
        public void FillNotInspectedGrid()
        {
            DbCommand oCmd = UpgradeHelpers.DB.AdoFactoryManager.GetFactory().CreateCommand();

            ViewModel.sprList.Row       = 1;
            ViewModel.sprList.Row2      = ViewModel.sprList.MaxRows;
            ViewModel.sprList.Col       = 1;
            ViewModel.sprList.Col2      = ViewModel.sprList.MaxCols;
            ViewModel.sprList.BlockMode = true;
            ViewModel.sprList.Text      = "";
            ViewModel.sprList.BlockMode = false;

            //default check box to unchecked
            ViewModel.sprList.Col = 8;
            int tempForVar = ViewModel.sprList.MaxRows;

            for (int i = 1; i <= tempForVar; i++)
            {
                ViewModel.sprList.Row   = i;
                ViewModel.sprList.Value = 0;
            }
            ViewModel.lbTotalCount.Text = "List Count:   0";
            ViewModel.sprList.MaxRows   = 5000;

            oCmd.Connection  = modGlobal.oConn;
            oCmd.CommandType = CommandType.Text;
            string strSQL = "";

            if (ViewModel.opt6Month.Checked)
            {
                ViewModel.iMonth = 6;
            }
            else
            {
                //12 month option
                ViewModel.iMonth = 12;
            }

            strSQL = "spSelect_UniformsNotInspectedFiltered ";
            if (ViewModel.CurrBatt == "")
            {
                strSQL = strSQL + "NULL, ";
            }
            else
            {
                strSQL = strSQL + "'" + ViewModel.CurrBatt + "', ";
            }
            if (ViewModel.CurrShift == "")
            {
                strSQL = strSQL + "NULL, ";
            }
            else
            {
                strSQL = strSQL + "'" + ViewModel.CurrShift + "', ";
            }
            strSQL = strSQL + ViewModel.iMonth.ToString() + ", ";
            if (ViewModel.cboType.SelectedIndex == -1)
            {
                strSQL = strSQL + "NULL, ";
            }
            else
            {
                strSQL = strSQL + ViewModel.cboType.GetItemData(ViewModel.cboType.SelectedIndex).ToString() + ", ";
            }
            if (ViewModel.cboBrand.SelectedIndex == -1)
            {
                strSQL = strSQL + "NULL ";
            }
            else
            {
                strSQL = strSQL + ViewModel.cboBrand.GetItemData(ViewModel.cboBrand.SelectedIndex).ToString() + " ";
            }

            oCmd.CommandText = strSQL;
            ADORecordSetHelper oRec = ADORecordSetHelper.Open(oCmd, "");

            if (oRec.EOF)
            {
                ViewModel.sprList.MaxRows = 1;
                ViewManager.ShowMessage("No Inspection Information was found.", "PPE Inspection Information", UpgradeHelpers.Helpers.BoxButtons.OK);
                return;
            }
            ViewModel.sprList.Row = 0;
            int TotalCount = 0;

            while (!oRec.EOF)
            {
                (ViewModel.sprList.Row)++;
                ViewModel.sprList.Col = 1;                 //Inspection Date

                if (modGlobal.Clean(oRec["inspection_date"]) == "")
                {
                    ViewModel.sprList.Text = "N/A";
                }
                else
                {
                    ViewModel.sprList.Text = Convert.ToDateTime(oRec["inspection_date"]).ToString("M/d/yyyy");
                }
                ViewModel.sprList.Col = 2;                 //Issued To

                ViewModel.sprList.Text = modGlobal.Clean(oRec["emp_name"]);
                ViewModel.sprList.Col  = 3;                //Inspected By

                if (modGlobal.Clean(oRec["InspectedBy"]) == "")
                {
                    ViewModel.sprList.Text = "N/A";
                }
                else
                {
                    ViewModel.sprList.Text = modGlobal.Clean(oRec["InspectedBy"]);
                }
                ViewModel.sprList.Col = 4;                 //Uniform Item

                ViewModel.sprList.Text = modGlobal.Clean(oRec["UniformType"]);
                ViewModel.sprList.Col  = 5;                //Tracking #

                ViewModel.sprList.Text = modGlobal.Clean(oRec["tracking_number"]);
                ViewModel.sprList.Col  = 6;                //Brand

                ViewModel.sprList.Text = modGlobal.Clean(oRec["manufacturer_name"]);
                ViewModel.sprList.Col  = 7;                //Inspected By

                if (modGlobal.Clean(oRec["SizeCode"]) == "")
                {
                    ViewModel.sprList.Text = modGlobal.Clean(oRec["Color"]);
                }
                else
                {
                    ViewModel.sprList.Text = modGlobal.Clean(oRec["SizeCode"]);
                }
                ViewModel.sprList.Col = 8;                 //Passed Flag
                //UPGRADE_WARNING: (1068) GetVal(oRec(passed_flag)) of type Variant is being forced to double. More Information: http://www.vbtonet.com/ewis/ewi1068.aspx

                if (Convert.ToDouble(modGlobal.GetVal(oRec["passed_flag"])) == 0)
                {
                    ViewModel.sprList.Value = 0;
                }
                else
                {
                    ViewModel.sprList.Value = 1;
                }
                ViewModel.sprList.Col = 9;                 //Returned Date

                if (modGlobal.Clean(oRec["returned_date"]) == "")
                {
                    ViewModel.sprList.Text = "";
                }
                else
                {
                    ViewModel.sprList.Text = Convert.ToDateTime(oRec["returned_date"]).ToString("M/d/yyyy");
                }
                ViewModel.sprList.Col = 10;                 //Retired Date

                if (modGlobal.Clean(oRec["retired_date"]) == "")
                {
                    ViewModel.sprList.Text = "";
                }
                else
                {
                    ViewModel.sprList.Text = Convert.ToDateTime(oRec["retired_date"]).ToString("M/d/yyyy");
                }
                ViewModel.sprList.Col = 11;                 //Uniform ID

                //UPGRADE_WARNING: (1068) GetVal() of type Variant is being forced to string. More Information: http://www.vbtonet.com/ewis/ewi1068.aspx
                ViewModel.sprList.Text = Convert.ToString(modGlobal.GetVal(oRec["uniform_id"]));
                ViewModel.sprList.Col  = 12;                //Inspection ID

                //UPGRADE_WARNING: (1068) GetVal() of type Variant is being forced to string. More Information: http://www.vbtonet.com/ewis/ewi1068.aspx
                ViewModel.sprList.Text = Convert.ToString(modGlobal.GetVal(oRec["inspection_id"]));

                TotalCount++;
                oRec.MoveNext();
            }
            ;
            ViewModel.sprList.MaxRows   = TotalCount;
            ViewModel.lbTotalCount.Text = "List Count:  " + TotalCount.ToString();
        }
Ejemplo n.º 36
0
        private ViewManager CreateUUT()
        {
            var result = new ViewManager(_AppModelMock, _FrameControllerMock, _FrameConfigMock);

            return(result);
        }
Ejemplo n.º 37
0
 void ReLoadForm(bool addEvents)
 {
     ViewManager.NavigateToView(
         PTSProject.MDIForm1.DefInstance);
 }
Ejemplo n.º 38
0
    public override void OnEnterState(Dictionary <string, object> paramMap)
    {
        SceneManager.LoadScene("Loading");

        ViewManager.getInstance().OpenView("ViewLoading", true, null);
    }
	public void Init (ViewManager views) {
		#if SHOW_DEBUG_INFO
		this.views = views;
		#endif
	}
Ejemplo n.º 40
0
 public void ShowAdd()
 {
     ViewManager.Show("AddProduct");
 }
Ejemplo n.º 41
0
        public void InsertProduct()
        {
            IoMap map = ViewManager.CurrentMap;

            string productName        = map.GetInput <string>("ProductName");
            string productWidth       = map.GetInput <string>("Width");
            string productHeight      = map.GetInput <string>("Height");
            string productDepth       = map.GetInput <string>("Depth");
            string productDescription = map.GetInput <string>("Description");

            decimal width, height, depth;

            width = height = depth = 0;

            string error = "";

            if (productName == null || string.IsNullOrWhiteSpace(productName))
            {
                error += "You must enter a product name\n";
            }

            if (productWidth == null || string.IsNullOrWhiteSpace(productWidth))
            {
                error += "You must enter a product width\n";
            }
            if (productHeight == null || string.IsNullOrWhiteSpace(productHeight))
            {
                error += "You must enter a product height\n";
            }
            if (productDepth == null || string.IsNullOrWhiteSpace(productDepth))
            {
                error += "You must enter a product depth\n";
            }

            if (productDescription == null || string.IsNullOrWhiteSpace(productDescription))
            {
                error += "You must enter a product description\n";
            }

            if (error == "")
            {
                if (!decimal.TryParse(productWidth, out width))
                {
                    error += "Width must be numeric\n";
                }
                if (!decimal.TryParse(productWidth, out height))
                {
                    error += "Width must be numeric\n";
                }
                if (!decimal.TryParse(productWidth, out depth))
                {
                    error += "Width must be numeric\n";
                }
            }

            if (error == "")
            {
                Model.Product item = new Model.Product()
                {
                    Name        = productName,
                    Description = productDescription,
                    Width       = width,
                    Height      = height,
                    Depth       = depth
                };

                if (DataAccess.Insert(item))
                {
                    ViewManager.ShowFlash("Product has been added", FlashMessageType.Good);
                }
                else
                {
                    ViewManager.ShowFlash("Failed to add product: " + DataAccess.Database.LastFailReason.Message, FlashMessageType.Bad);
                }
            }
            else
            {
                ViewManager.ShowFlash(error, FlashMessageType.Bad);
                return;
            }
        }
Ejemplo n.º 42
0
 private Vector2 RandomZonePos(Vector2 characterPosition, ViewManager viewManager)
 {
     var angle = Math.Sqrt(Helper.RandomNextDouble()) * Math.PI * 2;
     var gRadius = Helper.RandomInt(viewManager.RelativeY(10), viewManager.RelativeX(125));
     return new Vector2((int)(characterPosition.X + gRadius * Math.Cos(angle)),
         (int)(characterPosition.Y + gRadius * Math.Sin(angle)));
 }
Ejemplo n.º 43
0
 public override void EndInit()
 {
     ViewManager.AddValue(typeof(MainW), this);
 }
Ejemplo n.º 44
0
        /// <summary>
        /// Show the group popup relative to the parent group instance.
        /// </summary>
        /// <param name="parentScreenRect">Screen rectangle of the parent.</param>
        public void ShowCalculatingSize(Rectangle parentScreenRect)
        {
            // Get the size the popup would like to be
            Size popupSize = ViewManager.GetPreferredSize(Renderer, Size.Empty);

            // Get the resolved position for the popup page
            PopupPagePosition position = _navigator.ResolvePopupPagePosition();

            // Find the size and position relative to the parent screen rect
            switch (position)
            {
            case PopupPagePosition.AboveNear:
                parentScreenRect = new Rectangle(parentScreenRect.Left, parentScreenRect.Top - _navigator.PopupPages.Gap - popupSize.Height, popupSize.Width, popupSize.Height);
                break;

            case PopupPagePosition.AboveMatch:
                parentScreenRect = new Rectangle(parentScreenRect.Left, parentScreenRect.Top - _navigator.PopupPages.Gap - popupSize.Height, parentScreenRect.Width, popupSize.Height);
                break;

            case PopupPagePosition.AboveFar:
                parentScreenRect = new Rectangle(parentScreenRect.Right - popupSize.Width, parentScreenRect.Top - _navigator.PopupPages.Gap - popupSize.Height, popupSize.Width, popupSize.Height);
                break;

            case PopupPagePosition.BelowNear:
                parentScreenRect = new Rectangle(parentScreenRect.Left, parentScreenRect.Bottom + _navigator.PopupPages.Gap, popupSize.Width, popupSize.Height);
                break;

            case PopupPagePosition.BelowMatch:
                parentScreenRect = new Rectangle(parentScreenRect.Left, parentScreenRect.Bottom + _navigator.PopupPages.Gap, parentScreenRect.Width, popupSize.Height);
                break;

            case PopupPagePosition.BelowFar:
                parentScreenRect = new Rectangle(parentScreenRect.Right - popupSize.Width, parentScreenRect.Bottom + _navigator.PopupPages.Gap, popupSize.Width, popupSize.Height);
                break;

            case PopupPagePosition.FarBottom:
                parentScreenRect = new Rectangle(parentScreenRect.Right + _navigator.PopupPages.Gap, parentScreenRect.Bottom - popupSize.Height, popupSize.Width, popupSize.Height);
                break;

            case PopupPagePosition.FarMatch:
                parentScreenRect = new Rectangle(parentScreenRect.Right + _navigator.PopupPages.Gap, parentScreenRect.Top, popupSize.Width, parentScreenRect.Height);
                break;

            case PopupPagePosition.FarTop:
                parentScreenRect = new Rectangle(parentScreenRect.Right + _navigator.PopupPages.Gap, parentScreenRect.Top, popupSize.Width, popupSize.Height);
                break;

            case PopupPagePosition.NearBottom:
                parentScreenRect = new Rectangle(parentScreenRect.Left - _navigator.PopupPages.Gap - popupSize.Width, parentScreenRect.Bottom - popupSize.Height, popupSize.Width, popupSize.Height);
                break;

            case PopupPagePosition.NearMatch:
                parentScreenRect = new Rectangle(parentScreenRect.Left - _navigator.PopupPages.Gap - popupSize.Width, parentScreenRect.Top, popupSize.Width, parentScreenRect.Height);
                break;

            case PopupPagePosition.NearTop:
                parentScreenRect = new Rectangle(parentScreenRect.Left - _navigator.PopupPages.Gap - popupSize.Width, parentScreenRect.Top, popupSize.Width, popupSize.Height);
                break;
            }

            PopupPageEventArgs e = new PopupPageEventArgs(_page,
                                                          _navigator.Pages.IndexOf(_page),
                                                          parentScreenRect);

            // Use event to allow the popup to be cancelled or the position altered
            _navigator.OnDisplayPopupPage(e);

            // Do we need to kill ourself
            if (!e.Cancel)
            {
                Show(e.ScreenRect);
            }
            else
            {
                Dispose();
            }
        }
Ejemplo n.º 45
0
        /// <summary>
        /// Generates a position for zone, created the zone and adds it to the list of zones
        /// </summary>
        /// <param name="character"></param>
        /// <param name="viewManager"></param>
        /// <param name="zoneRadius"></param>
        private void CreateNewZone(Character character, ViewManager viewManager, int zoneRadius)
        {
            bool zoneCreated = false;
            int counter = 0;
            int counterMax = 5;

            while (!zoneCreated && counter < counterMax)
            {
                counter++;

                Vector2 pos = RandomZonePos(character.Position, viewManager);
                zoneCreated = true;

                for (int i = 0; i < elementalZones.Count; i++)
                {
                    // More lenient zone overlapping allowed
                    if (Vector2.DistanceSquared(elementalZones[i].Position, pos) < zoneRadius * zoneRadius / 4)
                    {
                        zoneCreated = false;
                        break;
                    }
                }

                if (zoneCreated)
                    AddNewZone(pos, character.StatAverage, zoneRadius);
            }
        }
Ejemplo n.º 46
0
 private void Setup()
 {
     ViewManager.DisplaySetupView(GetDisplayPreviewModuleDataModel());
 }
Ejemplo n.º 47
0
 public void Update(GameTime gameTime, Character character, ViewManager viewManager)
 {
     UpdateZones(gameTime, character, viewManager);
     UpdateElementals(gameTime, character, viewManager);
 }
Ejemplo n.º 48
0
		//获取管理器单例
		static FourBull()
		{
			mPublicLoader = new AssetHelper (PublicName);
			mPrivateLoader = new AssetHelper (ModuleName);
			mMessager = new Messager ();
			mViewManager = ViewManager.Instance;
			mAudioManager = AudioManager.Instance;
			mSceneManager = SceneManager.Instance;
			mClientManager = GameClientManager.Instance;
		}
Ejemplo n.º 49
0
        private void UpdateZones(GameTime gameTime, Character character, ViewManager viewManager)
        {
             // Using relativeX for both check for a circle image zone
            int zoneRadius = viewManager.RelativeX(50);

            if (newZoneNeeded)
            {
                // Console.WriteLine("New zone needed");
                if (elementalZones.Count == 0)
                {
                    // Create a zone with the character at the radius
                    AddNewZone(character.Position, character.StatAverage, zoneRadius);
                } else if(elementalZones.Count < maxZoneCount) {
                    CreateNewZone(character, viewManager, zoneRadius);
                }
            }
            else
            {
                elapsedZoneTime += (int)gameTime.ElapsedGameTime.TotalMilliseconds;

                if (elapsedZoneTime >= zoneInterval)
                {
                    newZoneNeeded = true;
                    elapsedZoneTime = 0;
                }
            }

            for (int i = 0; i < elementalZones.Count; i++)
            {
                // Smaller removal radius for zones
                if (elementalZones[i].GeneratedAll || Vector2.DistanceSquared(character.Position, elementalZones[i].Position)
                    > viewManager.RelativeX(relativeRemovalRadius) * viewManager.RelativeX(relativeRemovalRadius))
                {
                    // Console.WriteLine("Zone removed");
                    elementalZones.RemoveAt(i);
                }
                else
                {
                    elementalZones[i].Update(gameTime, character.Position);

                    if (elementalZones[i].GeneratingElement)
                    {
                        elementalZones[i].GeneratingElement = false;

                        if (elementals.Count < maxElementalCount)
                        {
                            Elemental optionElemental = elementalZones[i].NewElemental(elementals);
                            
                            if(optionElemental != null) elementals.Add(optionElemental);

                            // Console.WriteLine("Elemental created at: " + elementals[elementals.Count - 1].Position);
                        }
                    }
                }
            }
        }
Ejemplo n.º 50
0
 public SiteTextFolderManager(ITextFolderProvider provider, ViewManager viewManager, PageManager pageManager)
     : base(provider)
 {
     this._viewManager = viewManager;
     this._pageManager = pageManager;
 }
Ejemplo n.º 51
0
 private void Start()
 {
     ViewManager.StartVisualizer(GetDisplayPreviewModuleDataModel());
 }
Ejemplo n.º 52
0
 public void ShowLostDamaged()
 {
     ViewManager.Show("LostDamagedItems");
 }
Ejemplo n.º 53
0
 public FeedController(ViewManager viewManager, IAuthenticationService authenticationService)
 {
     _postView = viewManager.GetView<IPostView>();
     _blogView = viewManager.GetView<IBlogView>();
 }
Ejemplo n.º 54
0
 /// <summary>
 /// Initializes a new instance of the AbstractScaleChangeEffect class
 /// </summary>
 /// <param name="viewManager">The view manager to be affected</param>
 /// <param name="finalScaleValue">The value wanted for the scale</param>
 public AbstractScaleChangeEffect(ViewManager viewManager, double finalScaleValue)
     : base(viewManager)
 {
     this.finalScaleValue = finalScaleValue;
 }
Ejemplo n.º 55
0
 void Awake()
 {
     mInstance = this;
     DontDestroyOnLoad(this);
 }
Ejemplo n.º 56
0
 private static void ExecutionValuesChanged(ExecutionStateValues stateValues)
 {
     ViewManager.UpdatePreviewExecutionStateValues(stateValues);
 }
Ejemplo n.º 57
0
 private void PreferencesCommandClick(object sender, EventArgs e)
 {
     ViewManager.DisplayPreferences(GetDisplayPreviewModuleDataModel());
 }
Ejemplo n.º 58
0
        public AjaxResult responseInHtml(Page page){
            String output = new ViewManager().RenderView("~/UserControls/UserList.ascx");

            return new AjaxResult(output);
        }
Ejemplo n.º 59
0
 private static void EnsureVisualizerIsClosed()
 {
     ViewManager.EnsureVisualizerIsClosed();
 }
Ejemplo n.º 60
0
 public ViewManager(Stage stage)
 {
     srcClip = stage;
     instance = this;
 }