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(); }
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(); }
private void PreparePlacesList() { ListPlaces = UIHelper.CreateListView(Panel4); ListPlaces.DoubleClick += ListPlaces_DblClick; ListPlaces.AddColumn(LangMan.LS(LSID.LSID_Place), 400, false); ListPlaces.AddColumn(LangMan.LS(LSID.LSID_LinksCount), 100, false); }
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(); }
private void PreparePlacesList() { ListPlaces = new GKListView(); ListPlaces.MouseDoubleClick += ListPlaces_DblClick; ListPlaces.AddColumn(LangMan.LS(LSID.LSID_Place), 400, false); ListPlaces.AddColumn(LangMan.LS(LSID.LSID_LinksCount), 100, false); panPlacesContainer.Content = ListPlaces; }
private void PreparePatriarchsList() { ListPatriarchs = UIHelper.CreateListView(Panel3); ListPatriarchs.DoubleClick += ListPatriarchs_DblClick; ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Patriarch), 400, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Birth), 90, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Descendants), 90, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Generations), 90, false); }
private void PrepareChecksList() { ListChecks = UIHelper.CreateListView(Panel1); ListChecks.CheckBoxes = true; ListChecks.DoubleClick += ListChecks_DblClick; ListChecks.AddColumn(LangMan.LS(LSID.LSID_Record), 400, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Problem), 200, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Solve), 200, false); }
private void PreparePatriarchsList() { ListPatriarchs = new GKListView(); ListPatriarchs.MouseDoubleClick += ListPatriarchs_DblClick; ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Patriarch), 400, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Birth), 90, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Descendants), 90, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Generations), 90, false); panPatriarchsContainer.Content = ListPatriarchs; }
private void PrepareChecksList() { ListChecks = new GKListView(); ListChecks.MouseDoubleClick += ListChecks_DblClick; ListChecks.AddCheckedColumn(@"x", 50, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Record), 400, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Problem), 200, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Solve), 200, false); panProblemsContainer.Content = ListChecks; }
public TTPlacesManagerDlg(IBaseWindow baseWin) { InitializeComponent(); btnClose.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif"); fController = new PlacesManagerController(this); fController.Init(baseWin); ListPlaces = UIHelper.CreateListView(Panel4); ListPlaces.DoubleClick += ListPlaces_DblClick; ListPlaces.AddColumn(LangMan.LS(LSID.LSID_Place), 400, false); ListPlaces.AddColumn(LangMan.LS(LSID.LSID_LinksCount), 100, false); SetLang(); }
public TTTreeCheckDlg(IBaseWindow baseWin) { InitializeComponent(); btnClose.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif"); fController = new TreeCheckController(this); fController.Init(baseWin); ListChecks = UIHelper.CreateListView(panProblemsContainer); ListChecks.MouseDoubleClick += ListChecks_DblClick; ListChecks.AddCheckedColumn(@"x", 50, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Record), 400, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Problem), 200, false); ListChecks.AddColumn(LangMan.LS(LSID.LSID_Solve), 200, false); SetLang(); }
public TTPatSearchDlg(IBaseWindow baseWin) { InitializeComponent(); btnClose.Image = UIHelper.LoadResourceImage("Resources.btn_cancel.gif"); fController = new PatriarchsSearchController(this); fController.Init(baseWin); ListPatriarchs = UIHelper.CreateListView(Panel3); ListPatriarchs.DoubleClick += ListPatriarchs_DblClick; ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Patriarch), 400, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Birth), 90, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Descendants), 90, false); ListPatriarchs.AddColumn(LangMan.LS(LSID.LSID_Generations), 90, false); SetLocale(); }
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(); }
private void InitializeComponent() { SuspendLayout(); btnLangEdit = new Button(); btnLangEdit.Size = new Size(26, 26); btnLangEdit.Click += btnLangEdit_Click; lblName = new Label(); lblName.Text = "lblName"; lblAddress = new Label(); lblAddress.Text = "lblAddress"; lblLanguage = new Label(); lblLanguage.Text = "lblLanguage"; lblTelephone = new Label(); lblTelephone.Text = "lblTelephone"; txtName = new TextBox(); txtLanguage = new TextBox(); txtLanguage.ReadOnly = true; txtTel = new TextBox(); txtAddress = new TextArea(); pageAuthor = new TabPage(); pageAuthor.Text = "pageAuthor"; pageAuthor.Content = new DefTableLayout { Rows = { new TableRow { Cells = { lblName, txtName } }, new TableRow { ScaleHeight = true, Cells = { lblAddress, txtAddress } }, new TableRow { Cells = { lblTelephone, txtTel } }, new TableRow { Cells = { lblLanguage, TableLayout.Horizontal(10,new TableCell(txtLanguage, true), btnLangEdit) } } } }; lvRecordStats = new GKListView(); lvRecordStats.AddColumn("Records", 300); lvRecordStats.AddColumn("Count", 100 /*, HorizontalAlignment.Right*/); pageOther = new TabPage(); pageOther.Text = "pageOther"; pageOther.Content = lvRecordStats; tabsData = new TabControl(); tabsData.Pages.Add(pageAuthor); tabsData.Pages.Add(pageOther); tabsData.Size = new Size(500, 340); btnAccept = new Button(); btnAccept.ImagePosition = ButtonImagePosition.Left; btnAccept.Size = new Size(130, 26); btnAccept.Text = "btnAccept"; btnAccept.Click += btnAccept_Click; btnCancel = new Button(); btnCancel.ImagePosition = ButtonImagePosition.Left; btnCancel.Size = new Size(130, 26); btnCancel.Text = "btnCancel"; btnCancel.Click += btnCancel_Click; Content = new DefTableLayout { Rows = { new TableRow { ScaleHeight = true, Cells = { tabsData } }, UIHelper.MakeDialogFooter(null, btnAccept, btnCancel) } }; DefaultButton = btnAccept; AbortButton = btnCancel; Title = "FilePropertiesDlg"; SetPredefProperties(580, 400); ResumeLayout(); }
private void InitializeComponent() { SuspendLayout(); lblName = new Label(); lblName.Text = "lblName"; lblLatitude = new Label(); lblLatitude.Text = "lblLatitude"; lblLongitude = new Label(); lblLongitude.Text = "lblLongitude"; txtName = new TextBox(); txtName.TextChanged += EditName_TextChanged; txtName.KeyDown += EditName_KeyDown; txtLatitude = new TextBox(); txtLatitude.Width = 100; txtLongitude = new TextBox(); txtLongitude.Width = 100; ListGeoCoords = new GKListView(); ListGeoCoords.MouseDown += ListGeoCoords_Click; ListGeoCoords.AddColumn("Name", 200); ListGeoCoords.AddColumn("Latitude", 80); ListGeoCoords.AddColumn("Longitude", 80); btnSearch = new Button(); btnSearch.Size = new Size(130, 26); btnSearch.Text = "btnSearch"; btnSearch.Click += btnSearch_Click; btnSelect = new Button(); btnSelect.Size = new Size(130, 26); btnSelect.Text = "btnSelect"; btnSelect.Click += btnSelect_Click; btnSelectName = new Button(); btnSelectName.Size = new Size(130, 26); btnSelectName.Text = "btnSelectName"; btnSelectName.Click += btnSelectName_Click; btnShowOnMap = new Button(); btnShowOnMap.Size = new Size(130, 26); btnShowOnMap.Text = "btnShowOnMap"; btnShowOnMap.Click += btnShowOnMap_Click; panMap = new Panel(); //panMap.BorderStyle = BorderStyle.Fixed3D; grpSearch = new GroupBox(); grpSearch.Text = "grpSearch"; grpSearch.Content = new TableLayout { Rows = { new TableRow { Cells = { new TableLayout{ Spacing = new Size(10, 10), Rows = { new TableRow { Cells = { new TableCell(ListGeoCoords, true), new DefStackLayout(Orientation.Vertical, 10,btnSearch,btnSelect, btnSelectName, btnShowOnMap) } } } } } }, new TableRow { ScaleHeight = true, Cells = { panMap } } } }; pageCommon = new TabPage(); pageCommon.Text = "pageCommon"; pageCommon.Content = new TableLayout { Rows = { new TableRow { Cells = { new DefTableLayout{ Rows = { new TableRow { Cells = { lblName, lblLatitude, lblLongitude } }, new TableRow { Cells = { new TableCell(txtName, true), txtLatitude, txtLongitude} } } } } }, new TableRow { ScaleHeight = true, Cells = { grpSearch } } } }; pageNotes = new TabPage(); pageNotes.Text = "pageNotes"; pageMultimedia = new TabPage(); pageMultimedia.Text = "pageMultimedia"; tabsData = new TabControl(); tabsData.Pages.Add(pageCommon); tabsData.Pages.Add(pageNotes); tabsData.Pages.Add(pageMultimedia); btnAccept = new Button(); btnAccept.ImagePosition = ButtonImagePosition.Left; btnAccept.Size = new Size(130, 26); btnAccept.Text = "btnAccept"; btnAccept.Click += btnAccept_Click; btnCancel = new Button(); btnCancel.ImagePosition = ButtonImagePosition.Left; btnCancel.Size = new Size(130, 26); btnCancel.Text = "btnCancel"; btnCancel.Click += btnCancel_Click; Content = new DefTableLayout { Rows = { new TableRow { ScaleHeight = true, Cells = { tabsData } }, UIHelper.MakeDialogFooter(null, btnAccept, btnCancel) } }; DefaultButton = btnAccept; AbortButton = btnCancel; Title = "LocationEditDlg"; SetPredefProperties(780, 580); ResumeLayout(); }