Exemple #1
0
        public static ani_GalleryShopRegister ReturnRegister(ani_GalleryShopRegister[] objects)
        {
            ThumbnailKey thumbnail           = ThumbnailKey.kInvalidThumbnailKey;
            string       text                = string.Empty;
            List <ObjectPicker.RowInfo> list = new List <ObjectPicker.RowInfo>();

            foreach (ani_GalleryShopRegister t in objects)
            {
                List <ObjectPicker.ColumnInfo> list2 = new List <ObjectPicker.ColumnInfo>();

                int num = 0;
                thumbnail = t.GetThumbnailKey();

                text = t.Info.RegisterName;

                //common
                list2.Add(new ObjectPicker.ThumbAndTextColumn(thumbnail, text));
                list2.Add(new ObjectPicker.MoneyColumn(num));
                ObjectPicker.RowInfo item = new ObjectPicker.RowInfo(t, list2);
                list.Add(item);
            }


            List <ObjectPicker.HeaderInfo> list3 = new List <ObjectPicker.HeaderInfo>();
            List <ObjectPicker.TabInfo>    list4 = new List <ObjectPicker.TabInfo>();

            list3.Add(new ObjectPicker.HeaderInfo(string.Empty, string.Empty, 200));
            list3.Add(new ObjectPicker.HeaderInfo("1", "2"));
            list4.Add(new ObjectPicker.TabInfo("3", "4", list));
            List <ObjectPicker.RowInfo> list5 = TaxCollectorSimpleDialog.Show("", 0, list4, list3, true);

            if (list5 == null || list5.Count != 1)
            {
                return(null);
            }
            return(list5[0].Item as ani_GalleryShopRegister);
        }
 public static List <ObjectPicker.RowInfo> Show(string title, int funds, List <ObjectPicker.TabInfo> listObjs, List <ObjectPicker.HeaderInfo> headers, bool viewTypeToggle, Vector2 position)
 {
     return(TaxCollectorSimpleDialog.Show(title, funds, listObjs, headers, viewTypeToggle, position, "OK"));
 }
 public static List <ObjectPicker.RowInfo> Show(string title, int funds, List <ObjectPicker.TabInfo> listObjs, List <ObjectPicker.HeaderInfo> headers, bool viewTypeToggle, string okayCaption)
 {
     return(TaxCollectorSimpleDialog.Show(title, funds, listObjs, headers, viewTypeToggle, new Vector2(-1f, -1f), okayCaption));
 }
 public static List <ObjectPicker.RowInfo> Show(string title, int funds, List <ObjectPicker.TabInfo> listObjs, List <ObjectPicker.HeaderInfo> headers)
 {
     return(TaxCollectorSimpleDialog.Show(title, funds, listObjs, headers, false));
 }