private void InitializeComponent()
        {
            SuspendLayout();

            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;

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

            cmbRef       = new ComboBox();
            cmbRef.Width = 300;

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

            cmbRefType = new ComboBox();

            var panelData = new TableLayout {
                Spacing = new Size(10, 10),
                Rows    =
                {
                    new TableRow {
                        Cells =  { lblReference,cmbRef     }
                    },
                    new TableRow {
                        Cells =  { lblRefType,  cmbRefType }
                    },
                    null
                }
            };

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

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

            SetPredefProperties(500, 180);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

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

            edName = new TextBox();

            pageMembers      = new TabPage();
            pageMembers.Text = "pageMembers";

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            pageMultimedia      = new TabPage();
            pageMultimedia.Text = "pageMultimedia";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageMembers);
            tabsData.Pages.Add(pageNotes);
            tabsData.Pages.Add(pageMultimedia);
            tabsData.Size = new Size(600, 260);

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += btnCancel_Click;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { TableLayout.Horizontal(10,lblName, edName) }
                    },
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { tabsData }
                    },
                    UIHelper.MakeDialogFooter(null, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(580, 460);
            ResumeLayout();
        }
Exemple #3
0
        private void InitializeComponent()
        {
            SuspendLayout();

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

            txtName = new TextBox();

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageNotes);
            tabsData.Size = new Size(600, 260);

            //

            btnAddress        = new Button();
            btnAddress.Size   = new Size(130, 26);
            btnAddress.Text   = "btnAddress";
            btnAddress.Click += btnAddress_Click;

            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 {
                        Cells =  { TableLayout.Horizontal(10,lblName, txtName) }
                    },
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { tabsData }
                    },
                    UIHelper.MakeDialogFooter(btnAddress, null, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(580, 460);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            txtName          = new TextBox();
            txtName.ReadOnly = true;

            rbNone      = new RadioButton();
            rbNone.Text = "?";

            rbMale      = new RadioButton(rbNone);
            rbMale.Text = "rbMale";

            rbFemale      = new RadioButton(rbNone);
            rbFemale.Text = "rbFemale";

            grpSex         = new GroupBox();
            grpSex.Text    = "grpSex";
            grpSex.Content = new DefStackLayout(Orientation.Horizontal)
            {
                Items = { rbNone, rbMale, rbFemale }
            };

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(80, 26);
            btnAccept.Text          = "btnAccept";

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(80, 26);
            btnCancel.Text          = "btnCancel";

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

            DefaultButton = btnAccept;
            AbortButton   = btnCancel;
            Title         = "SexCheckDlg";
            Topmost       = true;

            SetPredefProperties(500, 160);
            ResumeLayout();
        }
Exemple #5
0
        private void InitializeComponent()
        {
            SuspendLayout();

            btnReset        = new Button();
            btnReset.Size   = new Size(130, 26);
            btnReset.Text   = "btnReset";
            btnReset.Click += btnReset_Click;

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += CancelClickHandler;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

            dataGridView1        = new GKListView();
            dataGridView1.Height = 460;

            tsFieldsFilter         = new TabPage();
            tsFieldsFilter.Content = dataGridView1;
            tsFieldsFilter.Text    = "tsFieldsFilter";

            tabsFilters = new TabControl();
            tabsFilters.Pages.Add(tsFieldsFilter);

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

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

            SetPredefProperties(860, 580);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            btnSelect = new Button();
            btnSelect.ImagePosition = ButtonImagePosition.Left;
            btnSelect.Size          = new Size(130, 26);
            btnSelect.Text          = "btnSelect";
            btnSelect.Click        += btnSelect_Click;
            btnSelect.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCreate        = new Button();
            btnCreate.Size   = new Size(130, 26);
            btnCreate.Text   = "btnCreate";
            btnCreate.Click += btnCreate_Click;

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += CancelClickHandler;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

            txtFastFilter              = new TextBox();
            txtFastFilter.TextChanged += txtFastFilter_TextChanged;

            panList      = new Panel();
            panList.Size = new Size(540, 400);

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { txtFastFilter}
                    },
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { panList }
                    },
                    UIHelper.MakeDialogFooter(null, btnCreate, btnSelect, btnCancel)
                }
            };

            AbortButton = btnCancel;
            Title       = "RecordSelectDlg";

            SetPredefProperties(560, 510);
            ResumeLayout();
        }
Exemple #7
0
        private void InitializeComponent()
        {
            SuspendLayout();

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "OK";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "Cancel";
            btnCancel.Click        += CancelClickHandler;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

            lstLanguages = new ListBox();

            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";
            Load         += LanguageSelectDlg_Load;

            SetPredefProperties(440, 400);
            ResumeLayout();
        }
Exemple #8
0
        private void InitializeComponent()
        {
            btnClose = new Button();
            btnClose.ImagePosition = ButtonImagePosition.Left;
            btnClose.Size          = new Size(130, 26);
            btnClose.Text          = "btnClose";
            btnClose.Click        += CancelClickHandler;
            btnClose.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            lblProduct      = new Label();
            lblProduct.Font = UIHelper.GetDefaultFont(20.25F, FontStyle.Bold);
            lblProduct.Text = "lblProduct";

            lblVersion      = new Label();
            lblVersion.Font = UIHelper.GetDefaultFont(11.25F, FontStyle.Bold);
            lblVersion.Text = "lblVersion";

            lblCopyright      = new Label();
            lblCopyright.Font = UIHelper.GetDefaultFont(11.25F, FontStyle.Bold);
            lblCopyright.Text = "lblCopyright";

            lblMail        = new LinkButton();
            lblMail.Font   = UIHelper.GetDefaultFont(9.0f, FontStyle.Bold);
            lblMail.Text   = "mailto:[email protected]";
            lblMail.Click += LabelMail_Click;

            lblProjSite        = new LinkButton();
            lblProjSite.Font   = UIHelper.GetDefaultFont(9.0f, FontStyle.Bold);
            lblProjSite.Text   = "https://gedkeeper.github.io/";
            lblProjSite.Click += LabelMail_Click;

            Content = new DefTableLayout {
                Rows =
                {
                    lblProduct,
                    lblVersion,
                    lblCopyright,
                    null,
                    lblProjSite,
                    lblMail,
                    UIHelper.MakeDialogFooter(null, btnClose)
                }
            };

            Title = "AboutDlg";

            SetPredefProperties(360, 220, false);
        }
