public override void OnStateChanged(AppBarLayout appBarLayout, State state, int verticalOffset)
            {
                if (state == State.EXPANDED)
                {
                    //展开状态
                    v_detail.mTvPlayer.Visibility = ViewStates.Gone;    // .setVisibility(View.GONE);
                    v_detail.mAvText.Visibility   = ViewStates.Visible; // .setVisibility(View.VISIBLE);
                    v_detail.mToolbar.SetContentInsetsRelative(DisplayUtil.dp2px(v_detail.BaseContext, 15), 0);
                }
                else if (state == State.COLLAPSED)
                {
                    //折叠状态
                    v_detail.mTvPlayer.Visibility = ViewStates.Visible; //.setVisibility(View.VISIBLE);
                    v_detail.mAvText.Visibility   = ViewStates.Gone;    //.setVisibility(View.GONE);
                    v_detail.mToolbar.SetContentInsetsRelative(DisplayUtil.dp2px(v_detail, 150), 0);
                }
                else
                {
                    v_detail.mTvPlayer.Visibility = ViewStates.Gone;    //.setVisibility(View.GONE);
                    v_detail.mAvText.Visibility   = ViewStates.Visible; //.setVisibility(View.VISIBLE);
                    v_detail.mToolbar.SetContentInsetsRelative(DisplayUtil.dp2px(v_detail, 15), 0);
                }
                //if (v_detail.mCollapsingToolbarLayout.NestedScrollingEnabled)
                //{

                //}
            }
Exemplo n.º 2
0
    /// <summary>
    /// 获取皮肤项
    /// </summary>
    /// <param name="target"></param>
    /// <returns></returns>
    public SkinManagerItem GetItem(Transform target)
    {
        if (null == m_dic)
        {
            m_dic = new Dictionary <Transform, SkinManagerItem>();
        }

        SkinManagerItem item;

        try
        {
            if (!m_dic.TryGetValue(target, out item))
            {
                item = new SkinManagerItem();

                item.owner = target;
                item.skin  = DisplayUtil.SearchHierarchyForBone(target.transform, SkinName_Skin);
                item.hair  = DisplayUtil.SearchHierarchyForBone(target.transform, SkinName_Hair);
                item.cloth = DisplayUtil.SearchHierarchyForBone(target.transform, SkinName_Cloth);

                m_dic[target] = item;
            }

            return(item);
        }
        catch
        {
            Debug.Log("is destory : " + target);
        }

        target = null;
        return(null);
    }
Exemplo n.º 3
0
        protected override void OnStart()
        {
            base.OnStart();
            if (Btn != null)
            {
                Btn.AddClick(OnClickBtn);
                spNormal = Btn.normalSprite;
                spOver   = Btn.hoverSprite;
            }
            List.barInContent = true;
            UISprite btnSprite = Btn.GetComponent <UISprite>();

            if (isUpDirection)
            {
                List.transform.localPosition = new Vector3(List.transform.localPosition.x, List.ListHeight + 2, 0);
            }
            var objArrow = DisplayUtil.GetChildByName(Btn.transform, "spArrowDown");

            if (objArrow != null)
            {
                spArrow = objArrow.GetComponent <CButton>();
            }
            //else
            //{
            //    List.transform.localPosition = Btn.transform.localPosition + Vector3.down * btnSprite.height;
            //}
            //List.gameObject.SetActive(false);
            ActivieList(false);
        }
