Пример #1
0
        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();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "OK";
            btnAccept.Click        += btnAccept_Click;

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "Cancel";
            btnCancel.Click        += CancelClickHandler;

            lstLanguages      = new GKListView();
            lstLanguages.Size = new Size(280, 380);

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow            {
                        ScaleHeight = true,
                        Cells       =
                        {
                            new TableCell(lstLanguages, true),
                            new TableLayout {
                                Padding = new Padding(0),
                                Spacing = new Size(10,        10),
                                Rows    =
                                {
                                    btnAccept, btnCancel, null
                                }
                            }
                        }
                    }
                }
            };

            DefaultButton = btnAccept;
            AbortButton   = btnCancel;
            Title         = "Select language";

            SetPredefProperties(440, 400);
            ResumeLayout();
        }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }
Пример #5
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();
        }
Пример #6
0
        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();
        }
Пример #7
0
        private void InitializeComponent()
        {
            SuspendLayout();

            lblMinutes      = new Label();
            lblMinutes.Text = "lblMinutes";

            numASMin          = new NumericUpDown();
            numASMin.MaxValue = 120;
            numASMin.MinValue = 1;
            numASMin.Width    = 60;
            numASMin.Value    = 1;

            chkAutosave      = new CheckBox();
            chkAutosave.Text = "chkAutosave";

            radFBNone      = new RadioButton();
            radFBNone.Text = "radFBNone";

            radFBOnlyPrev      = new RadioButton(radFBNone);
            radFBOnlyPrev.Text = "radFBOnlyPrev";

            radFBEachRevision      = new RadioButton(radFBNone);
            radFBEachRevision.Text = "radFBEachRevision";

            grpFileBackup         = new GroupBox();
            grpFileBackup.Text    = "grpFileBackup";
            grpFileBackup.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { radFBNone         }
                    },
                    new TableRow {
                        Cells =  { radFBOnlyPrev     }
                    },
                    new TableRow {
                        Cells =  { radFBEachRevision }
                    }
                }
            };

            groupBox1         = new GroupBox();
            groupBox1.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow                {
                        ScaleHeight = true,
                        Cells       =           { grpFileBackup      }
                    },
                    new TableRow                {
                        Cells =
                        {
                            new HDefStackLayout {
                                Items =         { chkAutosave, numASMin, lblMinutes}
                            }
                        }
                    }
                }
            };

            //

            chkUseProxy      = new CheckBox();
            chkUseProxy.Text = "chkUseProxy";

            lblProxyServer      = new Label();
            lblProxyServer.Text = "lblProxyServer";

            lblProxyPort      = new Label();
            lblProxyPort.Text = "lblProxyPort";

            lblProxyLogin      = new Label();
            lblProxyLogin.Text = "lblProxyLogin";

            lblProxyPassword      = new Label();
            lblProxyPassword.Text = "lblProxyPassword";

            txtProxyServer = new TextBox();
            //txtProxyServer.Size = new Size(192, 24);

            txtProxyPort = new TextBox();
            //txtProxyPort.Size = new Size(192, 24);

            txtProxyLogin = new TextBox();
            //txtProxyLogin.Size = new Size(192, 24);

            txtProxyPass = new PasswordBox();
            txtProxyPass.PasswordChar = '*';
            txtProxyPass.Text         = "txtProxyPass";

            grpInternet         = new GroupBox();
            grpInternet.Text    = "grpInternet";
            grpInternet.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { chkUseProxy }
                    },
                    new TableRow {
                        Cells =  { lblProxyServer, txtProxyServer}
                    },
                    new TableRow {
                        Cells =  { lblProxyPort, txtProxyPort}
                    },
                    new TableRow {
                        Cells =  { lblProxyLogin, txtProxyLogin}
                    },
                    new TableRow {
                        Cells =  { lblProxyPassword, txtProxyPass}
                    }
                }
            };

            //

            chkLoadRecentFiles      = new CheckBox();
            chkLoadRecentFiles.Text = "chkLoadRecentFiles";

            chkShowOnStart      = new CheckBox();
            chkShowOnStart.Text = "chkShowOnStart";

            lblGeocoder      = new Label();
            lblGeocoder.Text = "lblGeocoder";

            cmbGeocoder          = new ComboBox();
            cmbGeocoder.ReadOnly = true;
            cmbGeocoder.Items.Add("Google");
            cmbGeocoder.Items.Add("Yandex");
            cmbGeocoder.Items.Add("OSM");

            lblLanguage      = new Label();
            lblLanguage.Text = "lblLanguage";

            cmbLanguages          = new ComboBox();
            cmbLanguages.ReadOnly = true;

            grpOther         = new GroupBox();
            grpOther.Text    = "grpOther";
            grpOther.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { chkLoadRecentFiles}
                    },
                    new TableRow {
                        Cells =  { chkShowOnStart    }
                    },
                    new TableRow {
                        Cells =  { lblLanguage, cmbLanguages}
                    },
                    new TableRow {
                        Cells =  { lblGeocoder, cmbGeocoder}
                    }
                }
            };

            pageCommon         = new TabPage();
            pageCommon.Text    = "pageCommon";
            pageCommon.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { grpInternet,groupBox1 }
                    },
                    new TableRow {
                        Cells =  { grpOther }
                    },
                    null
                }
            };

            //

            chkAllowMediaDirectRefs      = new CheckBox();
            chkAllowMediaDirectRefs.Text = "chkAllowMediaDirectRefs";

            chkEmbeddedMediaPlayer      = new CheckBox();
            chkEmbeddedMediaPlayer.Text = "chkEmbeddedMediaPlayer";

            chkRemovableMediaWarning      = new CheckBox();
            chkRemovableMediaWarning.Text = "chkRemovableMediaWarning";

            pageMultimedia         = new TabPage();
            pageMultimedia.Text    = "pageMultimedia";
            pageMultimedia.Content = new VDefStackLayout {
                Items = { chkRemovableMediaWarning, chkEmbeddedMediaPlayer, chkAllowMediaDirectRefs }
            };

            //

            chkSurname      = new CheckBox();
            chkSurname.Text = "chkSurname";

            chkName      = new CheckBox();
            chkName.Text = "chkName";

            chkPatronymic      = new CheckBox();
            chkPatronymic.Text = "chkPatronymic";

            chkDiffLines      = new CheckBox();
            chkDiffLines.Text = "chkDiffLines";

            chkBirthDate      = new CheckBox();
            chkBirthDate.Text = "chkBirthDate";

            chkDeathDate      = new CheckBox();
            chkDeathDate.Text = "chkDeathDate";

            chkKinship      = new CheckBox();
            chkKinship.Text = "chkKinship";

            chkDefaultPortraits      = new CheckBox();
            chkDefaultPortraits.Text = "chkDefaultPortraits";

            chkOnlyYears      = new CheckBox();
            chkOnlyYears.Text = "chkOnlyYears";

            chkSignsVisible      = new CheckBox();
            chkSignsVisible.Text = "chkSignsVisible";

            chkChildlessExclude      = new CheckBox();
            chkChildlessExclude.Text = "chkChildlessExclude";

            chkTreeDecorative      = new CheckBox();
            chkTreeDecorative.Text = "chkTreeDecorative";

            chkPortraitsVisible                 = new CheckBox();
            chkPortraitsVisible.Text            = "chkPortraitsVisible";
            chkPortraitsVisible.CheckedChanged += chkPortraitsVisible_CheckedChanged;

            grpTreePersons         = new GroupBox();
            grpTreePersons.Text    = "grpTreePersons";
            grpTreePersons.Content = new VDefStackLayout {
                Items = { chkSurname, chkName,         chkPatronymic,     chkDiffLines,        chkBirthDate,        chkDeathDate, chkOnlyYears,
                          chkKinship, chkSignsVisible, chkTreeDecorative, chkPortraitsVisible, chkDefaultPortraits,
                          chkChildlessExclude }
            };

            //

            lblMaleColor                   = new Label();
            lblMaleColor.Size              = new Size(100, 26);
            lblMaleColor.Text              = "lblMaleColor";
            lblMaleColor.TextAlignment     = TextAlignment.Center;
            lblMaleColor.VerticalAlignment = VerticalAlignment.Center;
            lblMaleColor.MouseDown        += PanColor_Click;
            lblMaleColor.Cursor            = Cursors.Pointer;

            panMaleColor         = new Scrollable();
            panMaleColor.Border  = BorderType.Bezel;
            panMaleColor.Content = lblMaleColor;

            lblFemaleColor                   = new Label();
            lblFemaleColor.Size              = new Size(100, 26);
            lblFemaleColor.Text              = "lblFemaleColor";
            lblFemaleColor.TextAlignment     = TextAlignment.Center;
            lblFemaleColor.VerticalAlignment = VerticalAlignment.Center;
            lblFemaleColor.MouseDown        += PanColor_Click;
            lblFemaleColor.Cursor            = Cursors.Pointer;

            panFemaleColor         = new Scrollable();
            panFemaleColor.Border  = BorderType.Bezel;
            panFemaleColor.Content = lblFemaleColor;

            lblUnkSexColor                   = new Label();
            lblUnkSexColor.Size              = new Size(210, 26);
            lblUnkSexColor.Text              = "label7";
            lblUnkSexColor.TextAlignment     = TextAlignment.Center;
            lblUnkSexColor.VerticalAlignment = VerticalAlignment.Center;
            lblUnkSexColor.MouseDown        += PanColor_Click;
            lblUnkSexColor.Cursor            = Cursors.Pointer;

            panUnkSexColor         = new Scrollable();
            panUnkSexColor.Border  = BorderType.Bezel;
            panUnkSexColor.Content = lblUnkSexColor;

            lblUnHusbandColor                   = new Label();
            lblUnHusbandColor.Size              = new Size(210, 26);
            lblUnHusbandColor.Text              = "lblUnHusbandColor";
            lblUnHusbandColor.TextAlignment     = TextAlignment.Center;
            lblUnHusbandColor.VerticalAlignment = VerticalAlignment.Center;
            lblUnHusbandColor.MouseDown        += PanColor_Click;
            lblUnHusbandColor.Cursor            = Cursors.Pointer;

            panUnHusbandColor         = new Scrollable();
            panUnHusbandColor.Border  = BorderType.Bezel;
            panUnHusbandColor.Content = lblUnHusbandColor;

            lblUnWifeColor                   = new Label();
            lblUnWifeColor.Size              = new Size(210, 26);
            lblUnWifeColor.Text              = "lblUnWifeColor";
            lblUnWifeColor.TextAlignment     = TextAlignment.Center;
            lblUnWifeColor.VerticalAlignment = VerticalAlignment.Center;
            lblUnWifeColor.MouseDown        += PanColor_Click;
            lblUnWifeColor.Cursor            = Cursors.Pointer;

            panUnWifeColor         = new Scrollable();
            panUnWifeColor.Border  = BorderType.Bezel;
            panUnWifeColor.Content = lblUnWifeColor;

            lblChartFont                   = new Label();
            lblChartFont.Size              = new Size(210, 26);
            lblChartFont.Text              = "lblChartFont";
            lblChartFont.TextAlignment     = TextAlignment.Center;
            lblChartFont.VerticalAlignment = VerticalAlignment.Center;
            lblChartFont.MouseDown        += panDefFont_Click;
            lblChartFont.Cursor            = Cursors.Pointer;

            panDefFont         = new Scrollable();
            panDefFont.Border  = BorderType.Bezel;
            panDefFont.Content = lblChartFont;

            grpTreeDecor         = new GroupBox();
            grpTreeDecor.Text    = "grpTreeDecor";
            grpTreeDecor.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { TableLayout.HorizontalScaled(10,panMaleColor, panFemaleColor) }
                    },
                    new TableRow {
                        Cells =  { panUnkSexColor }
                    },
                    new TableRow {
                        Cells =  { panUnHusbandColor,              }
                    },
                    new TableRow {
                        Cells =  { panUnWifeColor }
                    },
                    new TableRow {
                        ScaleHeight = false,
                        Cells       = { panDefFont }
                    },
                    null
                }
            };

            //

            pageTreeChart         = new TabPage();
            pageTreeChart.Text    = "pageTreeChart";
            pageTreeChart.Content = new HDefStackLayout {
                Items = { grpTreePersons, grpTreeDecor }
            };

            //

            ancOptionsControl1         = new GKUI.Components.ACOptionsControl();
            ancOptionsControl1.Options = null;

            pageAncCircle         = new TabPage();
            pageAncCircle.Content = ancOptionsControl1;
            pageAncCircle.Text    = "pageAncCircle";

            //

            tabsCharts = new TabControl();
            tabsCharts.Pages.Add(pageTreeChart);
            tabsCharts.Pages.Add(pageAncCircle);

            pageCharts         = new TabPage();
            pageCharts.Content = tabsCharts;
            pageCharts.Text    = "pageCharts";

            //

            lstPersonColumns = new GKListView();
            //lstPersonColumns.Size = new Size(468, 409);
            //lstPersonColumns.ItemCheck += new ItemCheckEventHandler(ListPersonColumns_ItemCheck);

            btnColumnUp        = new Button();
            btnColumnUp.Size   = new Size(26, 26);
            btnColumnUp.Click += btnColumnUp_Click;

            btnColumnDown        = new Button();
            btnColumnDown.Size   = new Size(26, 26);
            btnColumnDown.Click += btnColumnDown_Click;

            btnDefList        = new Button();
            btnDefList.Size   = new Size(190, 26);
            btnDefList.Text   = "btnDefList";
            btnDefList.Click += btnDefList_Click;

            panel1         = new Panel();
            panel1.Width   = 210;
            panel1.Content = new VDefStackLayout {
                Items = { btnColumnUp, btnColumnDown, null, btnDefList }
            };

            pageViewPersons         = new TabPage();
            pageViewPersons.Text    = "pageViewPersons";
            pageViewPersons.Content = TableLayout.Horizontal(10, new TableCell(lstPersonColumns, true), panel1);

            //

            radS_N_P      = new RadioButton();
            radS_N_P.Text = "radS_N_P";

            radS_NP      = new RadioButton(radS_N_P);
            radS_NP.Text = "radS_NP";

            radSNP      = new RadioButton(radS_N_P);
            radSNP.Text = "radSNP";

            rgFNPFormat         = new GroupBox();
            rgFNPFormat.Text    = "rgFNPFormat";
            rgFNPFormat.Content = new VDefStackLayout {
                Items = { radS_N_P, radS_NP, radSNP }
            };

            //

            radDMY      = new RadioButton();
            radDMY.Text = "DD.MM.YYYY";

            radYMD      = new RadioButton(radDMY);
            radYMD.Text = "YYYY.MM.DD";

            chkShowDatesSigns      = new CheckBox();
            chkShowDatesSigns.Text = "chkShowDatesSigns";

            chkShowDatesCalendar      = new CheckBox();
            chkShowDatesCalendar.Text = "chkShowDatesCalendar";

            grpDateFormat         = new GroupBox();
            grpDateFormat.Text    = "grpDateFormat";
            grpDateFormat.Content = new VDefStackLayout {
                Items = { radDMY, radYMD, null, chkShowDatesSigns, chkShowDatesCalendar }
            };

            //

            radMarried      = new RadioButton();
            radMarried.Text = "radMarried";

            radMaiden      = new RadioButton(radMarried);
            radMaiden.Text = "radMaiden";

            radMarried_Maiden      = new RadioButton(radMarried);
            radMarried_Maiden.Text = "radMarried_Maiden";

            radMaiden_Married      = new RadioButton(radMarried);
            radMaiden_Married.Text = "radMaiden_Married";

            chkExtendWomanSurnames                 = new CheckBox();
            chkExtendWomanSurnames.Text            = "ExtendWomanSurnames";
            chkExtendWomanSurnames.CheckedChanged += chkExtendWomanSurnames_CheckedChanged;

            grpAdvancedNames         = new GroupBox();
            grpAdvancedNames.Text    = "AdvancedNames";
            grpAdvancedNames.Content = new VDefStackLayout {
                Items = { chkExtendWomanSurnames, radMaiden_Married, radMarried_Maiden, radMaiden, radMarried }
            };

            //

            chkPlacesWithAddress      = new CheckBox();
            chkPlacesWithAddress.Text = "chkPlacesWithAddress";

            chkHighlightUnparented      = new CheckBox();
            chkHighlightUnparented.Text = "chkHighlightUnparented";

            chkHighlightUnmarried      = new CheckBox();
            chkHighlightUnmarried.Text = "chkHighlightUnmarried";

            //

            pageViewCommon         = new TabPage();
            pageViewCommon.Text    = "pageViewCommon";
            pageViewCommon.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { rgFNPFormat,          grpDateFormat         }
                    },
                    new TableRow {
                        Cells =  { grpAdvancedNames, new VDefStackLayout     {
                                       Items = { chkPlacesWithAddress, chkHighlightUnparented, chkHighlightUnmarried }
                                   } }
                    },
                    null
                }
            };

            //

            PageControl2 = new TabControl();
            PageControl2.Pages.Add(pageViewCommon);
            PageControl2.Pages.Add(pageViewPersons);

            pageUIView         = new TabPage();
            pageUIView.Content = PageControl2;
            pageUIView.Text    = "pageUIView";

            //

            radExcess      = new RadioButton();
            radExcess.Text = "radExcess";

            radCompact      = new RadioButton(radExcess);
            radCompact.Text = "radCompact";

            grpPedigreeFormat         = new GroupBox();
            grpPedigreeFormat.Text    = "grpPedigreeFormat";
            grpPedigreeFormat.Content = new VDefStackLayout {
                Items = { radExcess, radCompact }
            };

            //

            chkAttributes      = new CheckBox();
            chkAttributes.Text = "chkAttributes";

            chkNotes      = new CheckBox();
            chkNotes.Text = "chkNotes";

            chkGenerations      = new CheckBox();
            chkGenerations.Text = "chkGenerations";

            chkSources      = new CheckBox();
            chkSources.Text = "chkSources";

            grpPedigree         = new GroupBox();
            grpPedigree.Text    = "grpPedigree";
            grpPedigree.Content = new VDefStackLayout {
                Items = { chkAttributes, chkNotes, chkSources, chkGenerations, grpPedigreeFormat }
            };

            pagePedigree         = new TabPage();
            pagePedigree.Content = grpPedigree;
            pagePedigree.Text    = "pagePedigree";

            //

            lvPlugins = new GKListView();

            pagePlugins         = new TabPage();
            pagePlugins.Content = lvPlugins;
            pagePlugins.Text    = "pagePlugins";

            //

            PageControl1 = new TabControl();
            PageControl1.Pages.Add(pageCommon);
            PageControl1.Pages.Add(pageMultimedia);
            PageControl1.Pages.Add(pageCharts);
            PageControl1.Pages.Add(pageUIView);
            PageControl1.Pages.Add(pagePedigree);
            PageControl1.Pages.Add(pagePlugins);

            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        += CancelClickHandler;

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { PageControl1 }
                    },
                    UIHelper.MakeDialogFooter(null, btnAccept, btnCancel)
                }
            };

            DefaultButton = btnAccept;
            AbortButton   = btnCancel;
            Title         = "OptionsDlg";

            SetPredefProperties(740, 560);
            ResumeLayout();
        }