Exemple #9
0
        private void InitializeComponent()
        {
            SuspendLayout();

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += CancelClickHandler;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

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

            cmbLanguage          = new ComboBox();
            cmbLanguage.ReadOnly = true;
            //cmbLanguage.Sorted = true;

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblLanguage }
                    },
                    new TableRow {
                        Cells =  { cmbLanguage }
                    },
                    null,
                    UIHelper.MakeDialogFooter(null, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(400, 120);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += CancelClickHandler;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

            imageView1 = new GKUI.Components.ImageView();
            imageView1.SelectionMode = ImageBoxSelectionMode.Rectangle;
            imageView1.ShowToolbar   = true;
            imageView1.Size          = new Size(800, 600);

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

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

            SetPredefProperties(870, 680);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += CancelClickHandler;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

            txtNote = new TextArea();
            txtNote.AcceptsReturn = true;
            txtNote.Size          = new Size(400, 260);

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

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

            SetPredefProperties(400, 250);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

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

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

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

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

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

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

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

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

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

            txtMarriedSurname            = new TextBox();
            txtMarriedSurname.Size       = new Size(180, 22);
            txtMarriedSurname.KeyDown   += txtXName_KeyDown;
            txtMarriedSurname.LostFocus += txtXName_Leave;

            txtSurname            = new TextBox();
            txtSurname.Size       = new Size(180, 22);
            txtSurname.KeyDown   += txtXName_KeyDown;
            txtSurname.LostFocus += txtXName_Leave;

            txtName            = new TextBox();
            txtName.Size       = new Size(180, 22);
            txtName.KeyDown   += txtXName_KeyDown;
            txtName.LostFocus += txtXName_Leave;

            cmbPatronymic            = new ComboBox();
            cmbPatronymic.Size       = new Size(180, 22);
            cmbPatronymic.KeyDown   += txtXName_KeyDown;
            cmbPatronymic.LostFocus += txtXName_Leave;

            cmbSex                       = new ComboBox();
            cmbSex.ReadOnly              = true;
            cmbSex.Size                  = new Size(180, 22);
            cmbSex.SelectedIndexChanged += cbSex_SelectedIndexChanged;

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

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

            txtSurnamePrefix          = new TextBox();
            txtSurnamePrefix.Size     = new Size(180, 22);
            txtSurnamePrefix.KeyDown += txtXName_KeyDown;

            txtNamePrefix          = new TextBox();
            txtNamePrefix.Size     = new Size(180, 22);
            txtNamePrefix.KeyDown += txtXName_KeyDown;

            txtNameSuffix          = new TextBox();
            txtNameSuffix.Size     = new Size(180, 22);
            txtNameSuffix.KeyDown += txtXName_KeyDown;

            txtNickname          = new TextBox();
            txtNickname.Size     = new Size(180, 22);
            txtNickname.KeyDown += txtXName_KeyDown;

            var personLayout = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { new DefStackLayout(lblSurname,      txtSurname),
                                   new DefStackLayout(lblSurnamePrefix, txtSurnamePrefix), null }
                    },
                    new TableRow {
                        Cells =  { new DefStackLayout(lblMarriedSurname, txtMarriedSurname),
                                   new DefStackLayout(lblNamePrefix,      txtNamePrefix),
                                   new DefStackLayout(lblSex,             cmbSex) }
                    },
                    new TableRow {
                        Cells =  { new DefStackLayout(lblName,      txtName),
                                   new DefStackLayout(lblNameSuffix, txtNameSuffix),
                                   chkBookmark }
                    },
                    new TableRow {
                        Cells =  { new DefStackLayout(lblPatronymic, cmbPatronymic),
                                   new DefStackLayout(lblNickname,    txtNickname),
                                   chkPatriarch }
                    }
                }
            };

            imgPortrait       = new GKPortrait();
            imgPortrait.Image = null;
            //imgPortrait.Width = 150;
            //imgPortrait.Size = new Size(149, 165);
            imgPortrait.SlidePanelHeight = 36;
            imgPortrait.PixelSpeed       = 5;

            btnPortraitAdd        = new Button();
            btnPortraitAdd.Size   = UIHelper.ShortButtonSize;
            btnPortraitAdd.Click += btnPortraitAdd_Click;

            btnPortraitDelete        = new Button();
            btnPortraitDelete.Size   = UIHelper.ShortButtonSize;
            btnPortraitDelete.Click += btnPortraitDelete_Click;

            var portraitLayout = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { imgPortrait }
                    },
                    UIHelper.MakeDialogFooter(null, btnPortraitAdd, btnPortraitDelete, null)
                }
            };

            GroupBox1         = new GroupBox();
            GroupBox1.Content = TableLayout.Horizontal(10, new TableCell(personLayout, true), new TableCell(portraitLayout));

            //

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

            txtFather         = new TextBox();
            txtFather.Enabled = false;
            txtFather.Size    = new Size(220, 22);

            txtMother         = new TextBox();
            txtMother.Enabled = false;
            txtMother.Size    = new Size(220, 22);

            btnParentsAdd        = new Button();
            btnParentsAdd.Size   = UIHelper.ShortButtonSize;
            btnParentsAdd.Click += btnParentsAdd_Click;

            btnParentsEdit        = new Button();
            btnParentsEdit.Size   = UIHelper.ShortButtonSize;
            btnParentsEdit.Click += btnParentsEdit_Click;

            btnParentsDelete        = new Button();
            btnParentsDelete.Size   = UIHelper.ShortButtonSize;
            btnParentsDelete.Click += btnParentsDelete_Click;

            btnFatherAdd        = new Button();
            btnFatherAdd.Size   = UIHelper.ShortButtonSize;
            btnFatherAdd.Click += btnFatherAdd_Click;

            btnFatherDelete        = new Button();
            btnFatherDelete.Size   = UIHelper.ShortButtonSize;
            btnFatherDelete.Click += btnFatherDelete_Click;

            btnFatherSel        = new Button();
            btnFatherSel.Size   = UIHelper.ShortButtonSize;
            btnFatherSel.Click += btnFatherSel_Click;

            btnMotherAdd        = new Button();
            btnMotherAdd.Size   = UIHelper.ShortButtonSize;
            btnMotherAdd.Click += btnMotherAdd_Click;

            btnMotherDelete        = new Button();
            btnMotherDelete.Size   = UIHelper.ShortButtonSize;
            btnMotherDelete.Click += btnMotherDelete_Click;

            btnMotherSel        = new Button();
            btnMotherSel.Size   = UIHelper.ShortButtonSize;
            btnMotherSel.Click += btnMotherSel_Click;

            var parentsTab = new DefTableLayout(4, 2);

            parentsTab.SetColumnScale(0, false);
            parentsTab.SetColumnScale(1, true);
            parentsTab.SetColumnScale(2, true);
            parentsTab.SetColumnScale(3, false);
            parentsTab.Add(lblParents, 0, 0);
            parentsTab.Add(txtFather, 1, 0);
            parentsTab.Add(txtMother, 2, 0);
            parentsTab.Add(new DefStackLayout(Orientation.Horizontal, 10, btnParentsAdd, btnParentsEdit, btnParentsDelete), 3, 0);
            parentsTab.Add(new DefStackLayout(Orientation.Horizontal, 10, btnFatherAdd, btnFatherDelete, btnFatherSel), 1, 1);
            parentsTab.Add(new DefStackLayout(Orientation.Horizontal, 10, btnMotherAdd, btnMotherDelete, btnMotherSel), 2, 1);

            panCtlParents         = new GroupBox();
            panCtlParents.Content = parentsTab;

            //

            pageEvents      = new TabPage();
            pageEvents.Text = "pageEvents";

            pageSpouses      = new TabPage();
            pageSpouses.Text = "pageSpouses";

            pageNames      = new TabPage();
            pageNames.Text = "pageNames";

            pageAssociations      = new TabPage();
            pageAssociations.Text = "pageAssociations";

            pageGroups      = new TabPage();
            pageGroups.Text = "pageGroups";

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            pageMultimedia      = new TabPage();
            pageMultimedia.Text = "pageMultimedia";

            pageSources      = new TabPage();
            pageSources.Text = "pageSources";

            pageUserRefs      = new TabPage();
            pageUserRefs.Text = "pageUserRefs";

            pageParents      = new TabPage();
            pageParents.Text = "pageParents";

            tabsPersonData = new TabControl();
            tabsPersonData.Pages.Add(pageEvents);
            tabsPersonData.Pages.Add(pageSpouses);
            tabsPersonData.Pages.Add(pageNames);
            tabsPersonData.Pages.Add(pageAssociations);
            tabsPersonData.Pages.Add(pageGroups);
            tabsPersonData.Pages.Add(pageNotes);
            tabsPersonData.Pages.Add(pageMultimedia);
            tabsPersonData.Pages.Add(pageSources);
            tabsPersonData.Pages.Add(pageUserRefs);
            tabsPersonData.Pages.Add(pageParents);

            //

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

            cmbRestriction                       = new ComboBox();
            cmbRestriction.ReadOnly              = true;
            cmbRestriction.Size                  = new Size(180, 22);
            cmbRestriction.SelectedIndexChanged += cbRestriction_SelectedIndexChanged;

            btnNameCopy        = new Button();
            btnNameCopy.Size   = UIHelper.ShortButtonSize;
            btnNameCopy.Click += btnNameCopy_Click;

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = UIHelper.LongButtonSize;
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = UIHelper.LongButtonSize;
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += btnCancel_Click;

            //

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { GroupBox1      }
                    },
                    new TableRow {
                        Cells =  { panCtlParents  }
                    },
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { tabsPersonData }
                    },
                    UIHelper.MakeDialogFooter(lblRestriction, cmbRestriction, null, btnNameCopy, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(700, 560);
            ResumeLayout();
        }