Exemplo n.º 4
0
        internal static void UserInfo(GenericUserParms parms)
        {
            if (parms.UserName == null)
            {
                throw new InvalidOperationException("Must specify a user");
            }

            foreach (var un in parms.UserName)
            {
                var user = m_client.GetUsers(o => o.UserName == un).CollectionItem.FirstOrDefault() as SecurityUserInfo;
                if (user == null)
                {
                    throw new KeyNotFoundException($"User {un} not found");
                }

                DisplayUtil.PrintPolicies(user,
                                          new string[] { "Name", "SID", "Email", "Phone", "Invalid Logins", "Lockout", "Last Login", "Created", "Updated", "De-Activated", "Roles" },
                                          u => u.UserName,
                                          u => u.Key,
                                          u => u.Email,
                                          u => u.PhoneNumber,
                                          u => u.InvalidLoginAttempts,
                                          u => u.LockoutXml,
                                          u => u.LastLoginTimeXml,
                                          u => String.Format("{0} ({1})", u.CreationTimeXml, m_client.GetUser(m_client.GetProvenance(u.CreatedByKey.Value).UserKey.Value).Entity.UserName),
                                          u => String.Format("{0} ({1})", u.UpdatedTimeXml, m_client.GetUser(m_client.GetProvenance(u.UpdatedByKey.Value).UserKey.Value).Entity.UserName),
                                          u => String.Format("{0} ({1})", u.ObsoletionTimeXml, m_client.GetUser(m_client.GetProvenance(u.ObsoletedByKey.Value).UserKey.Value).Entity.UserName),
                                          u => String.Join(" , ", user.Roles)
                                          );
            }
        }
Exemplo n.º 5
0
        private static void DisplayImage()
        {
            Canvas       canvas = new Canvas(500, 300);
            Rectangle    r1     = new Rectangle(50, 50, 100, 100, Color.DarkBlue);
            Rectangle    r2     = new Rectangle(100, 100, 10, 100, Color.DarkSlateBlue);
            Rectangle    r3     = new Rectangle(300, 10, 50, 300, Color.Khaki);
            Rectangle    r4     = new Rectangle(300, 250, 50, 50, Color.Red);
            VarRectangle vr1    = new VarRectangle(new Point(100, 100), new Point(110, 150), new Point(200, 140), new Point(190, 90), Color.Turquoise);



            Triangle t1 = new Triangle(new Point(10, 10), new Point(150, 40), new Point(70, 80), Color.Silver);
            Triangle t2 = new Triangle(new Point(400, 200), new Point(500, 140), new Point(500, 250), Color.LimeGreen);

            canvas.AddShape(vr1);
            canvas.AddShape(t2);
            canvas.AddShape(r1);
            canvas.AddShape(r2);
            canvas.AddShape(r4);
            canvas.AddShape(r3);
            canvas.AddShape(t1);

            NoiseFilter noiseImage = new NoiseFilter(canvas);

            DisplayUtil.DisplayImage(canvas);
        }
        public void GetPrettyTestName_LongTestName_ExpectedBehavior()
        {
            // Arrange
            string fullName      = "TestingPathSuperLongPathThatIsReallyLongAndShouldGetTruncated.TestingTestNameWithAReallyLongPath(Arguments here and more here because this is too long)";
            var    pathColor     = Color.Red;
            var    testNameColor = Color.White;
            var    argsColor     = Color.Yellow;

            // Act
            DisplayUtil.MaxWidth = 94;
            var result = DisplayUtil.GetPrettyTestName(
                fullName,
                pathColor,
                testNameColor,
                argsColor
                );

            // Assert
            Assert.NotNull(result);
            Assert.AreEqual(3, result.TextFragments.Count);
            Assert.AreEqual("Te...", result.TextFragments[0].Text);
            Assert.AreEqual(pathColor, result.TextFragments[0].ForegroundColor);
            Assert.AreEqual("TestingTestNameWithAReallyLongPath", result.TextFragments[1].Text);
            Assert.AreEqual(testNameColor, result.TextFragments[1].ForegroundColor);
            Assert.AreEqual("(Arguments here and more here because this is too long)", result.TextFragments[2].Text);
            Assert.AreEqual(argsColor, result.TextFragments[2].ForegroundColor);
            mockRepository.VerifyAll();
        }
        public void GetPrettyTestName_TestName_ExpectedBehavior()
        {
            // Arrange
            string fullName                  = "TestingPath.TestingTestName(Arguments here)";
            var    pathColor                 = Color.Red;
            var    testNameColor             = Color.White;
            var    argsColor                 = Color.Yellow;
            int    maxTestCaseArgumentLength = 0;

            // Act
            var result = DisplayUtil.GetPrettyTestName(
                fullName,
                pathColor,
                testNameColor,
                argsColor,
                maxTestCaseArgumentLength);

            // Assert
            Assert.NotNull(result);
            Assert.AreEqual(fullName.Length, result.Length);
            Assert.AreEqual("TestingPath.", result.TextFragments[0].Text);
            Assert.AreEqual(pathColor, result.TextFragments[0].ForegroundColor);
            Assert.AreEqual("TestingTestName", result.TextFragments[1].Text);
            Assert.AreEqual(testNameColor, result.TextFragments[1].ForegroundColor);
            Assert.AreEqual("(Arguments here)", result.TextFragments[2].Text);
            Assert.AreEqual(argsColor, result.TextFragments[2].ForegroundColor);
            mockRepository.VerifyAll();
        }
