private void fastWarehouseAdjustmentIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "Adjustment_32";
             olvGroup.Subtitle   = "List count: " + olvGroup.Contents.Count.ToString();
         }
     }
 }
Beispiel #2
0
 private void fastCustomerIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "Bank-32";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Customer(s)";
         }
     }
 }
Beispiel #3
0
 private void fastBarcodes_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             //olvGroup.TitleImage = "Storage32";
             olvGroup.Subtitle = olvGroup.Contents.Count.ToString() + " Pack(s)";
         }
     }
 }
Beispiel #4
0
 private void fastForecastIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "pay-per-click";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Forecast(s)";
         }
     }
 }
Beispiel #5
0
 private void fastBatchMasterIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "Storage32";
             olvGroup.Subtitle   = olvGroup.Contents.Count.ToString() + " Batch" + (olvGroup.Contents.Count > 1 ? "es" : "");
         }
     }
 }
Beispiel #6
0
 private void fastDeliveryAdviceIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "Schedule-32";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Advice(s)";
         }
     }
 }
Beispiel #7
0
 private void fastBinLocationIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "BinLocation-1";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Bin(s)";
         }
     }
 }
Beispiel #8
0
 private void fastCommodityCategoryIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "2-squares";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Category(s)";
         }
     }
 }
 private void fastGoodsReceiptIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "Storage32";
             olvGroup.Subtitle   = "List count: " + olvGroup.Contents.Count.ToString();
         }
     }
 }
 private void fastCommodityTypeIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "google-drive";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Type(s)";
         }
     }
 }
Beispiel #11
0
 private void fastCommoditySettingIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "price-tag-32";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Item(s)";
         }
     }
 }
Beispiel #12
0
 private void fastTerritoryIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "earth-globe";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Territories";
         }
     }
 }
Beispiel #13
0
 private void dataListView_BeforeCreatingGroups(object sender, CreateGroupsEventArgs e)
 {
     if (_bti != null)
     {
         dataListView.GetColumn(ResStrings.BoxModeConfig_UpdateDataList_Box).MakeGroupies(
             new object[] { ResStrings.BoxModeConfig_UpdateDataList_Box },
             new string[] { "Rien", _bti.BoxRef },
             new string[] { "not", ResStrings.BoxModeConfig_dataListView_BeforeCreatingGroups_Box_Present },
             new string[] { "Not", ResStrings.BoxModeConfig_dataListView_BeforeCreatingGroups_Tag_s__present_in_selected_box },
             new string[] { "Rien", "" });
     }
 }
        /// <summary>
        /// Évènement créant les groupes selon l'option sélectionné
        /// </summary>
        private void olvClassement_BeforeCreatingGroups(object sender, CreateGroupsEventArgs e)
        {
            if (cmnuSortByCategory.Checked)
            {
                e.Parameters.GroupByColumn = colCategorie;
            }
            else
            {
                e.Parameters.GroupByColumn = colNom;
            }

            e.Parameters.GroupByOrder = SortOrder.Ascending;
        }
Beispiel #15
0
 private void fastNMVNTask_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             if (olvGroup.Key != null)
             {
                 olvGroup.TitleImage = olvGroup.Key.ToString() == "LOGISTICS ADMIN" ? "Warehouse_Navy-32" : (olvGroup.Key.ToString() == "WAREHOUSE CONTROLS" ? "Warehouse_Navy-32" : (olvGroup.Key.ToString() == "CUSTOMER MANAGEMENT" ? "Member-32" : (olvGroup.Key.ToString() == "WAREHOUSE RESOURCES" ? "Member-32" : "Report-Yellow-32")));
                 olvGroup.Subtitle   = olvGroup.Key.ToString() == "LOGISTICS ADMIN" ? "Focuses on Orders" : (olvGroup.Key.ToString() == "WAREHOUSE CONTROLS" ? "Regulator for Warehousing Activities" : (olvGroup.Key.ToString() == "CUSTOMER MANAGEMENT" ? "Sales Governance & Organization" : (olvGroup.Key.ToString() == "WAREHOUSE RESOURCES" ? "Commodities & Related Resources" : null)));
             }
         }
     }
 }
Beispiel #16
0
 private void fastGoodsIssueIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "Forklift_Yellow-32";
             olvGroup.Subtitle   = "List count: " + olvGroup.Contents.Count.ToString();
             if ((DateTime)olvGroup.Key < DateTime.Today.AddDays(-1))
             {
                 olvGroup.Collapsed = true;
             }
         }
     }
 }