Пример #8
0
        //private ContextMenu cmStatTypes;

        private void InitializeComponent()
        {
            SuspendLayout();

            lvSummary = new GKListView();

            grpSummary         = new GroupBox();
            grpSummary.Text    = "grpSummary";
            grpSummary.Content = lvSummary;
            grpSummary.Size    = new Size(800, 260);

            /*cbType = new ButtonToolItem();
             * cbType.Text = "Stat Types ▼";
             * cbType.Click += (sender, e) => cmStatTypes.Show(this);*/
            cbType                       = new ComboBox();
            cbType.Width                 = 200;
            cbType.ReadOnly              = true;
            cbType.SelectedIndexChanged += cbType_SelectedIndexChanged;

            tbExcelExport        = new Button();//ButtonToolItem();
            tbExcelExport.Click += tbExcelExport_Click;
            tbExcelExport.Image  = Bitmap.FromResource("Resources.btn_excel.gif");
            tbExcelExport.Size   = new Size(26, 26);

            //cmStatTypes = ContextMenu();

            ToolBar1         = new Panel();
            ToolBar1.Content = new DefStackLayout(0, 10, Orientation.Horizontal)
            {
                Items = { cbType, tbExcelExport }
            };

            /*ToolBar1 = new ToolBar();
             * ToolBar1.Items.AddRange(new ToolItem[] {
             *                          new SeparatorToolItem(),
             *                          cbType,
             *                          new SeparatorToolItem(),
             *                          tbExcelExport});*/

            panDataPlaceholder      = new Panel();
            panDataPlaceholder.Size = new Size(800, 260);

            Content = new TableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { grpSummary         }
                    },
                    new TableRow {
                        Cells =  { ToolBar1           }
                    },
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { panDataPlaceholder }
                    }
                }
            };

            Load    += StatisticsWin_Load;
            KeyDown += StatisticsWin_KeyDown;
            Title    = "StatisticsWin";
            //ToolBar = ToolBar1;

            UIHelper.SetPredefProperties(this, 900, 600, true, true);
            ResumeLayout();
        }