Exemplo n.º 8
0
        /*--------------------------------------------------------------------------------------------*/
        private void TryUpdateColor(HoverMesh pHoverMesh)
        {
            Controllers.Set(SettingsControllerMap.MeshColors, this);

            vCurrColor = GetDisplayColor(pHoverMesh);

            if (FlashColorMilliseconds > 0)
            {
                TimeSpan test = DateTime.UtcNow - GetComponent <HoverIndicator>().LatestSelectionTime;

                if (test.TotalMilliseconds < FlashColorMilliseconds)
                {
                    vCurrColor = Color.Lerp(FlashColor, vCurrColor,
                                            (float)test.TotalMilliseconds / FlashColorMilliseconds);
                }
            }

            if (!pHoverMesh.DidRebuildMesh && Alpha == vPrevAlpha && vCurrColor == vPrevColor)
            {
                return;
            }

            Color colorForAllVertices = DisplayUtil.FadeColor(vCurrColor, Alpha);

            pHoverMesh.Builder.CommitColors(colorForAllVertices);
        }
        public void ShowPromptTip(string prompt, string extraInfo)
        {
            IMasterDisplayWindow masterWindow = GetCurrentMainDisplayWindow();

            if (null == masterWindow)
            {
                log.Info("Can not show error message for master window is null");
                return;
            }

            CloseMessageBoxTip();
            _messageBoxTip       = new MessageBoxTip();
            _messageTipExtraInfo = extraInfo;
            Window tipOwner = null;

            if (
                null != (masterWindow as VideoPeopleWindow) &&
                LayoutBackgroundWindow.Instance.IsLoaded &&
                LayoutBackgroundWindow.Instance.LayoutOperationbarWindow.IsLoaded
                )
            {
                tipOwner = LayoutBackgroundWindow.Instance.LayoutOperationbarWindow;
            }
            log.InfoFormat("ShowPromptTip(MessageBoxTip), hash: {0}, tipOwner is null:{1}, ", _messageBoxTip.GetHashCode(), null == tipOwner);
            DisplayUtil.SetWindowCenterAndOwner(_messageBoxTip, masterWindow, tipOwner);
            _messageBoxTip.SetTitleAndMsg(LanguageUtil.Instance.GetValueByKey("PROMPT"), prompt, LanguageUtil.Instance.GetValueByKey("CONFIRM"));
            _messageBoxTip.ShowDialog();
            _messageBoxTip       = null;
            _messageTipExtraInfo = "";
        }
Exemplo n.º 10
0
        private PfCustomer Build()
        {
            PfCustomer customer = new PfCustomer();


            customer.ID                = this.skinTextBoxID.SkinTxt.Text.Trim();
            customer.FirstCharSpell    = DisplayUtil.GetPYString(this.skinTextBoxName.SkinTxt.Text.Trim());
            customer.Name              = this.skinTextBoxName.SkinTxt.Text.Trim();
            customer.Contact           = this.skinTextBox_Contact.SkinTxt.Text.Trim();
            customer.ContactPhone      = this.skinTextBox_ContactPhone.SkinTxt.Text.Trim();
            customer.BankInfo          = this.skinTextBox_BankInfo.SkinTxt.Text.Trim();
            customer.Remarks           = this.skinTextBox_Remarks.SkinTxt.Text.Trim();
            customer.PfDiscount        = this.skinTextBox_Percent.Value;
            customer.BusinessAccountID = textBoxBusinessAccount.Text.Trim();
            customer.Password          = this.textBoxPwd.Text.Trim();
            customer.LastAccountTime   = DateTime.Now;
            customer.DefaultAddressID  = 0;
            customer.Balance           = 0;
            customer.PaymentBalance    = 0;
            if (node.Text != "所有分销客户")
            {
                customer.DistributorID = curItemID;
            }

            //  SupplyDiscount = Decimal.ToByte(this.numericUpDownSupplyDiscount.Value),
            customer.Enabled      = this.skinCheckBox_Enabled.Checked;
            customer.CreateTime   = DateTime.Now;
            customer.CustomerType = (byte)(skinRadioButtonSale.Checked ? 1 : 0);


            return(customer);
        }
