Ejemplo n.º 1
0
 protected void OnAfterDrill(string path, int level, bool isDrillDown)
 {
     if (AfterDrill != null)
     {
         var args = new DrillDownEventArgs(path, level, isDrillDown);
         AfterDrill(this, args);
     }
 }
Ejemplo n.º 2
0
        private void Manager_BeforeDrill(object sender, DrillDownEventArgs e)
        {
            if (e.IsDrillDown == false && e.DrillDownLevel > 0)
            {
                _paths.Remove(e.DrillDownLevel);
            }

            if (e.DrillDownLevel > 3 && e.IsDrillDown)
            {
                e.Cancel = true;
            }
        }
Ejemplo n.º 3
0
 protected bool OnBeforeDrill(string path, int level, bool isDrillDown)
 {
     if (BeforeDrill != null)
     {
         var args = new DrillDownEventArgs(path, level, isDrillDown);
         BeforeDrill(this, args);
         return(!args.Cancel);
     }
     else
     {
         return(true);
     }
 }
        private void Manager_AfterDrill(object sender, DrillDownEventArgs e)
        {
            if (flexChart.Visibility == Visibility.Visible)
            {
                switch (e.DrillDownPath)
                {
                case "Country":
                case "City":
                default:
                    flexChart.ChartType = C1.Chart.ChartType.Column;
                    break;

                case "Year":
                    flexChart.ChartType = C1.Chart.ChartType.LineSymbols;
                    break;
                }
            }
            flexChart.Footer = pieChart.Footer = string.Format("{0}-wise sales", e.DrillDownPath);
        }
Ejemplo n.º 5
0
        private void Manager_AfterDrill(object sender, DrillDownEventArgs e)
        {
            switch (e.DrillDownLevel)
            {
            case 0:
            case 1:
            default:
                flexChart.ChartType = C1.Chart.ChartType.Column;
                break;

            case 2:
            case 3:
                flexChart.ChartType = C1.Chart.ChartType.SplineSymbols;
                break;

            case 4:
                flexChart.ChartType = C1.Chart.ChartType.Spline;
                break;
            }
            flexChart.Footer = string.Format("{0}-wise Sales", _vm.AsyncDrillDownManager.GroupNames[e.DrillDownLevel]);
            dynamic current = _vm.AsyncDrillDownManager.Current;

            if (_currentValue != null && current.Name == null)
            {
                current.Name = _currentValue.ToString();
            }
            if (e.IsDrillDown)
            {
                if (_paths.ContainsKey(e.DrillDownLevel))
                {
                    _paths.Remove(e.DrillDownLevel);
                }
                _paths.Add(e.DrillDownLevel, current.Name);
            }
            UpdateNavBar();
        }
 private void Manager_BeforeDrill(object sender, DrillDownEventArgs e)
 {
     e.Cancel = !isDrillDownEnabled;
 }