Exemple #13
0
        private void InitializeComponent()
        {
            SuspendLayout();

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

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

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

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

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

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

            txtName = new TextBox();

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

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

            txtStartDate          = new GKDateBox();
            txtStartDate.Provider = new FixedMaskedTextProvider("00/00/0000");

            txtStopDate          = new GKDateBox();
            txtStopDate.Provider = new FixedMaskedTextProvider("00/00/0000");

            nudPercent           = new NumericUpDown();
            nudPercent.Increment = 5;

            GroupBox1         = new GroupBox();
            GroupBox1.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblName,txtName }
                    },
                    new TableRow {
                        Cells =
                        {
                            lblPriority,
                            TableLayout.Horizontal(10,cmbPriority,  lblStatus, cmbStatus, lblPercent, nudPercent)
                        }
                    },
                    new TableRow {
                        Cells =
                        {
                            lblStartDate,
                            TableLayout.Horizontal(10,txtStartDate,  lblStopDate, txtStopDate)
                        }
                    }
                }
            };

            //

            pageTasks      = new TabPage();
            pageTasks.Text = "pageTasks";

            pageCommunications      = new TabPage();
            pageCommunications.Text = "pageCommunications";

            pageGroups      = new TabPage();
            pageGroups.Text = "pageGroups";

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageTasks);
            tabsData.Pages.Add(pageCommunications);
            tabsData.Pages.Add(pageGroups);
            tabsData.Pages.Add(pageNotes);
            tabsData.Size = new Size(600, 260);

            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 {
                        Cells =  { GroupBox1}
                    },
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { tabsData }
                    },
                    UIHelper.MakeDialogFooter(null, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(850, 560);
            ResumeLayout();
        }
Exemple #14
0
        private void InitializeComponent()
        {
            SuspendLayout();

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

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

            btnPersonAdd        = new Button();
            btnPersonAdd.Size   = new Size(26, 26);
            btnPersonAdd.Click += btnPersonAdd_Click;

            cmbRelation = new ComboBox();

            txtPerson          = new TextBox();
            txtPerson.ReadOnly = true;
            txtPerson.Width    = 280;

            var panelData = new TableLayout {
                Spacing = new Size(10, 10),
                Rows    =
                {
                    new TableRow {
                        Cells =  { lblRelation,cmbRelation   }
                    },
                    new TableRow {
                        Cells =  { lblPerson,  TableLayout.Horizontal(10, new TableCell(txtPerson, true), btnPersonAdd)}
                    },
                    null
                }
            };

            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       = { panelData }
                    },
                    UIHelper.MakeDialogFooter(null, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(500, 180);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            btnAnalyseBase        = new Button();
            btnAnalyseBase.Size   = new Size(130, 26);
            btnAnalyseBase.Text   = "btnAnalyseBase";
            btnAnalyseBase.Click += btnAnalyseBase_Click;

            btnBaseRepair        = new Button();
            btnBaseRepair.Size   = new Size(130, 26);
            btnBaseRepair.Text   = "btnBaseRepair";
            btnBaseRepair.Click += btnBaseRepair_Click;

            panProblemsContainer      = new Panel();
            panProblemsContainer.Size = new Size(880, 400);

            pageTreeCheck         = new TabPage();
            pageTreeCheck.Text    = "pageTreeCheck";
            pageTreeCheck.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { panProblemsContainer }
                    },
                    UIHelper.MakeDialogFooter(btnAnalyseBase, null, btnBaseRepair)
                }
            };

            //

            tabsTools = new TabControl();
            tabsTools.Pages.Add(pageTreeCheck);
            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();
        }