Exemplo n.º 11
0
 private void SkinTxt_TextChanged(object sender, EventArgs e)
 {
     if (String.IsNullOrEmpty(skinTextBoxCode.Text))
     {
         skinTextBoxCode.Text = DisplayUtil.GetPYString(skinTextBoxID.Text);
     }
 }
Exemplo n.º 12
0
        public static string Detail(this Tk5FieldInfoEx field, IFieldValueProvider row, bool showHint, bool needId)
        {
            TkDebug.AssertArgumentNull(field, "field", null);

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();

            AddNormalAttribute(field, builder, field.NickName, needId, true);
            object fieldValue = row[field.NickName];

            builder.Add("data-value", fieldValue.ToString());
            HtmlAttribute classAttr = builder["class"];

            if (classAttr == null)
            {
                builder.Add("class", "detail-content");
            }
            else
            {
                classAttr.Value = HtmlCommonUtil.MergeClass(classAttr.Value, "detail-content");
            }
            string displayValue = DisplayUtil.GetDisplayString(field.ListDetail.DetailDisplay,
                                                               fieldValue, field, row);

            return(string.Format(ObjectUtil.SysCulture, "<div {0}>{1}</div>",
                                 builder.CreateAttribute(), displayValue));
        }
Exemplo n.º 13
0
        public static string DisplayValue(this Tk5FieldInfoEx field, IFieldValueProvider row)
        {
            object fieldValue = row[field.NickName];

            return(DisplayUtil.GetDisplayString(field.ListDetail.ListDisplay, fieldValue, field, row));
            //return DisplayValue(field, row, false);
        }
Exemplo n.º 14
0
        /// <summary>
        /// 商品情報一覧取得
        /// </summary>
        /// <returns></returns>
        async Task GetItemList()
        {
            // 商品情報一覧を取得
            var targetItemList = await ItemMethod.GetItemListAsync(true);

            // 初期化
            ItemList.Clear();
            ProductPoint = string.Empty;
            TotalSales   = string.Empty;

            // 取得した商品を画面表示用のコレクションに追加&合計金額を取得
            decimal totalSales = 0;

            foreach (var item in targetItemList)
            {
                totalSales += Convert.ToDecimal(item.SalePrice);
                ItemList.Add(item);
            }

            // 商品点数を設定
            ProductPoint = ItemList.Count.ToString();

            // 合計金額を設定
            TotalSales = DisplayUtil.convertNumToDisplay(totalSales.ToString());
        }
Exemplo n.º 15
0
        internal static void ListPolicies(ListPolicyParms parms)
        {
            IEnumerable <SecurityPolicy> policies = null;

            if (!String.IsNullOrEmpty(parms.Name))
            {
                policies = m_client.GetPolicies(o => o.Name.Contains(parms.Name)).CollectionItem.OfType <SecurityPolicy>();
            }
            else if (!String.IsNullOrEmpty(parms.Oid))
            {
                policies = m_client.GetPolicies(o => o.Oid.Contains(parms.Oid)).CollectionItem.OfType <SecurityPolicy>();
            }
            else
            {
                policies = m_client.GetPolicies(o => true).CollectionItem.OfType <SecurityPolicy>();
            }

            // Now output
            DisplayUtil.TablePrint(policies,
                                   new String[] { "SID", "Name", "Oid" },
                                   new int[] { 38, 38, 44 },
                                   p => p.Key,
                                   p => p.Name,
                                   p => p.Oid
                                   );
        }
