Esempio n. 1
0
    public void OnClick()
    {
        BtnsColumn[] btns = transform.parent.GetComponentsInChildren<BtnsColumn>();
        foreach(BtnsColumn btn in btns)
            btn.IsSelected = false;
        IsSelected = true;

        if(mSort == SORT.ASC)
            mSort = SORT.DESC;
        else
            mSort = SORT.ASC;

        transform.root.FindChild("PlayerRecords").GetComponent<PlayerRecords>().Buildup();
    }
Esempio n. 2
0
    void Print()
    {
        sort   = (SORT)EditorGUILayout.EnumPopup("Trier par :", sort);
        filter = EditorGUILayout.TextField("Filtre :", filter);

        switch (sort)
        {
        case SORT.COMPONENTS:
            PrintCompos();
            break;

        case SORT.GAMEOBJECTS:
            PrintGO();
            break;
        }
    }
Esempio n. 3
0
    public void OnClick()
    {
        BtnsColumn[] btns = transform.parent.GetComponentsInChildren <BtnsColumn>();
        foreach (BtnsColumn btn in btns)
        {
            btn.IsSelected = false;
        }
        IsSelected = true;

        if (mSort == SORT.ASC)
        {
            mSort = SORT.DESC;
        }
        else
        {
            mSort = SORT.ASC;
        }

        transform.root.FindChild("PlayerRecords").GetComponent <PlayerRecords>().Buildup();
    }
Esempio n. 4
0
        private void btnSort_Click(object sender, EventArgs e)
        {
            List <dataItem4Sccomp> tmp_list;

            if (this.sort_item == SORT.COMPNAM)
            {
                this.sort_item            = SORT.COMPCOD;
                tmp_list                  = this.list_sccomp_item.OrderBy(s => s.compcod).ToList <dataItem4Sccomp>();
                this.bs_sccomp.DataSource = tmp_list;
                this.bs_sccomp.ResetBindings(true);
                return;
            }

            if (this.sort_item == SORT.COMPCOD)
            {
                this.sort_item            = SORT.COMPNAM;
                tmp_list                  = this.list_sccomp_item.OrderBy(s => s.compnam).ToList <dataItem4Sccomp>();
                this.bs_sccomp.DataSource = tmp_list;
                this.bs_sccomp.ResetBindings(true);
                return;
            }
        }
 /// <summary>
 /// Sets the column in which will be sorted
 /// </summary>
 /// <param name="pk">The propertykey that identifies column</param>
 /// <param name="Order">The sort order</param>
 public void SetSortCollumn(PROPERTYKEY pk, SORT Order)
 {
     
     IFolderView2 ifv2 = GetFolderView2();
     SORTCOLUMN sc = new SORTCOLUMN();
     sc.propkey = pk;
     sc.direction = Order;
     IntPtr scptr = Marshal.AllocHGlobal(Marshal.SizeOf(sc));
     Marshal.StructureToPtr(sc, scptr, false);
     ifv2.SetSortColumns(scptr, 1);
     Marshal.FreeHGlobal(scptr);
 }
Esempio n. 6
0
    void Print()
    {
        sort = (SORT)EditorGUILayout.EnumPopup("Trier par :", sort);
        filter = EditorGUILayout.TextField("Filtre :", filter);

        switch (sort)
        {
            case SORT.COMPONENTS:
                PrintCompos();
                break;
            case SORT.GAMEOBJECTS:
                PrintGO();
                break;
        }
    }