Пример #9
0
        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();
        }
Пример #10
0
        private void InitializeComponent()
        {
            SuspendLayout();

            ListSelected        = new GKListView();
            ListSelected.Height = 200;

            ListSkipped        = new GKListView();
            ListSkipped.Height = 200;

            btnSelectAll        = new Button();
            btnSelectAll.Size   = new Size(130, 26);
            btnSelectAll.Text   = "btnSelectAll";
            btnSelectAll.Click += btnSelectAll_Click;

            btnSelectFamily        = new Button();
            btnSelectFamily.Size   = new Size(130, 26);
            btnSelectFamily.Text   = "btnSelectFamily";
            btnSelectFamily.Click += btnSelectFamily_Click;

            btnSelectAncestors        = new Button();
            btnSelectAncestors.Size   = new Size(130, 26);
            btnSelectAncestors.Text   = "btnSelectAncestors";
            btnSelectAncestors.Click += btnSelectAncestors_Click;

            btnSelectDescendants        = new Button();
            btnSelectDescendants.Size   = new Size(130, 26);
            btnSelectDescendants.Text   = "btnSelectDescendants";
            btnSelectDescendants.Click += btnSelectDescendants_Click;

            btnDelete        = new Button();
            btnDelete.Size   = new Size(130, 26);
            btnDelete.Text   = "btnDelete";
            btnDelete.Click += btnDelete_Click;

            btnSave        = new Button();
            btnSave.Size   = new Size(130, 26);
            btnSave.Text   = "btnSave";
            btnSave.Click += btnSave_Click;

            pageTreeSplit         = new TabPage();
            pageTreeSplit.Text    = "pageTreeSplit";
            pageTreeSplit.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { TableLayout.HorizontalScaled(10, ListSelected, ListSkipped) }
                    },
                    UIHelper.MakeDialogFooter(btnSelectAll, btnSelectFamily, btnSelectAncestors, btnSelectDescendants, null, btnSave, btnDelete)
                }
            };

            //

            tabsTools = new TabControl();
            tabsTools.Pages.Add(pageTreeSplit);
            tabsTools.SelectedIndex = 0;

            btnClose = new Button();
            btnClose.ImagePosition = ButtonImagePosition.Left;
            btnClose.Size          = new Size(130, 26);
            btnClose.Text          = "btnClose";
            btnClose.Click        += (sender, e) => { Close(); };

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { tabsTools }
                    },
                    UIHelper.MakeDialogFooter(null, btnClose)
                }
            };

            AbortButton   = btnClose;
            Maximizable   = false;
            Minimizable   = false;
            ShowInTaskbar = false;
            Title         = "TreeToolsWin";

            UIHelper.SetPredefProperties(this, 1030, 620);
            ResumeLayout();
        }