Exemplo n.º 16
0
        private void ResetItems()
        {
            CItemRender item;

            for (int i = 0; i < _allItem.Count; i++)
            {
                item      = _allItem[i];
                item.name = "Item" + i;
                CItemRender w = item;
                if (_dataCondition != null)
                {
                    w.SetCondition(_dataCondition);
                }
                w.Data = _dataProvider[i];

                float itemX, itemY;
                //一列一列的顺序?
                itemY = content.baseClipRegion.w / 2 + content.baseClipRegion.y + offY;
                itemX = i * itemWidth;
                item.tran.localPosition = new Vector3(itemX, itemY, 0);
                List <BoxCollider> boxList = DisplayUtil.GetComponentByType <BoxCollider>(item.go);
                for (int n = 0, len = boxList.Count; n < len; n++)
                {
                    EventUtil.AddHover(boxList[n].gameObject, OnHover, item);
                }
            }
        }
Exemplo n.º 17
0
        internal static void ApplicationInfo(GenericApplicationParms parms)
        {
            if (parms.ApplictionId == null)
            {
                throw new InvalidOperationException("Must specify a application");
            }

            foreach (var un in parms.ApplictionId)
            {
                var device = m_client.GetApplications(o => o.Name == un).CollectionItem.FirstOrDefault() as SecurityApplicationInfo;
                if (device == null)
                {
                    throw new KeyNotFoundException($"Application {un} not found");
                }

                DisplayUtil.PrintPolicies(device,
                                          new string[] { "Name", "SID", "Invalid Auth", "Lockout", "Last Auth", "Created", "Updated", "De-Activated" },
                                          u => u.Name,
                                          u => u.Key,
                                          u => u.InvalidAuthAttempts,
                                          u => u.LockoutXml,
                                          u => u.LastAuthenticationXml,
                                          u => String.Format("{0} ({1})", u.CreationTimeXml, m_client.GetUser(m_client.GetProvenance(u.CreatedByKey.Value).UserKey.Value).Entity.UserName),
                                          u => String.Format("{0} ({1})", u.UpdatedTimeXml, m_client.GetUser(m_client.GetProvenance(u.UpdatedByKey.Value).UserKey.Value).Entity.UserName),
                                          u => String.Format("{0} ({1})", u.ObsoletionTimeXml, m_client.GetUser(m_client.GetProvenance(u.ObsoletedByKey.Value).UserKey.Value).Entity.UserName)
                                          );
            }
        }
Exemplo n.º 18
0
        /// <summary>
        /// Lösung zu Aufgabe 4 von Übungsblatt 7
        /// Methode liest Daten zu Dreiecken aus einer Datei und stellt diese dar.
        /// </summary>
        private static void DisplayImageFromFile()
        {
            Canvas canvas = new Canvas(400, 300);

            string[] lines = File.ReadAllLines("triangles.txt");
            foreach (string l in lines)
            {
                string[] split  = l.Split(';');
                Point[]  points = new Point[3];
                for (int i = 0; i < 3; i++)
                {
                    int x = int.Parse(split[i + 1].Split(',')[0]);
                    int y = int.Parse(split[i + 1].Split(',')[1]);
                    points[i] = new Point(x, y);
                }
                int      r          = int.Parse(split[4].Split(',')[0]);
                int      g          = int.Parse(split[4].Split(',')[1]);
                int      b          = int.Parse(split[4].Split(',')[2]);
                Color    shapeColor = Color.FromArgb(r, g, b);
                Triangle triangle   = new Triangle(points[0], points[1], points[2], shapeColor);
                canvas.AddShape(triangle);
            }

            DisplayUtil.DisplayImage(canvas);
        }
Exemplo n.º 19
0
        public static CTabBar CreateTabBar(int x, int y, Transform parent, string[] items, int itemW, int itemH, int depth, int offsetX = 0)
        {
            GameObject obj = UnityEngine.Object.Instantiate(FuncUtil.GetUIAssetByPath(TABBAR_PATH)) as GameObject;

            if (obj == null)
            {
                return(null);
            }
            obj.transform.parent        = parent;
            obj.transform.localScale    = Vector3.one;
            obj.transform.localPosition = new Vector3(x, y, 0);
            CTabBar box         = obj.GetComponent <CTabBar>();
            var     defaultItem = DisplayUtil.GetChildByName(obj.transform, "Tab0");

            if (defaultItem != null)
            {
                GameObject.DestroyImmediate(defaultItem.gameObject);
            }
            box.RemoveItems();
            for (var i = 0; i < items.Length; i++)
            {
                var btn = CreateTabBarBtn(i * itemW + offsetX, 0, obj.transform, items[i], itemW, itemH, depth);
                btn.name = "Tab" + i;
            }
            box.Start();
            return(box);
        }