Exemple #16
0
        private void InitializeComponent()
        {
            SuspendLayout();

            //

            rbAll                 = new RadioButton();
            rbAll.Text            = "rbAll";
            rbAll.CheckedChanged += rgLife_CheckedChanged;

            rbOnlyLive                 = new RadioButton(rbAll);
            rbOnlyLive.Text            = "rbOnlyLive";
            rbOnlyLive.CheckedChanged += rgLife_CheckedChanged;

            rbOnlyDead                 = new RadioButton(rbAll);
            rbOnlyDead.Text            = "rbOnlyDead";
            rbOnlyDead.CheckedChanged += rgLife_CheckedChanged;

            rbAliveBefore                 = new RadioButton(rbAll);
            rbAliveBefore.Text            = "rbAliveBefore";
            rbAliveBefore.CheckedChanged += rgLife_CheckedChanged;

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

            txtAliveBeforeDate          = new MaskedTextBox();
            txtAliveBeforeDate.Provider = new FixedMaskedTextProvider("00/00/0000");
            txtAliveBeforeDate.Enabled  = false;

            rgLife         = new GroupBox();
            rgLife.Content = new VDefStackLayout {
                Items =
                {
                    rbAll,                                     rbOnlyLive, rbOnlyDead,     rbAliveBefore,
                    new DefStackLayout(Orientation.Horizontal,         10, lblAliveBefore, txtAliveBeforeDate)
                }
            };

            //

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

            rbSexMale      = new RadioButton(rbSexAll);
            rbSexMale.Text = "rbSexMale";

            rbSexFemale      = new RadioButton(rbSexAll);
            rbSexFemale.Text = "rbSexFemale";

            rgSex         = new GroupBox();
            rgSex.Content = new VDefStackLayout {
                Items = { rbSexAll, rbSexMale, rbSexFemale }
            };

            //

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

            txtName = new ComboBox();
            //txtName.Sorted = true;

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

            cmbResidence = new ComboBox();
            //cmbResidence.Sorted = true;

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

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

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

            cmbEventVal = new ComboBox();
            //cmbEventVal.Sorted = true;

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

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

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

            var masksPanel = new DefTableLayout()
            {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblNameMask,       txtName      }
                    },
                    new TableRow {
                        Cells =  { lblPlaceMask,      cmbResidence }
                    },
                    new TableRow {
                        Cells =  { lblEventsMask,     cmbEventVal  }
                    },
                    new TableRow {
                        Cells =  { lblGroups,         cmbGroup     }
                    },
                    new TableRow {
                        Cells =  { lblSources,        cmbSource    }
                    },
                    new TableRow {
                        Cells =  { chkOnlyPatriarchs, null         }
                    },
                }
            };

            pageSpecificFilter         = new TabPage();
            pageSpecificFilter.Text    = "pageSpecificFilter";
            pageSpecificFilter.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { rgSex,      rgLife }
                    },
                    new TableRow {
                        Cells =  { masksPanel, null   }
                    },
                    null
                }
            };

            tabsFilters.Pages.Add(pageSpecificFilter);

            ResumeLayout();
        }