Beispiel #17
0
 private void fastPickupIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
 {
     if (e.Groups != null && e.Groups.Count > 0)
     {
         foreach (OLVGroup olvGroup in e.Groups)
         {
             olvGroup.TitleImage = "Forklift";
             olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString();
             if ((this.CurrenntFilterTexts == null || this.CurrenntFilterTexts.Trim() == "") && (DateTime)olvGroup.Key < DateTime.Today.AddDays(-1))
             {
                 olvGroup.Collapsed = true;
             }
         }
     }
 }
Beispiel #18
0
        private void aboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "view=" + view + " | group.count=" + e.Groups.Count, LogManager.LogMessageType.OTHER);

            //List<ExchangeBalance> balances = GetBalances();
            listView.GroupImageList = ContentManager.WalletIconList;

            foreach (OLVGroup group in e.Groups)
            {
                string        key    = group.Key.ToString();
                WalletBalance wallet = PreferenceManager.WalletPreferences.Wallets.FirstOrDefault(item => item.Name == key);

                if (!groupStates.ContainsKey(key))
                {
                    groupStates.Add(key, false);
                }


                List <WalletBalance> wallets = PreferenceManager.WalletPreferences.WalletForks.FindAll(item => item.Name == key);


                //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "GroupId=" + group.Items.Count + " | Header=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | " + group.Collapsed);
                decimal usdTotal = wallets.Sum(item => item.TotalInUSD);
                decimal btcTotal = wallets.Sum(item => item.TotalInBTC);
                group.Header     = group.Header + " [" + wallets.Count + " Forks]";
                group.TitleImage = wallet.WalletName;



                /*
                 * if (group.Items.Count > 1)
                 * {
                 *  group.Task = "[" + group.Items.Count + "] " + usdTotal.ToString("C");
                 * }
                 * else
                 * {
                 *  group.Task = usdTotal.ToString("C");
                 * }
                 */


                group.Task     = usdTotal.ToString("C");
                group.Subtitle = "(" + btcTotal.ToString("N8") + ")";

                group.Collapsed = groupStates[key];
            }
        }
Beispiel #19
0
        private void fastReportIndex_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            //return; //DON'T SHOW ICON
            if (e.Groups != null && e.Groups.Count > 0)
            {
                foreach (OLVGroup olvGroup in e.Groups)
                {
                    olvGroup.TitleImage = "Analytics";
                    olvGroup.Subtitle   = "Count: " + olvGroup.Contents.Count.ToString() + " Reports";

                    if (this.ReportIndexCount > 15 && ((string)olvGroup.Key == "2.GOODS RECEIPT JOURNALS" || (string)olvGroup.Key == "3.GOODS RECEIPT PIVOT REPORTS"))
                    {
                        olvGroup.Collapsed = true;
                    }
                }
            }
        }
Beispiel #20
0
        private void olvStudent_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            foreach (var G in e.Groups)
            {
                G.Header = $"{G.Header} [{ G.Items.Count}]";

                switch (e.Parameters.GroupByColumn.Name)
                {
                case "ClassName":
                    G.Subtitle = $"Wychowawca klasy: {GetTutor(G.Key.ToString()).ToUpper()}";
                    break;

                default:

                    break;
                }
            }
        }
Beispiel #21
0
 private void ObjectListViewTransactionsOnAboutToCreateGroups(object sender,
                                                              CreateGroupsEventArgs createGroupsEventArgs)
 {
     foreach (var olvGroup in createGroupsEventArgs.Groups)
     {
         var total        = 0.0;
         var partnerShare = 0.0;
         var tax          = 0.0;
         foreach (var transaction in olvGroup.Items.Select(olvListItem => olvListItem.RowObject as Transaction))
         {
             total        = total + transaction.ReceivedAmount + transaction.SupportAmount;
             tax          = tax + transaction.Tax;
             partnerShare = partnerShare + transaction.PartnerShare;
         }
         olvGroup.Header +=
             $"[Income : {total:C2}][Partner Share : {partnerShare:C2}][Tax : {tax:C2}][Total : {total + partnerShare:C2}]";
     }
 }