Exemplo n.º 20
0
        // [PolicyPermission(System.Security.Permissions.SecurityAction.Demand, PolicyId = PermissionPolicyIdentifiers.ReadMetadata)]
        internal static void ListRoles(ApplicationListParams parms)
        {
            AmiCollection list = null;
            int           tr   = 0;

            if (parms.Active)
            {
                list = m_client.Query <SecurityApplication>(o => o.ObsoletionTime.HasValue, 0, 100, out tr);
            }
            else if (parms.Locked)
            {
                list = m_client.Query <SecurityApplication>(o => o.Lockout.HasValue, 0, 100, out tr);
            }
            else
            {
                list = m_client.Query <SecurityApplication>(o => o.ObsoletionTime == null, 0, 100, out tr);
            }

            DisplayUtil.TablePrint(list.CollectionItem.OfType <SecurityApplicationInfo>(),
                                   new String[] { "SID", "Name", "Last Auth.", "Lockout", "ILA", "A" },
                                   new int[] { 38, 24, 22, 22, 4, 2 },
                                   o => o.Entity.Key,
                                   o => o.Entity.Name,
                                   o => o.Entity.LastAuthenticationXml,
                                   o => o.Entity.LockoutXml,
                                   o => o.Entity.InvalidAuthAttempts ?? 0,
                                   o => !o.Entity.ObsoletionTime.HasValue ? "*" : null);
        }
Exemplo n.º 21
0
        public bool Login(string userName, string pwd, string domainAddress)
        {
            if (CurrentLoginStatus != LoginStatus.NotLogin)
            {
                return(false);
            }

            if (string.IsNullOrEmpty(pwd) || string.IsNullOrEmpty(userName) || string.IsNullOrEmpty(domainAddress))
            {
                return(false);
            }

            EVSdkManager.Instance.EnableSecure(EnableSecure);
            _serverDomainAddress = domainAddress;
            LoginPassword        = pwd;
            CurrentLoginStatus   = LoginStatus.LoggingIn;

            Task.Run(() => {
                // When click button login in login dialog, the LoginWithLocation may block the UI thread and ProgressDialogLogin can not be displayed.
                // So exec LoginWithLocation in another thread.
                EVSdkManager.Instance.LoginWithLocation(domainAddress, ServerPort, userName, pwd);
            });

            Application.Current.Dispatcher.InvokeAsync(() =>
            {
                log.Info("Show ProgressDialogLogin");
                DisplayUtil.SetWindowCenterAndOwner(ProgressDialogLogin.Instance, (IMasterDisplayWindow)LoginWindow);
                ProgressDialogLogin.Instance.ShowDialog();
            });

            return(true);
        }