Exemple #17
0
        private void InitializeComponent()
        {
            SuspendLayout();

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

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

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

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

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

            txtCountry       = new TextBox();
            txtCountry.Width = 280;

            txtState = new TextBox();

            txtCity = new TextBox();

            txtPostalCode = new TextBox();

            txtAddress = new TextBox();

            pageCommon         = new TabPage();
            pageCommon.Text    = "pageCommon";
            pageCommon.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblCountry,    txtCountry    }
                    },
                    new TableRow {
                        Cells =  { lblState,      txtState      }
                    },
                    new TableRow {
                        Cells =  { lblCity,       txtCity       }
                    },
                    new TableRow {
                        Cells =  { lblPostalCode, txtPostalCode }
                    },
                    new TableRow {
                        Cells =  { lblAddress,    txtAddress    }
                    }
                }
            };

            //

            pagePhones      = new TabPage();
            pagePhones.Text = "pagePhones";

            pageEmails      = new TabPage();
            pageEmails.Text = "pageEmails";

            pageWebPages      = new TabPage();
            pageWebPages.Text = "pageWebPages";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageCommon);
            tabsData.Pages.Add(pagePhones);
            tabsData.Pages.Add(pageEmails);
            tabsData.Pages.Add(pageWebPages);
            tabsData.Height = 260;

            //

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = UIHelper.LongButtonSize;
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = UIHelper.LongButtonSize;
            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         = "AddressEditDlg";

            SetPredefProperties(570, 380);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            lblMasterBase = new Label();
            //lblMasterBase.Size = new Size(88, 17);
            lblMasterBase.Text = "lblMasterBase";

            lblOtherBase = new Label();
            //lblOtherBase.Size = new Size(122, 17);
            lblOtherBase.Text = "lblOtherBase";

            edMasterBase = new TextBox();
            edMasterBase.BackgroundColor = SystemColors.Control;
            edMasterBase.ReadOnly        = true;
            //edMasterBase.Size = new Size(853, 24);
            edMasterBase.Text = "edMasterBase";

            edUpdateBase          = new TextBox();
            edUpdateBase.ReadOnly = true;
            edUpdateBase.Width    = 600;

            btnTreeMerge        = new Button();
            btnTreeMerge.Size   = new Size(130, 26);
            btnTreeMerge.Text   = "btnTreeMerge";
            btnTreeMerge.Click += btnTreeMerge_Click;

            mSyncRes          = new TextArea();
            mSyncRes.ReadOnly = true;
            mSyncRes.Height   = 160;

            pageTreeMerge         = new TabPage();
            pageTreeMerge.Text    = "pageTreeMerge";
            pageTreeMerge.Content = new DefTableLayout {
                Rows =
                {
                    new DefTableLayout   {
                        Rows =
                        {
                            new TableRow {
                                Cells =  { lblMasterBase, edMasterBase }
                            },
                            new TableRow {
                                Cells =  { lblOtherBase,  TableLayout.Horizontal(10, edUpdateBase, btnTreeMerge)}
                            }
                        }
                    },
                    mSyncRes
                }
            };

            tabsTools = new TabControl();
            tabsTools.Pages.Add(pageTreeMerge);
            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();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

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

            txtChildName          = new TextBox();
            txtChildName.Size     = new Size(180, 22);
            txtChildName.ReadOnly = true;

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

            cmbLinkageType          = new ComboBox();
            cmbLinkageType.Size     = new Size(180, 22);
            cmbLinkageType.ReadOnly = true;

            var personLayout = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblChildName,   txtChildName   }
                    },
                    new TableRow {
                        Cells =  { lblLinkageType, cmbLinkageType }
                    },
                }
            };

            GroupBox1         = new GroupBox();
            GroupBox1.Content = TableLayout.Horizontal(10, new TableCell(personLayout, true));

            //

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

            txtFather         = new TextBox();
            txtFather.Enabled = false;
            txtFather.Size    = new Size(220, 22);

            txtMother         = new TextBox();
            txtMother.Enabled = false;
            txtMother.Size    = new Size(220, 22);

            btnParentsEdit        = new Button();
            btnParentsEdit.Size   = UIHelper.ShortButtonSize;
            btnParentsEdit.Click += btnParentsEdit_Click;

            btnFatherAdd        = new Button();
            btnFatherAdd.Size   = UIHelper.ShortButtonSize;
            btnFatherAdd.Click += btnFatherAdd_Click;

            btnFatherDelete        = new Button();
            btnFatherDelete.Size   = UIHelper.ShortButtonSize;
            btnFatherDelete.Click += btnFatherDelete_Click;

            btnMotherAdd        = new Button();
            btnMotherAdd.Size   = UIHelper.ShortButtonSize;
            btnMotherAdd.Click += btnMotherAdd_Click;

            btnMotherDelete        = new Button();
            btnMotherDelete.Size   = UIHelper.ShortButtonSize;
            btnMotherDelete.Click += btnMotherDelete_Click;

            var parentsTab = new DefTableLayout(4, 2);

            parentsTab.SetColumnScale(0, false);
            parentsTab.SetColumnScale(1, true);
            parentsTab.SetColumnScale(2, true);
            parentsTab.SetColumnScale(3, false);
            parentsTab.Add(lblParents, 0, 0);
            parentsTab.Add(txtFather, 1, 0);
            parentsTab.Add(txtMother, 2, 0);
            parentsTab.Add(new DefStackLayout(Orientation.Horizontal, 10, btnParentsAdd, btnParentsEdit, btnParentsDelete), 3, 0);
            parentsTab.Add(new DefStackLayout(Orientation.Horizontal, 10, btnFatherAdd, btnFatherDelete, btnFatherSel), 1, 1);
            parentsTab.Add(new DefStackLayout(Orientation.Horizontal, 10, btnMotherAdd, btnMotherDelete, btnMotherSel), 2, 1);

            panCtlParents         = new GroupBox();
            panCtlParents.Content = parentsTab;

            //

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = UIHelper.LongButtonSize;
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = UIHelper.LongButtonSize;
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += btnCancel_Click;

            //

            Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { personLayout   }
                    },
                    new TableRow {
                        Cells =  { panCtlParents  }
                    },
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { tabsPersonData }
                    },
                    UIHelper.MakeDialogFooter(lblRestriction, cmbRestriction, null, btnNameCopy, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(700, 560);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            lblTitle                   = new Label();
            lblTitle.Text              = "lblTitle";
            lblTitle.TextAlignment     = TextAlignment.Left;
            lblTitle.VerticalAlignment = VerticalAlignment.Center;

            Shape1 = new Scrollable();
            Shape1.BackgroundColor = Colors.White;
            Shape1.Border          = BorderType.Line;
            Shape1.Height          = 50;
            Shape1.Content         = new DefStackLayout(Orientation.Horizontal)
            {
                Items = { lblTitle }
            };

            Image1      = new Eto.Forms.ImageView();
            Image1.Size = new Size(41, 43);

            var imgLayout = new DefStackLayout(Orientation.Vertical);

            imgLayout.HorizontalContentAlignment = HorizontalAlignment.Center;
            imgLayout.VerticalContentAlignment   = VerticalAlignment.Top;
            imgLayout.Items.Add(Image1);

            Shape2 = new Scrollable();
            Shape2.BackgroundColor = Colors.Gray;
            Shape2.Border          = BorderType.Line;
            Shape2.Width           = 100;
            Shape2.Content         = imgLayout;

            txtTip            = new TextBox();
            txtTip.Size       = new Size(370, 154);
            txtTip.ReadOnly   = true;
            txtTip.ShowBorder = false;

            Shape3 = new Scrollable();
            Shape3.BackgroundColor = Colors.White;
            Shape3.Border          = BorderType.Line;
            Shape3.Height          = 204;
            Shape3.Content         = new DefTableLayout()
            {
                Rows = { new TableRow(txtTip)
                         {
                             ScaleHeight = true
                         } }
            };

            var panel1 = new DynamicLayout();

            panel1.BeginHorizontal();
            panel1.Add(Shape2);
            panel1.BeginVertical();
            panel1.Add(Shape1);
            panel1.Add(Shape3);
            panel1.EndVertical();
            panel1.EndHorizontal();

            chkShow         = new CheckBox();
            chkShow.Checked = true;
            chkShow.Text    = "chkShow";

            btnNextTip        = new Button();
            btnNextTip.Size   = new Size(130, 26);
            btnNextTip.Text   = "btnNextTip";
            btnNextTip.Click += btnNextTip_Click;

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

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

            AbortButton = btnClose;
            Title       = " ";
            Topmost     = true;

            SetPredefProperties(550, 310);
            lblTitle.Font = new Font("Arial", 16F, FontStyle.Bold);

            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            btnBold = new ButtonToolItem();
            //btnBold.Font = new Font("Tahoma", 9F, FontStyle.Bold);
            btnBold.Text   = "B";
            btnBold.Click += btnBold_Click;

            btnItalic = new ButtonToolItem();
            //btnItalic.Font = new Font("Tahoma", 9F, FontStyle.Italic);
            btnItalic.Text   = "I";
            btnItalic.Click += btnItalic_Click;

            btnUnderline = new ButtonToolItem();
            //btnUnderline.Font = new Font("Tahoma", 9F, FontStyle.None, FontDecoration.Underline);
            btnUnderline.Text   = "U";
            btnUnderline.Click += btnUnderline_Click;

            btnURL = new ButtonToolItem();
            //btnURL.Font = new Font("Tahoma", 9F, FontStyle.None, FontDecoration.Underline);
            //btnURL.TextColor = Colors.Blue;
            btnURL.Text   = "URL";
            btnURL.Click += btnURL_Click;

            cmbSizes      = new ButtonToolItem();
            cmbSizes.Text = "cmbSizes";
            //cmbSizes.SelectedIndexChanged += cmbSizes_SelectedIndexChanged;
            cmbSizes.Click += (sender, e) => menuSizes.Show(this);

            ddbtnActions        = new ButtonToolItem();
            ddbtnActions.Text   = "Actions";
            ddbtnActions.Click += (sender, e) => menuActions.Show(this);

            toolStrip1           = new ToolBar();
            toolStrip1.TextAlign = ToolBarTextAlign.Right;
            toolStrip1.Items.AddRange(new ToolItem[] {
                btnBold,
                btnItalic,
                btnUnderline,
                btnURL,
                cmbSizes,
                new SeparatorToolItem(),
                ddbtnActions
            });

            menuSizes = new ContextMenu();

            miSelectAndCopy        = new ButtonMenuItem();
            miSelectAndCopy.Text   = "miSelectAndCopy";
            miSelectAndCopy.Click += miSelectAndCopy_Click;

            miImport        = new ButtonMenuItem();
            miImport.Text   = "miImport";
            miImport.Click += miImport_Click;

            miExport        = new ButtonMenuItem();
            miExport.Text   = "miExport";
            miExport.Click += miExport_Click;

            miClear        = new ButtonMenuItem();
            miClear.Text   = "miClear";
            miClear.Click += miClear_Click;

            menuActions = new ContextMenu();
            menuActions.Items.AddRange(new MenuItem[] {
                miSelectAndCopy,
                miImport,
                miExport,
                miClear
            });

            //

            txtNote = new TextArea();
            txtNote.AcceptsReturn = true;

            hyperView1             = new HyperView();
            hyperView1.BorderWidth = 0;

            var pan2 = new Panel();

            //pan2.Content = hyperView1;

            //

            pageEditor         = new TabPage();
            pageEditor.Content = txtNote;
            pageEditor.Text    = "pageEditor";

            pagePreview         = new TabPage();
            pagePreview.Content = pan2;
            pagePreview.Text    = "pagePreview";

            tabControl1 = new TabControl();
            tabControl1.Pages.Add(pageEditor);
            tabControl1.Pages.Add(pagePreview);
            tabControl1.SelectedIndexChanged += tabControl1_SelectedIndexChanged;
            tabControl1.Size = new Size(400, 260);

            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       = { tabControl1 }
                    },
                    UIHelper.MakeDialogFooter(null, btnAccept, btnCancel)
                }
            };

            DefaultButton = btnAccept;
            AbortButton   = btnCancel;
            Title         = "NoteEditDlgEx";
            ToolBar       = toolStrip1;

            SetPredefProperties(460, 400);
            ResumeLayout();
        }
        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();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

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

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

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

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

            btnPersonAdd        = new Button();
            btnPersonAdd.Size   = new Size(26, 26);
            btnPersonAdd.Click += btnPersonAdd_Click;
            btnPersonAdd.Image  = Bitmap.FromResource("Resources.btn_rec_new.gif");

            txtName = new TextBox();

            txtDate          = new MaskedTextBox();
            txtDate.Provider = new FixedMaskedTextProvider("00/00/0000");

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

            txtDir          = new ComboBox();
            txtDir.ReadOnly = true;
            txtDir.Width    = 100;

            txtCorresponder          = new TextBox();
            txtCorresponder.ReadOnly = true;

            GroupBox1         = new GroupBox();
            GroupBox1.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblTheme,txtName }
                    },
                    new TableRow {
                        //Cells = { lblCorresponder, TableLayout.Horizontal(10, new TableCell(txtDir, false), new TableCell(txtCorresponder, true), btnPersonAdd) }
                        Cells =
                        {
                            lblCorresponder,
                            UIHelper.CreateRCS(txtDir,new StackLayoutItem(txtCorresponder,  true), btnPersonAdd)
                        }
                    },
                    new TableRow {
                        Cells =
                        {
                            lblType,
                            TableLayout.Horizontal(10,cmbCorrType,  lblDate, txtDate)
                        }
                    }
                }
            };

            //

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            pageMultimedia      = new TabPage();
            pageMultimedia.Text = "pageMultimedia";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageNotes);
            tabsData.Pages.Add(pageMultimedia);
            tabsData.Size = new Size(600, 260);

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += btnCancel_Click;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

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

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

            SetPredefProperties(680, 520);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            btnBC1      = new CheckBox();
            btnBC1.Text = "BC";

            btnBC2      = new CheckBox();
            btnBC2.Text = "BC";

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

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

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

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

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

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

            btnPlaceAdd         = new Button();
            btnPlaceAdd.Enabled = false;
            btnPlaceAdd.Size    = UIHelper.ShortButtonSize;
            btnPlaceAdd.Click  += btnPlaceAdd_Click;

            btnPlaceDelete         = new Button();
            btnPlaceDelete.Enabled = false;
            btnPlaceDelete.Size    = UIHelper.ShortButtonSize;
            btnPlaceDelete.Click  += btnPlaceDelete_Click;

            cmbEventType                       = new ComboBox();
            cmbEventType.ReadOnly              = true;
            cmbEventType.SelectedIndexChanged += EditEventType_SelectedIndexChanged;

            txtEventName = new TextBox();

            txtEventPlace          = new TextBox();
            txtEventPlace.KeyDown += EditEventPlace_KeyDown;

            cmbEventDateType                       = new ComboBox();
            cmbEventDateType.ReadOnly              = true;
            cmbEventDateType.SelectedIndexChanged += EditEventDateType_SelectedIndexChanged;

            txtEventDate1 = new GKDateBox();
            //txtEventDate1.AllowDrop = true;
            //txtEventDate1.DragDrop += new DragEventHandler(EditEventDate1_DragDrop);
            //txtEventDate1.DragOver += new DragEventHandler(EditEventDate1_DragOver);

            txtEventDate2 = new GKDateBox();
            //txtEventDate2.AllowDrop = true;
            //txtEventDate2.DragDrop += new DragEventHandler(EditEventDate1_DragDrop);
            //txtEventDate2.DragOver += new DragEventHandler(EditEventDate1_DragOver);

            txtEventCause = new TextBox();

            txtEventOrg = new TextBox();

            txtAttribute = new ComboBox();

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

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

            //

            var datesPanel = new TableLayout {
                Padding = new Padding(0),
                Spacing = new Size(10, 10),
                Rows    =
                {
                    new TableRow {
                        Cells =  { cmbEventDateType,txtEventDate1, txtEventDate2 }
                    },
                    new TableRow {
                        Cells =  { null,
                                   TableLayout.Horizontal(10, cmbDate1Calendar, btnBC1),
                                   TableLayout.Horizontal(10, cmbDate2Calendar, btnBC2) }
                    },
                }
            };

            pageCommon         = new TabPage();
            pageCommon.Text    = "pageCommon";
            pageCommon.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblEvent,     TableLayout.Horizontal(10, cmbEventType,                txtEventName)   }
                    },
                    new TableRow {
                        Cells =  { lblAttrValue, txtAttribute }
                    },
                    new TableRow {
                        Cells =  { lblPlace,     TableLayout.Horizontal(10, new TableCell(txtEventPlace, true), btnPlaceAdd, btnPlaceDelete)}
                    },
                    new TableRow {
                        Cells =  { lblDate,      datesPanel }
                    },
                    new TableRow {
                        Cells =  { lblCause,     txtEventCause }
                    },
                    new TableRow {
                        Cells =  { lblOrg,       txtEventOrg }
                    }
                }
            };

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            pageMultimedia      = new TabPage();
            pageMultimedia.Text = "pageMultimedia";

            pageSources      = new TabPage();
            pageSources.Text = "pageSources";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageCommon);
            tabsData.Pages.Add(pageNotes);
            tabsData.Pages.Add(pageMultimedia);
            tabsData.Pages.Add(pageSources);

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = UIHelper.LongButtonSize;
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = UIHelper.LongButtonSize;
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += btnCancel_Click;

            btnAddress        = new Button();
            btnAddress.Size   = UIHelper.LongButtonSize;
            btnAddress.Text   = "btnAddress";
            btnAddress.Click += btnAddress_Click;

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

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

            SetPredefProperties(496, 394);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

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

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

            txtHusband         = new TextBox();
            txtHusband.Enabled = false;

            txtWife         = new TextBox();
            txtWife.Enabled = false;

            btnHusbandAdd         = new Button();
            btnHusbandAdd.Enabled = false;
            btnHusbandAdd.Size    = new Size(26, 26);
            btnHusbandAdd.Click  += btnHusbandAddClick;
            btnHusbandAdd.Image   = Bitmap.FromResource("Resources.btn_rec_new.gif");

            btnHusbandDelete         = new Button();
            btnHusbandDelete.Enabled = false;
            btnHusbandDelete.Size    = new Size(26, 26);
            btnHusbandDelete.Click  += btnHusbandDeleteClick;
            btnHusbandDelete.Image   = Bitmap.FromResource("Resources.btn_rec_delete.gif");

            btnHusbandSel        = new Button();
            btnHusbandSel.Size   = new Size(26, 26);
            btnHusbandSel.Click += btnHusbandSelClick;
            btnHusbandSel.Image  = Bitmap.FromResource("Resources.btn_jump.gif");

            btnWifeSel        = new Button();
            btnWifeSel.Size   = new Size(26, 26);
            btnWifeSel.Click += btnWifeSelClick;
            btnWifeSel.Image  = Bitmap.FromResource("Resources.btn_jump.gif");

            btnWifeDelete         = new Button();
            btnWifeDelete.Enabled = false;
            btnWifeDelete.Size    = new Size(26, 26);
            btnWifeDelete.Click  += btnWifeDeleteClick;
            btnWifeDelete.Image   = Bitmap.FromResource("Resources.btn_rec_delete.gif");

            btnWifeAdd         = new Button();
            btnWifeAdd.Enabled = false;
            btnWifeAdd.Size    = new Size(26, 26);
            btnWifeAdd.Click  += btnWifeAddClick;
            btnWifeAdd.Image   = Bitmap.FromResource("Resources.btn_rec_new.gif");

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

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

            GroupBox1         = new GroupBox();
            GroupBox1.Text    = "GroupBox1";
            GroupBox1.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =
                        {
                            lblHusband,
                            TableLayout.Horizontal(10,new TableCell(txtHusband,  true), btnHusbandAdd, btnHusbandDelete, btnHusbandSel)
                        }
                    },
                    new TableRow {
                        Cells =
                        {
                            lblWife,
                            TableLayout.Horizontal(10,new TableCell(txtWife,  true), btnWifeAdd, btnWifeDelete, btnWifeSel)
                        }
                    },
                    new TableRow {
                        //ScaleHeight = true,
                        Cells =  { lblStatus,cmbMarriageStatus }
                    }
                }
            };

            //

            pageChilds      = new TabPage();
            pageChilds.Text = "pageChilds";

            pageEvents      = new TabPage();
            pageEvents.Text = "pageEvents";

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            pageMultimedia      = new TabPage();
            pageMultimedia.Text = "pageMultimedia";

            pageSources      = new TabPage();
            pageSources.Text = "pageSources";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageChilds);
            tabsData.Pages.Add(pageEvents);
            tabsData.Pages.Add(pageNotes);
            tabsData.Pages.Add(pageMultimedia);
            tabsData.Pages.Add(pageSources);
            tabsData.Size = new Size(600, 260);

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

            cmbRestriction          = new ComboBox();
            cmbRestriction.ReadOnly = true;
            //cmbRestriction.Size = new Size(203, 25);
            cmbRestriction.SelectedIndexChanged += cbRestriction_SelectedIndexChanged;

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = new Size(130, 26);
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;
            btnAccept.Image         = Bitmap.FromResource("Resources.btn_accept.gif");

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = new Size(130, 26);
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += btnCancel_Click;
            btnCancel.Image         = Bitmap.FromResource("Resources.btn_cancel.gif");

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

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

            SetPredefProperties(700, 540);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

            gkLogChart1                = new GKUI.Components.LogChart();
            gkLogChart1.Height         = 34;
            gkLogChart1.OnHintRequest += HintRequestEventHandler;

            tvGroups                   = new TreeView();
            tvGroups.LabelEdit         = false;
            tvGroups.MouseDoubleClick += tvGroups_DoubleClick;
            tvGroups.Size              = new Size(780, 350);

            btnAnalyseGroups        = new Button();
            btnAnalyseGroups.Size   = new Size(130, 26);
            btnAnalyseGroups.Text   = "btnSkip";
            btnAnalyseGroups.Click += btnAnalyseGroups_Click;

            pageFamilyGroups         = new TabPage();
            pageFamilyGroups.Text    = "pageFamilyGroups";
            pageFamilyGroups.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        ScaleHeight = true,
                        Cells       = { tvGroups }
                    },
                    new TableRow {
                        ScaleHeight = false,
                        Cells       = { TableLayout.Horizontal(10, btnAnalyseGroups, new TableCell(gkLogChart1, true)) }
                    }
                }
            };

            //

            tabsTools = new TabControl();
            tabsTools.Pages.Add(pageFamilyGroups);
            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();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

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

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

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

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

            txtName              = new TextBox();
            txtName.TextChanged += edName_TextChanged;

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

            cmbStoreType                       = new ComboBox();
            cmbStoreType.ReadOnly              = true;
            cmbStoreType.SelectedIndexChanged += cmbStoreType_SelectedIndexChanged;

            txtFile          = new TextBox();
            txtFile.ReadOnly = true;

            btnFileSelect = new Button();
            //btnFileSelect.Size = new Size(60, 26);
            btnFileSelect.Width  = 60;
            btnFileSelect.Text   = "...";
            btnFileSelect.Click += btnFileSelect_Click;

            pageCommon         = new TabPage();
            pageCommon.Text    = "pageCommon";
            pageCommon.Content = new DefTableLayout {
                Rows =
                {
                    new TableRow {
                        Cells =  { lblName,txtName }
                    },
                    new TableRow {
                        Cells =
                        {
                            lblFile,
                            TableLayout.Horizontal(10,new TableCell(txtFile,  true), btnFileSelect)
                        }
                    },
                    new TableRow {
                        Cells =
                        {
                            lblType,
                            TableLayout.Horizontal(10,cmbMediaType,  lblStoreType, cmbStoreType)
                        }
                    },
                    null
                }
            };

            pageNotes      = new TabPage();
            pageNotes.Text = "pageNotes";

            pageSources      = new TabPage();
            pageSources.Text = "pageSources";

            tabsData = new TabControl();
            tabsData.Pages.Add(pageCommon);
            tabsData.Pages.Add(pageNotes);
            tabsData.Pages.Add(pageSources);
            tabsData.Size = new Size(600, 260);

            //

            btnView        = new Button();
            btnView.Size   = new Size(130, 26);
            btnView.Text   = "btnView";
            btnView.Click += btnView_Click;

            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(btnView, null, btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(580, 460);
            ResumeLayout();
        }
        private void InitializeComponent()
        {
            SuspendLayout();

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

            txtPage = new TextBox();

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

            btnSourceAdd        = new Button();
            btnSourceAdd.Size   = new Size(26, 26);
            btnSourceAdd.Click += btnSourceAdd_Click;

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

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

            cmbSource          = new ComboBox();
            cmbSource.KeyDown += cbSource_KeyDown;
            cmbSource.KeyUp   += cbSource_KeyUp;
            cmbSource.Width    = 400;

            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;

            var panelData = new TableLayout {
                Spacing = new Size(10, 10),
                Rows    =
                {
                    new TableRow {
                        Cells =  { lblSource,TableLayout.Horizontal(10, new TableCell(cmbSource, true),        btnSourceAdd) }
                        //Cells = { lblSource, UIHelper.CreateRCS(new StackLayoutItem(cmbSource, true), btnSourceAdd) }
                    },
                    new TableRow {
                        Cells =  { lblPage,  TableLayout.Horizontal(10, txtPage,                 lblCertainty, txtCertainty) }
                    },
                    null
                }
            };

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

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

            SetPredefProperties(440, 250);
            ResumeLayout();
        }