Beispiel #22
0
 private void listSearchView_BeforeCreatingGroups(object sender, CreateGroupsEventArgs e)
 {
     try
     {
         if (e.Parameters.GroupByColumn != null)
         {
             if (!groupingColumns.Contains(e.Parameters.GroupByColumn.Name))
             {
                 var column = listSearchView.AllColumns.FirstOrDefault(x => x.Name == "Plugin");
                 if (column != null)
                 {
                     e.Parameters.GroupByColumn            = column;
                     e.Parameters.SortItemsByPrimaryColumn = false;
                 }
             }
         }
     }
     catch
     {
     }
 }
Beispiel #23
0
        void listView_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            foreach (var group in e.Groups)
            {
                Int64 insertedCharacters = 0;
                Int64 keystrokesSaved    = 0;
                var   efficiencies       = new List <double>();
                foreach (var item in group.Items)
                {
                    var trackInfoView = (TrackInfoView)item.RowObject;
                    insertedCharacters += trackInfoView.InsertedCharacters;
                    keystrokesSaved    += trackInfoView.KeystrokesSaved;
                    efficiencies.Add(trackInfoView.Efficiency);
                }

                var efficiency = efficiencies.Average(x => Math.Round(x, 0));

                group.Header = string.Format("{0} {1:n0} (inserted characters) - {2}% (efficiency) - {3:n0} (keystrokes saved)", group.Header, insertedCharacters, efficiency,
                                             keystrokesSaved);
            }
        }
        private void olvParameters_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            Dictionary <string, int> order = new Dictionary <string, int>()
            {
                { ParameterLevel.Global.ToString(), 0 },
                { ParameterLevel.CompositeQueryLevel.ToString(), 1 },
                { ParameterLevel.QueryLevel.ToString(), 2 },
                { ParameterLevel.TableInfo.ToString(), 3 },
            };

            foreach (var g in e.Groups)
            {
                g.SortValue = order[g.Header];
            }

            var currentGroup = e.Groups.SingleOrDefault(g => g.Header.Equals(Options.CurrentLevel.ToString()));

            if (currentGroup != null)
            {
                currentGroup.Header = currentGroup.Header + " (current)";
            }

            e.Groups = e.Groups.OrderBy(g => g.SortValue).ToList();
        }
        private void txnListView_AboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            if (e.Parameters.GroupByColumn == olvColumnCategory)
            {
                var grandAggregate = new TransactionAggregates();
                foreach (var group in e.Groups)
                {
                    EnsureGroupTag(group);

                    var groupAggregates = (TransactionAggregates)group.Tag;

                    grandAggregate.Add(groupAggregates);
                    groupAggregates.SaveRunningAggregate(grandAggregate);

                    var totalsText = groupAggregates.GetTotalsByReasonDisplayText();
                    var count      = groupAggregates.Count;

                    group.Header   = "{0} - {1} {2}".FormatEx((string)group.Key, count, totalsText);
                    group.Footer   = groupAggregates.GetRunningAggregateDisplayText();
                    group.Subtitle = " ";
                    //group.Collapsed = true;
                }
            }
        }
        private void aboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "view=" + view + " | group.count=" + e.Groups.Count, LogManager.LogMessageType.OTHER);
            List <ExchangeBalance> balances = GetBalances();

            switch (view)
            {
            case BalanceViewType.symbol:
                //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "Group Count=" + e.Groups.Count + " | view=" + view + " | params=" + e.Parameters + " | " + e.Groups, LogManager.LogMessageType.OTHER);
                listView.GroupImageList = ContentManager.SymbolIconList;
                foreach (OLVGroup group in e.Groups)
                {
                    //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "GroupId=" + group.GroupId + " | Header=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | " + group.Collapsed, LogManager.LogMessageType.OTHER);
                    List <ExchangeBalance> symbalances = balances.Where(item => item.Symbol == group.Key.ToString() && item.Balance > 0).ToList();
                    decimal usdTotal  = symbalances.Sum(b => b.TotalInUSD);
                    decimal btcTotal  = symbalances.Sum(b => b.TotalInBTC);
                    decimal coinTotal = symbalances.Sum(b => b.Balance);

                    CryptoCompareCoin coin = PreferenceManager.CryptoComparePreferences.CoinList.FirstOrDefault(item => item.Symbol == group.Key.ToString());
                    //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "HEADER=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | itemcount=" + group.Items.Count, LogManager.LogMessageType.OTHER);

                    if (coin != null)
                    {
                        group.Header = coin.FullName;
                    }
                    else
                    {
                        group.Header = group.Header.ToUpper();
                    }

                    group.TitleImage = group.Key;

                    if (balances.Count > 1)
                    {
                        group.Task = "[" + symbalances.Count + "] " + usdTotal.ToString("C");
                    }
                    else
                    {
                        group.Task = usdTotal.ToString("C");
                    }
                    group.Subtitle = "(" + coinTotal.ToString("N8") + ")";
                }
                break;

            case BalanceViewType.exchange:
                listView.GroupImageList = ContentManager.ExchangeIconList;
                foreach (OLVGroup group in e.Groups)
                {
                    //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "GroupId=" + group.Items.Count + " | Header=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | " + group.Collapsed);
                    decimal usdTotal = balances.Where(item => item.Exchange == group.Key.ToString() && item.Balance > 0).Sum(b => b.TotalInUSD);
                    decimal btcTotal = balances.Where(item => item.Exchange == group.Key.ToString() && item.Balance > 0).Sum(b => b.TotalInBTC);
                    group.Header     = group.Header.ToUpper();
                    group.TitleImage = group.Key;

                    if (group.Items.Count > 1)
                    {
                        group.Task = "[" + group.Items.Count + "] " + usdTotal.ToString("C");
                    }
                    else
                    {
                        group.Task = usdTotal.ToString("C");
                    }

                    group.Subtitle = "(" + btcTotal.ToString("N8") + ")";
                }
                break;

            case BalanceViewType.balance:
                // DO NOTHING
                break;

            default:
                // DO NOTHING
                break;
            }
        }