Exemplo n.º 22
0
        public override ColorTextBuilder Write(object parameters = null)
        {
            var builder = new ColorTextBuilder();

            WriteRoundBox(builder, $"Top {_configuration.SlowestTestsCount} slowest assemblies");
            var allAssembliesByName = _runContext.Runs
                                      .SelectMany(x => x.Key.EventEntries)
                                      .Where(x => x.Event.Event == EventNames.StartAssembly || x.Event.Event == EventNames.EndAssembly)
                                      .GroupBy(x => x.Event.TestSuite);
            var slowestAssemblies = allAssembliesByName
                                    .SelectMany(x => x.Select(y => y.Event))
                                    .Where(x => x.Event == EventNames.EndAssembly)
                                    .OrderByDescending(x => x.Duration)
                                    .GroupBy(x => x.TestSuite)
                                    .Take(_configuration.SlowestTestsCount);

            foreach (var test in slowestAssemblies)
            {
                builder.Append($" {UTF8Constants.Bullet} ");
                builder.Append(DisplayUtil.GetPrettyTestName(test.FirstOrDefault().TestSuite, _colorScheme.DarkDefault, _colorScheme.Default, _colorScheme.DarkDefault));
                builder.AppendLine($" {test.FirstOrDefault().Duration.ToElapsedTime()}", _colorScheme.Duration);
            }
            builder.AppendLine(Environment.NewLine);
            return(builder);
        }
        public static void ListAssigningAuthority(ListAssigningAuthorityParams parms)
        {
            IEnumerable <AssigningAuthority> auths = null;

            if (!String.IsNullOrEmpty(parms.Name))
            {
                auths = m_amiClient.GetAssigningAuthorities(o => o.Name.Contains(parms.Name)).CollectionItem.OfType <AssigningAuthority>();
            }
            else if (!String.IsNullOrEmpty(parms.Oid))
            {
                auths = m_amiClient.GetAssigningAuthorities(o => o.Oid == parms.Oid).CollectionItem.OfType <AssigningAuthority>();
            }
            else if (!String.IsNullOrEmpty(parms.Url))
            {
                auths = m_amiClient.GetAssigningAuthorities(o => o.Url == parms.Url).CollectionItem.OfType <AssigningAuthority>();
            }
            else
            {
                auths = m_amiClient.GetAssigningAuthorities(o => o.CreationTime != null).CollectionItem.OfType <AssigningAuthority>();
            }

            DisplayUtil.TablePrint(auths,
                                   o => o.DomainName,
                                   o => o.Name,
                                   o => o.Url,
                                   o => o.IsUnique);
        }
Exemplo n.º 24
0
        internal static string DateTimeEnd(Tk5FieldInfoEx field, IFieldValueProvider row)
        {
            string name       = GetSearchEndName(field);
            object fieldValue = row[name + "END"];
            string value      = DisplayUtil.GetDisplayString(field.Edit.Display, fieldValue, field, row);

            return(DateControl(field, "th", name, value, "yyyy-mm-dd hh:ii", 16, true, true));
        }
Exemplo n.º 25
0
    public void Init()
    {
        originalPosition = transform.position;
        var data = shopWindow.upgradeData[this.upgrade];

        priceText.text   = "<c=money>$</c>" + DisplayUtil.InsertCommas(data.price);
        upgradeText.text = data.name;
    }
Exemplo n.º 26
0
 public void Clear()
 {
     Transform[] list = DisplayUtil.getChildList(Content.transform);
     foreach (Transform t in list)
     {
         RemoveChild(t);
     }
 }
Exemplo n.º 27
0
        /*--------------------------------------------------------------------------------------------*/
        public void TreeUpdate()
        {
            HoverItemDataSlider slider = GetComponent <HoverItemDataSlider>();
            Color col = DisplayUtil.HsvToColor(slider.RangeValue, 1, 0.666f);

            UpdateButtonsColor(col);
            UpdateTrackColor(col);
        }
Exemplo n.º 28
0
        private static string Input(this Tk5FieldInfoEx field, IFieldValueProvider row,
                                    bool needId, bool isSearchCtrl)
        {
            TkDebug.AssertArgumentNull(field, "field", null);
            object fieldValue = row[field.NickName]; // DisplayUtil.GetValue(field.NickName, row);
            string value      = DisplayUtil.GetDisplayString(field.Edit.Display, fieldValue, field, row);

            return(InternalInput(field, field.NickName, value, needId, isSearchCtrl));
        }
Exemplo n.º 29
0
 public void Init()
 {
     upgradeData = shopWindow.upgradeData[upgrade];
     buyButton.buttonSignal.AddListener(OnBuyPressed);
     backButton.buttonSignal.AddListener(OnBackPressed);
     headerText.text  = "SHOP > " + upgradeData.name;
     description.text = upgradeData.description;
     priceText.text   = "<c=money>$</c>" + DisplayUtil.InsertCommas(upgradeData.price);
 }
Exemplo n.º 30
0
        internal static string InputEnd(Tk5FieldInfoEx field, IFieldValueProvider row)
        {
            TkDebug.AssertArgumentNull(field, "field", null);
            string name       = GetSearchEndName(field);
            object fieldValue = row[name]; // DisplayUtil.GetValue(name, row);
            string value      = DisplayUtil.GetDisplayString(field.Edit.Display, fieldValue, field, row);

            return(InternalInput(field, name, value, true, true));
        }