Exemple #29
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();
        }
Exemple #30
0
        private void InitializeComponent()
        {
            SuspendLayout();

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

            txtSurname          = new TextBox();
            txtSurname.Size     = new Size(180, 22);
            txtSurname.KeyDown += edName_KeyDown;

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

            txtSurnamePrefix          = new TextBox();
            txtSurnamePrefix.Size     = new Size(180, 22);
            txtSurnamePrefix.KeyDown += edName_KeyDown;

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

            txtMarriedSurname          = new TextBox();
            txtMarriedSurname.Size     = new Size(180, 22);
            txtMarriedSurname.KeyDown += edName_KeyDown;

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

            txtNamePrefix          = new TextBox();
            txtNamePrefix.Size     = new Size(180, 22);
            txtNamePrefix.KeyDown += edName_KeyDown;

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

            txtName          = new TextBox();
            txtName.Size     = new Size(180, 22);
            txtName.KeyDown += edName_KeyDown;

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

            txtNameSuffix          = new TextBox();
            txtNameSuffix.Size     = new Size(180, 22);
            txtNameSuffix.KeyDown += edName_KeyDown;

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

            txtPatronymic          = new TextBox();
            txtPatronymic.Size     = new Size(180, 22);
            txtPatronymic.KeyDown += edName_KeyDown;

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

            txtNickname          = new TextBox();
            txtNickname.Size     = new Size(180, 22);
            txtNickname.KeyDown += edName_KeyDown;

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

            cmbNameType          = new ComboBox();
            cmbNameType.Size     = new Size(180, 22);
            cmbNameType.ReadOnly = true;

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

            cmbLanguage          = new ComboBox();
            cmbLanguage.Size     = new Size(180, 22);
            cmbLanguage.ReadOnly = true;

            btnAccept = new Button();
            btnAccept.ImagePosition = ButtonImagePosition.Left;
            btnAccept.Size          = UIHelper.LongButtonSize;
            btnAccept.Text          = "btnAccept";
            btnAccept.Click        += btnAccept_Click;

            btnCancel = new Button();
            btnCancel.ImagePosition = ButtonImagePosition.Left;
            btnCancel.Size          = UIHelper.LongButtonSize;
            btnCancel.Text          = "btnCancel";
            btnCancel.Click        += CancelClickHandler;

            var panel = new TableLayout {
                Padding = new Padding(0),
                Spacing = new Size(10, 10),
                Rows    =
                {
                    new TableRow {
                        Cells =  { new VSDefStackLayout(lblSurname,      txtSurname),
                                   new VSDefStackLayout(lblSurnamePrefix, txtSurnamePrefix) }
                    },
                    new TableRow {
                        Cells =  { new VSDefStackLayout(lblMarriedSurname, txtMarriedSurname),
                                   new VSDefStackLayout(lblNamePrefix,      txtNamePrefix) }
                    },
                    new TableRow {
                        Cells =  { new VSDefStackLayout(lblName,      txtName),
                                   new VSDefStackLayout(lblNameSuffix, txtNameSuffix) }
                    },
                    new TableRow {
                        Cells =  { new VSDefStackLayout(lblPatronymic, txtPatronymic),
                                   new VSDefStackLayout(lblNickname,    txtNickname) }
                    },
                    new TableRow {
                        Cells =  { new VSDefStackLayout(lblType,           cmbNameType),      null  }
                    },
                    new TableRow {
                        Cells =  { new VSDefStackLayout(lblLanguage,       cmbLanguage),      null  }
                    },
                    null
                }
            };

            Content = new DefTableLayout {
                Rows =
                {
                    panel,
                    UIHelper.MakeDialogFooter(null,btnAccept, btnCancel)
                }
            };

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

            SetPredefProperties(440, 360);
            ResumeLayout();
        }