Ejemplo n.º 1
0
        public StatisticsWin(IBaseWindow baseWin, List <GEDCOMRecord> selectedRecords)
        {
            InitializeComponent();

            tbExcelExport.Image = UIHelper.LoadResourceImage("Resources.btn_excel.gif");

            fGraph      = new ZGraphControl();
            fGraph.Dock = DockStyle.Right;
            fGraph.Size = new Size(400, 200);

            Splitter spl = new Splitter();

            spl.Dock     = DockStyle.Right;
            spl.Size     = new Size(4, 290);
            spl.MinExtra = 100;
            spl.MinSize  = 100;
            Panel1.Controls.Add(fGraph);
            Panel1.Controls.Add(spl);

            fListStats = UIHelper.CreateListView(Panel1);
            fListStats.AddColumn("-", 250, false);
            fListStats.AddColumn("-", 150, false);

            Panel1.Controls.SetChildIndex(fListStats, 0);
            Panel1.Controls.SetChildIndex(spl, 2);
            Panel1.Controls.SetChildIndex(fGraph, 3);
            Panel1.Controls.SetChildIndex(ToolBar1, 4);

            fController = new StatisticsWinController(this, selectedRecords);
            fController.Init(baseWin);

            fCurrentMode = StatsMode.smAncestors;

            SetLang();
        }
Ejemplo n.º 2
0
        public StatisticsWin(IBaseWindow baseWin, List <GDMRecord> selectedRecords)
        {
            InitializeComponent();

            tbExcelExport.Image = UIHelper.LoadResourceImage("Resources.btn_excel.gif");

            fGraph = new ZGraphControl();

            fListStats = new GKListView();
            fListStats.AddColumn("-", 250, false);
            fListStats.AddColumn("-", 150, false);

            Splitter spl = new Splitter();

            spl.Panel1                 = fListStats;
            spl.Panel2                 = fGraph;
            spl.RelativePosition       = 300;
            spl.Orientation            = Orientation.Horizontal;
            spl.FixedPanel             = SplitterFixedPanel.Panel2;
            panDataPlaceholder.Content = spl;

            fController = new StatisticsWinController(this, selectedRecords);
            fController.Init(baseWin);

            fCurrentMode = StatsMode.smAncestors;

            SetLang();
        }
Ejemplo n.º 3
0
        public StatisticsWin(IBaseWindow baseWin, List <GEDCOMRecord> selectedRecords)
        {
            InitializeComponent();

            fGraph = new ZGraphControl();

            fListStats = new GKListView();
            fListStats.AddColumn("-", 250, false);
            fListStats.AddColumn("-", 150, false);

            Splitter spl = new Splitter();

            spl.Panel1                 = fListStats;
            spl.Panel2                 = fGraph;
            spl.RelativePosition       = 300;
            spl.Orientation            = Orientation.Horizontal;
            spl.FixedPanel             = SplitterFixedPanel.Panel2;
            panDataPlaceholder.Content = spl;

            fBase            = baseWin;
            fSelectedRecords = selectedRecords;
            fTreeStats       = new TreeStats(fBase.Context, fSelectedRecords);
            fCurrentMode     = StatsMode.smAncestors;

            SetLang();
        }
Ejemplo n.º 4
0
        public StatisticsWin(IBaseWindow baseWin, List <GEDCOMRecord> selectedRecords)
        {
            InitializeComponent();

            tbExcelExport.Image = GKResources.iExcel;

            fGraph      = new ZGraphControl();
            fGraph.Dock = DockStyle.Right;
            fGraph.Size = new Size(400, 200);

            Splitter spl = new Splitter();

            spl.Dock     = DockStyle.Right;
            spl.Size     = new Size(4, 290);
            spl.MinExtra = 100;
            spl.MinSize  = 100;
            Panel1.Controls.Add(fGraph);
            Panel1.Controls.Add(spl);

            fListStats = UIHelper.CreateListView(Panel1);
            fListStats.AddColumn("-", 250, false);
            fListStats.AddColumn("-", 150, false);

            Panel1.Controls.SetChildIndex(fListStats, 0);
            Panel1.Controls.SetChildIndex(spl, 2);
            Panel1.Controls.SetChildIndex(fGraph, 3);
            Panel1.Controls.SetChildIndex(ToolBar1, 4);

            fBase            = baseWin;
            fSelectedRecords = selectedRecords;
            fTreeStats       = new TreeStats(fBase.Context, fSelectedRecords);

            UpdateStatsTypes();

            SetLang();
        }