Exemplo 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();
        }
Exemplo 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();
        }