Beispiel #27
0
        private void aboutToCreateGroups(object sender, CreateGroupsEventArgs e)
        {
            //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "view=" + view + " | group.count=" + e.Groups.Count, LogManager.LogMessageType.OTHER);
            listView_Forks.GroupImageList = ContentManager.SymbolIconList;
            foreach (OLVGroup group in e.Groups)
            {
                string key = group.Key.ToString();

                /*
                 * if (!groupStates.ContainsKey(key))
                 * {
                 *  groupStates.Add(key, false);
                 * }
                 *
                 * //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "GroupId=" + group.GroupId + " | Header=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | " + group.Collapsed, LogManager.LogMessageType.OTHER);
                 *
                 * List<WalletBalance> symbalances = PreferenceManager.WalletPreferences.WalletForks.Where(item => item.Symbol == key.ToString() && item.Balance > 0).ToList();
                 * decimal usdTotal = symbalances.Sum(b => b.TotalInUSD);
                 * decimal btcTotal = symbalances.Sum(b => b.TotalInBTC);
                 * decimal coinTotal = symbalances.Sum(b => b.Balance);
                 *
                 * CryptoCompareCoin coin = PreferenceManager.CryptoComparePreferences.CoinList.FirstOrDefault(item => item.Symbol == group.Key.ToString());
                 * CoinMarketCapTicker priceItem = PreferenceManager.CoinMarketCapPreferences.Tickers.FirstOrDefault(item => item.symbol == key);
                 * //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "HEADER=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | itemcount=" + group.Items.Count, LogManager.LogMessageType.OTHER);
                 * string price = "";
                 * if (priceItem != null)
                 * {
                 *  price = " " + priceItem.price_usd.ToString("C");
                 * }
                 *
                 * if (coin != null)
                 * {
                 *  group.Header = coin.FullName + price;
                 * }
                 * else
                 * {
                 *  group.Header = key + price;
                 * }
                 */
                group.TitleImage = key;

                /*
                 * if (balances.Count > 1)
                 * {
                 *  group.Task = "[" + symbalances.Count + "] " + usdTotal.ToString("C");
                 * }
                 * else
                 * {
                 *  group.Task = usdTotal.ToString("C");
                 * }
                 * group.Subtitle = "(" + coinTotal.ToString("N8") + ")";
                 * group.Collapsed = groupStates[key];
                 */

                /*
                 * try
                 * {
                 *  List<ExchangeBalance> balances = GetBalances();
                 *
                 *  switch (view)
                 *  {
                 *      case BalanceViewType.symbol:
                 *          //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "Group Count=" + e.Groups.Count + " | view=" + view + " | params=" + e.Parameters + " | " + e.Groups, LogManager.LogMessageType.OTHER);
                 *
                 *          listView.GroupImageList = ContentManager.SymbolIconList;
                 *          foreach (OLVGroup group in e.Groups)
                 *          {
                 *              string key = group.Key.ToString();
                 *
                 *              if (!groupStates.ContainsKey(key))
                 *              {
                 *                  groupStates.Add(key, false);
                 *              }
                 *
                 *              //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "GroupId=" + group.GroupId + " | Header=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | " + group.Collapsed, LogManager.LogMessageType.OTHER);
                 *              List<ExchangeBalance> symbalances = balances.Where(item => item.Symbol == key.ToString() && item.Balance > 0).ToList();
                 *              decimal usdTotal = symbalances.Sum(b => b.TotalInUSD);
                 *              decimal btcTotal = symbalances.Sum(b => b.TotalInBTC);
                 *              decimal coinTotal = symbalances.Sum(b => b.Balance);
                 *
                 *              CryptoCompareCoin coin = PreferenceManager.CryptoComparePreferences.CoinList.FirstOrDefault(item => item.Symbol == group.Key.ToString());
                 *              CoinMarketCapTicker priceItem = PreferenceManager.CoinMarketCapPreferences.Tickers.FirstOrDefault(item => item.symbol == key);
                 *              //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "HEADER=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | itemcount=" + group.Items.Count, LogManager.LogMessageType.OTHER);
                 *              string price = "";
                 *              if (priceItem != null)
                 *              {
                 *                  price = " " + priceItem.price_usd.ToString("C");
                 *              }
                 *
                 *              if (coin != null)
                 *              {
                 *                  group.Header = coin.FullName + price;
                 *              }
                 *              else
                 *              {
                 *                  group.Header = key + price;
                 *              }
                 *
                 *              group.TitleImage = key;
                 *
                 *              if (balances.Count > 1)
                 *              {
                 *                  group.Task = "[" + symbalances.Count + "] " + usdTotal.ToString("C");
                 *              }
                 *              else
                 *              {
                 *                  group.Task = usdTotal.ToString("C");
                 *              }
                 *              group.Subtitle = "(" + coinTotal.ToString("N8") + ")";
                 *              group.Collapsed = groupStates[key];
                 *          }
                 *          break;
                 *
                 *      case BalanceViewType.exchange:
                 *          listView.GroupImageList = ContentManager.ExchangeIconList;
                 *
                 *          foreach (OLVGroup group in e.Groups)
                 *          {
                 *              string key = group.Key.ToString();
                 *
                 *              if (!groupStates.ContainsKey(key))
                 *              {
                 *                  groupStates.Add(key, false);
                 *              }
                 *              //LogManager.AddLogMessage(Name, "aboutToCreateGroups", "GroupId=" + group.Items.Count + " | Header=" + group.Header + " | id=" + group.Id + " | Key=" + group.Key + " | name=" + group.Name + " | " + group.Collapsed);
                 *              decimal usdTotal = balances.Where(item => item.Exchange == group.Key.ToString() && item.Balance > 0).Sum(b => b.TotalInUSD);
                 *              decimal btcTotal = balances.Where(item => item.Exchange == group.Key.ToString() && item.Balance > 0).Sum(b => b.TotalInBTC);
                 *              group.Header = group.Header.ToUpper();
                 *              group.TitleImage = group.Key;
                 *
                 *              if (group.Items.Count > 1)
                 *              {
                 *                  group.Task = "[" + group.Items.Count + "] " + usdTotal.ToString("C");
                 *              }
                 *              else
                 *              {
                 *                  group.Task = usdTotal.ToString("C");
                 *              }
                 *
                 *              group.Subtitle = "(" + btcTotal.ToString("N8") + ")";
                 *              group.Collapsed = groupStates[key];
                 *          }
                 *
                 *          break;
                 *
                 *      case BalanceViewType.balance:
                 *          // DO NOTHING
                 *          break;
                 *
                 *      default:
                 *          // DO NOTHING
                 *          break;
                 *  }
                 * }
                 * catch (Exception ex)
                 * {
                 *  LogManager.AddLogMessage(Name, "aboutToCreateGroups", ex.Message, LogManager.LogMessageType.EXCEPTION);
                 * }
                 */
            }
        }
 private void SkillListView_OnBeforeCreatingGroups(object sender, CreateGroupsEventArgs e)
 {
     e.Parameters.GroupComparer = m_GroupComparer;
 }
 private void dataListView1_AfterCreatingGroups(object sender, CreateGroupsEventArgs e)
 {
     dataListView1.AutoResizeColumns();
 }