Esempio n. 1
0
        private void method_26(object sender, EventArgs e)
        {
            ListView           listView            = (ListView)sender;
            StatisticsCategory statisticsCategory_ = listView.DataContext as StatisticsCategory;

            this.method_28(listView, statisticsCategory_);
        }
Esempio n. 2
0
        private void method_29(object sender, DependencyPropertyChangedEventArgs e)
        {
            ListView           listView_           = (ListView)sender;
            StatisticsCategory statisticsCategory_ = e.NewValue as StatisticsCategory;

            this.method_28(listView_, statisticsCategory_);
        }
Esempio n. 3
0
    public override void Update()
    {
        DarkOrbitWebAPI.GalaxyGatesInfo ggInfo = this.Web.GgInfo;
        if (ggInfo == null)
        {
            return;
        }
        Dictionary <Type, object> subscribed = this.Subscribed;

        lock (subscribed)
        {
            this.Subscribed[typeof(DarkOrbitWebAPI.GalaxyGatesInfo)] = ggInfo;
        }
        DarkOrbitWebAPI.jumpgateGate[] gates = ggInfo.gates;
        for (int i = 0; i < gates.Length; i++)
        {
            GClass885.< > c__DisplayClass4_0 CS$ < > 8__locals1 = new GClass885.< > c__DisplayClass4_0();
            CS$ < > 8__locals1.jumpgateGate_0 = gates[i];
            string key;
            if (GClass919.dictionary_0.TryGetValue(CS$ < > 8__locals1.jumpgateGate_0.id, out key))
            {
                base.Add(StatisticsCategory.WithName(key, new IValueWrapper <string>[]
                {
                    this.method_0(new Func <DarkOrbitWebAPI.GalaxyGatesInfo, string>(CS$ < > 8__locals1.method_0)),
                    this.method_0(new Func <DarkOrbitWebAPI.GalaxyGatesInfo, string>(CS$ < > 8__locals1.method_1)),
                    this.method_0(new Func <DarkOrbitWebAPI.GalaxyGatesInfo, string>(CS$ < > 8__locals1.method_2))
                }));
Esempio n. 4
0
    public override void Update()
    {
        GClass887.< > c__DisplayClass7_0 CS$ < > 8__locals1;
        CS$ < > 8__locals1.gclass887_0 = this;
        List <IRowEntry> list = new List <IRowEntry>();

        list.Add(this.method_0("Available", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_0), ref CS$ < > 8__locals1));
        CS$ < > 8__locals1.list_0 = list;
        if (this.Pet.IsAvailable)
        {
            this.method_1("Enabled", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_1), ref CS$ < > 8__locals1);
            this.method_1("Name", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_2), ref CS$ < > 8__locals1);
            this.method_1("Fuel", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_3), ref CS$ < > 8__locals1);
            this.method_1("Level", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_4), ref CS$ < > 8__locals1);
            this.method_1("Experience", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_5), ref CS$ < > 8__locals1);
            this.method_1("HP", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_6), ref CS$ < > 8__locals1);
            this.method_1("Shield", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_7), ref CS$ < > 8__locals1);
            this.method_1("Mode", new Func <HeroPet, string>(GClass887.< > c.< > c_0.method_8), ref CS$ < > 8__locals1);
            List <IRowEntry>         list_ = CS$ < > 8__locals1.list_0;
            string                   key   = "Deaths";
            IValueWrapper <string>[] array = new IValueWrapper <string> [1];
            array[0] = base.L <GClass882>(new Func <GClass882, string>(GClass887.< > c.< > c_0.method_9));
            list_.Add(StatisticsCategory.WithName(key, array));
        }
        int num = 0;

        foreach (IRowEntry rowEntry in CS$ < > 8__locals1.list_0)
        {
            rowEntry.Order = num++;
            base.Add(rowEntry);
        }
        base.Update();
    }
 public static void smethod_1(ListView listView_0, StatisticsCategory statisticsCategory_0)
 {
     listView_0.Columns.Clear();
     foreach (string text in statisticsCategory_0.ColumnNames)
     {
         listView_0.Columns.Add(text);
     }
 }
Esempio n. 6
0
 private void method_28(ListView listView_0, StatisticsCategory statisticsCategory_0)
 {
     if (statisticsCategory_0 != null)
     {
         statisticsCategory_0.Rebuild();
         CollectionView collectionView = (CollectionView)CollectionViewSource.GetDefaultView(listView_0.ItemsSource);
         ObservableCollection <GroupDescription> groupDescriptions = collectionView.GroupDescriptions;
         if (groupDescriptions.Count == 0)
         {
             groupDescriptions.Add(new PropertyGroupDescription("Group"));
         }
         SortDescriptionCollection sortDescriptions = collectionView.SortDescriptions;
         if (sortDescriptions.Count == 0)
         {
             sortDescriptions.Add(new SortDescription("Order", ListSortDirection.Ascending));
         }
         GridView gridView = listView_0.View as GridView;
         gridView.Columns.Clear();
         int num = 0;
         foreach (string header in statisticsCategory_0.ColumnNames)
         {
             FrameworkElementFactory frameworkElementFactory = new FrameworkElementFactory(typeof(TextBlock));
             GridViewColumn          gridViewColumn          = new GridViewColumn
             {
                 Header       = header,
                 CellTemplate = new DataTemplate
                 {
                     VisualTree = frameworkElementFactory
                 }
             };
             frameworkElementFactory.SetBinding(TextBlock.TextProperty, new Binding(string.Format("Cells[{0}].Value", num)));
             frameworkElementFactory.SetValue(TextBlock.TextWrappingProperty, TextWrapping.NoWrap);
             frameworkElementFactory.SetValue(TextBlock.TextTrimmingProperty, TextTrimming.None);
             frameworkElementFactory.SetValue(TextBlock.TextAlignmentProperty, TextAlignment.Right);
             frameworkElementFactory.AddHandler(FrameworkElement.SizeChangedEvent, this.CellTextBlock_SizeChangedHandler);
             frameworkElementFactory.SetValue(FrameworkElement.TagProperty, gridViewColumn);
             gridView.Columns.Add(gridViewColumn);
             num++;
         }
         collectionView.Refresh();
     }
 }
 public static void smethod_0(Window window_0, StatisticsCategory statisticsCategory_0)
 {
     string.Format("Stats_{0}", statisticsCategory_0);
 }