コード例 #1
0
        private void InitializeContent( )
        {
            Label lblAzonosito = new iLabel("Azonosító:",
                                            new Point(16, 16 + 0 * 32),
                                            this);

            Label lblMegnevezes = new iLabel("Megnevezés:",
                                             new Point(lblAzonosito.Location.X, 16 + 1 * 32),
                                             this);

            Label lblDatum = new iLabel("Dátum:",
                                        new Point(lblAzonosito.Location.X, 16 + 2 * 32),
                                        this);

            Label lblVersenySorozat = new iLabel("Versenysorozat:",
                                                 new Point(lblAzonosito.Location.X, 16 + 3 * 32),
                                                 this);

            Label lblLovesek = new iLabel("Lövések száma:",
                                          new Point(lblAzonosito.Location.X, 16 + 4 * 32),
                                          this);

            Label lblAllomasok = new iLabel("Állomások száma:",
                                            new Point(lblAzonosito.Location.X, 16 + 5 * 32),
                                            this);

            Label lblDuplaBeirolap = new iLabel("Dupla beírólap:",
                                                new Point(lblAzonosito.Location.X, 16 + 6 * 32),
                                                this);

            txtAzonosito = new iTextBox(new Point(lblAzonosito.Location.X + lblAzonosito.Size.Width + 16 + 32, lblAzonosito.Location.Y),
                                        10,
                                        new Size(128 + 64, 24),
                                        null,
                                        this);

            txtMegnevezes = new iTextBox(new Point(txtAzonosito.Location.X, lblMegnevezes.Location.Y),
                                         30,
                                         new Size(128 + 64, 24),
                                         null,
                                         this);

            dátumválasztó          = new DateTimePicker( );
            dátumválasztó.Location = new Point(txtAzonosito.Location.X, lblDatum.Location.Y);
            dátumválasztó.Size     = txtAzonosito.Size;
            dátumválasztó.Value    = DateTime.Now;

            cboVersenySorozat = new iComboBox(new Point(txtAzonosito.Location.X, lblVersenySorozat.Location.Y),
                                              new Size(128 + 64, 24),
                                              null,
                                              this);

            cboVersenySorozat.Items.Add("");
            List <Versenysorozat> versenysorozatok = Program.database.Versenysorozatok( );

            foreach (Versenysorozat current in versenysorozatok)
            {
                cboVersenySorozat.Items.Add(current.azonosító);
            }

            txtLovesek = new iTextBox(new Point(txtAzonosito.Location.X, lblLovesek.Location.Y),
                                      null,
                                      new Size(128 + 64, 24),
                                      null,
                                      this);

            txtAllomasok = new iTextBox(new Point(txtAzonosito.Location.X, lblAllomasok.Location.Y),
                                        30,
                                        new Size(128 + 64, 24),
                                        null,
                                        this);

            chkDuplaBeirolap = new iCheckBox(null,
                                             new Point(txtAzonosito.Location.X, lblDuplaBeirolap.Location.Y),
                                             null,
                                             this);
            chkDuplaBeirolap.Size = txtAzonosito.Size;

            Button btnRendben = new iButton("Rendben",
                                            new Point(ClientRectangle.Width - 96 - 16, ClientRectangle.Height - 32 - 16),
                                            new Size(96, 32),
                                            btnRendben_Click,
                                            this);

            Controls.Add(dátumválasztó);
        }
コード例 #2
0
        InitializeContent()
        {
            Label lblAzonosito = new iLabel("Egyesület neve:", new Point(16, 16 + 0 * 32), this);

            Label lblCim = new iLabel("Egyesület címe:", new Point(16, 16 + 1 * 32), this);

            Label lblVezeto = new iLabel("Vezető:", new Point(16, 16 + 2 * 32), this);

            Label lblTelefon = new iLabel("Telefon:", new Point(16, 16 + 3 * 32), this);

            Label lblEmail = new iLabel("E-mail:", new Point(16, 16 + 5 * 32), this);

            Label lblListazando = new iLabel("Listázandó:", new Point(16, 16 + 7 * 32), this);

            txtAzonosito = new iTextBox(new Point(lblAzonosito.Location.X + lblAzonosito.Width + 32 + 16, lblAzonosito.Location.Y),
                                        30,
                                        new Size(128 + 2 * 64, 24),
                                        null,
                                        this);

            txtCim = new iTextBox(new Point(txtAzonosito.Location.X, lblCim.Location.Y),
                                  30,
                                  new Size(128 + 2 * 64, 24),
                                  null,
                                  this);

            txtVezeto = new iTextBox(new Point(txtAzonosito.Location.X, lblVezeto.Location.Y),
                                     30,
                                     new Size(128 + 2 * 64, 24),
                                     null,
                                     this);

            txtTelefon1 = new iTextBox(new Point(txtAzonosito.Location.X, lblTelefon.Location.Y),
                                       30,
                                       new Size(128 + 2 * 64, 24),
                                       null,
                                       this);

            txtTelefon2 = new iTextBox(new Point(txtAzonosito.Location.X, lblTelefon.Location.Y + 32),
                                       30,
                                       new Size(128 + 2 * 64, 24),
                                       null,
                                       this);

            txtEmail1 = new iTextBox(new Point(txtAzonosito.Location.X, lblEmail.Location.Y),
                                     30,
                                     new Size(128 + 2 * 64, 24),
                                     null,
                                     this);

            txtEmail2 = new iTextBox(new Point(txtAzonosito.Location.X, lblEmail.Location.Y + 32),
                                     30,
                                     new Size(128 + 2 * 64, 24),
                                     null,
                                     this);

            chkListazando = new iCheckBox("",
                                          new Point(txtAzonosito.Location.X, lblListazando.Location.Y),
                                          null,
                                          this);
            chkListazando.Checked = true;

            Button btnRendben = new iButton("Rendben",
                                            new Point(ClientRectangle.Width - 96 - 16, ClientRectangle.Height - 32 - 16),
                                            new Size(96, 32),
                                            btnRendben_Click,
                                            this);

            /*teszteléshez
             *
             * txtAzonosito.Text = "azonosito";
             * txtCim.Text = "cim";
             * txtVezeto.Text = "vezeto bela";
             * txtTelefon1.Text = "telo1sdafdadfs";
             * txtTelefon2.Text = "telo2";
             * txtEmail1.Text = "email1";
             * txtEmail2.Text = "email2";
             */
        }
コード例 #3
0
        private void InitializeContent( )
        {
            Label lblAzonosito = new iLabel("Azonosító:",
                                            new Point(16, 16 + 0 * 32),
                                            this);

            Label lblMegnevezes = new iLabel("Megnevezés:",
                                             new Point(lblAzonosito.Location.X, 16 + 1 * 32),
                                             this);

            Label lblAlso = new iLabel("Alsó életkorhatár:",
                                       new Point(lblAzonosito.Location.X, 16 + 2 * 32),
                                       this);

            Label lblFelso = new iLabel("Felső életkorhatár:",
                                        new Point(lblAzonosito.Location.X, 16 + 3 * 32),
                                        this);

            Label lblNok = new iLabel("Nők:",
                                      new Point(lblAzonosito.Location.X, 16 + 4 * 32),
                                      this);

            lblNok.Size = new Size(64, 24);

            Label lblFerfiak = new iLabel("Férfiak:",
                                          new Point(lblAzonosito.Location.X + 128, 16 + 4 * 32),
                                          this);

            lblFerfiak.Size = new Size(64, 24);

            Label lblEgyben = new iLabel("Egyben:",
                                         new Point(lblAzonosito.Location.X, 16 + 5 * 32),
                                         this);

            txtAzonosito = new iTextBox(new Point(lblAzonosito.Location.X + lblAzonosito.Width + 32 + 16, lblAzonosito.Location.Y),
                                        null,
                                        null,
                                        null,
                                        this);

            txtMegnevezes = new iTextBox(new Point(txtAzonosito.Location.X, lblMegnevezes.Location.Y),
                                         null,
                                         null,
                                         null,
                                         this);

            txtAlso = new iTextBox(new Point(txtAzonosito.Location.X, lblAlso.Location.Y),
                                   null,
                                   null,
                                   null,
                                   this);

            txtFelso = new iTextBox(new Point(txtAzonosito.Location.X, lblFelso.Location.Y),
                                    null,
                                    null,
                                    null,
                                    this);

            chkNok = new iCheckBox(null,
                                   new Point(lblNok.Location.X + lblNok.Size.Width + 16, lblNok.Location.Y),
                                   null,
                                   this);

            chkFerfiak = new iCheckBox(null,
                                       new Point(lblFerfiak.Location.X + lblFerfiak.Size.Width + 16, lblFerfiak.Location.Y),
                                       null,
                                       this);

            chkEgyben = new iCheckBox(null,
                                      new Point(txtAzonosito.Location.X, lblEgyben.Location.Y),
                                      null,
                                      this);

            ///

            Button btnRrendben = new iButton("Rendben",
                                             new Point(ClientRectangle.Width - 96 - 16, ClientRectangle.Height - 32 - 16),
                                             new Size(96, 32),
                                             btnRendben_Click,
                                             this);
        }
コード例 #4
0
        private void InitializeContent(string _Indulo, int _lastindex)
        {
            lastindex = _lastindex;

            Label lblNev = new iLabel(
                "Név:",
                new Point(32, 16 + 0 * 32),
                this
                );

            Label lblVerseny = new iLabel(
                "Verseny:",
                new Point(lblNev.Location.X, 16 + 1 * 32),
                this
                );

            Label lblIjtipus = new iLabel(
                "Íjtípus:",
                new Point(lblNev.Location.X, 16 + 2 * 32),
                this
                );

            Label lblCsapat = new iLabel(
                "Csapatszám:",
                new Point(lblNev.Location.X, 16 + 3 * 32),
                this
                );

            Label lblMegjelent = new iLabel(
                "Megjelent:",
                new Point(lblNev.Location.X, 16 + 4 * 32),
                this
                );

            Label lblKorosztalyFeluliras = new iLabel(
                "Korosztály felülírása:",
                new Point(lblNev.Location.X, 16 + 5 * 32),
                this
                );

            Label lblKorosztalyAzonosito = new iLabel(
                "Új Korosztály azonosítója:",
                new Point(lblNev.Location.X, 16 + 6 * 32),
                this
                );

            lblIndulo = new iLabel(
                _Indulo,
                new Point(lblNev.Location.X + lblNev.Size.Width + 16 + 3 * 32, lblNev.Location.Y),
                this
                );
            lblIndulo.AutoSize = false;
            lblIndulo.Size     = new Size(128 + 64, 24);

            cboVerseny = new iComboBox(
                new Point(lblIndulo.Location.X, lblVerseny.Location.Y),
                lblIndulo.Size,
                cboVerseny_SelectedIndexChanged,
                this
                );

            List <Verseny> versenyek = Program.database.Versenyek( );

            foreach (Verseny current in versenyek)
            {
                cboVerseny.Items.Add(current.Azonosito);
            }

            cboIjtipus = new iComboBox(
                new Point(lblIndulo.Location.X, lblIjtipus.Location.Y),
                lblIndulo.Size,
                null,
                this
                );

            List <Íjtípus> ijtipusok = Program.database.Íjtípusok( );

            foreach (Íjtípus current in ijtipusok)
            {
                cboIjtipus.Items.Add(current.Azonosito);
            }

            cboCsapat = new iComboBox(
                new Point(lblIndulo.Location.X, lblCsapat.Location.Y),
                lblIndulo.Size,
                null,
                this
                );

            for (int i = 0; i < 45; i++)
            {
                cboCsapat.Items.Add(i + 1);
            }
            cboCsapat.SelectedItem = cboCsapat.Items[0];

            chkMegjelent = new iCheckBox(
                "",
                new Point(lblIndulo.Location.X, lblMegjelent.Location.Y),
                null,
                this
                );

            chkKorosztalyFeluliras = new iCheckBox(
                null,
                new Point(lblIndulo.Location.X, lblKorosztalyFeluliras.Location.Y),
                chkKorosztalyFeluliras_Click,
                this
                );

            cboKorosztaly = new iComboBox(
                new Point(lblIndulo.Location.X, lblKorosztalyAzonosito.Location.Y),
                lblIndulo.Size,
                null,
                this
                );
            cboKorosztaly.Enabled = false;

            Button btnRendben = new iButton(
                "Rendben",
                new Point(ClientRectangle.Width - 96 - 16, ClientRectangle.Height - 32 - 16),
                new Size(96, 32),
                btnRendben_Click,
                this
                );

            Button btnCsapatok = new iButton(
                "Csapatok megtekintése",
                new Point(ClientRectangle.Width - 96 - btnRendben.Width - 32, ClientRectangle.Height - 32 - 16),
                new Size(96, 32),
                btnCsapatok_Click,
                this
                );
        }
コード例 #5
0
        InitializeContent()
        {
            int cWidth  = ClientRectangle.Width;
            int cHeight = ClientRectangle.Height;

            Button btnNyomtat = new iButton("Nyomtat",
                                            new Point(cWidth - 96 - 150, cHeight - 32 - 16),
                                            new Size(96, 32),
                                            btnNyomtat_Click,
                                            this);

            lblVersenysorozatAzonosito = new iLabel("Versenysorozat azonosító:",
                                                    new Point(cWidth - 96 - 52 * 16, cHeight - 32 - 36 * 16),
                                                    this);

            lblVersenyAzonosito = new iLabel("Verseny azonosító:",
                                             new Point(cWidth - 96 - 52 * 16, cHeight - 32 - 33 * 16),
                                             this);

            lblVersenyNyomtat = new iLabel("Versenyt nyomtat:",
                                           new Point(cWidth - 96 - 52 * 16, cHeight - 32 - 41 * 16),
                                           this);

            lblVersenysorozatNyomtat = new iLabel("Versenysorozatot nyomtat:",
                                                  new Point(cWidth - 96 - 52 * 16, cHeight - 32 - 39 * 16),
                                                  this);

            Label lblEredmeny = new iLabel("Eredménylap típus:",
                                           new Point(cWidth - 96 - 52 * 16, cHeight - 32 - 30 * 16),
                                           this);

            cboVersenyAzonosito = new iComboBox(new Point(cWidth - 96 - 42 * 16, cHeight - 32 - 33 * 16),
                                                new Size(128, 24),
                                                cboVersenyek_SelectedIndexChanged,
                                                this);

            List <Verseny> versenyek = Program.database.Versenyek();

            foreach (Verseny current in versenyek)
            {
                cboVersenyAzonosito.Items.Add(current.Azonosito);
            }
            if (cboVersenyAzonosito.Items.Count != 0)
            {
                cboVersenyAzonosito.SelectedIndex = 0;
            }

            cboVersenysorozatAzonosito = new iComboBox(new Point(cWidth - 96 - 42 * 16, cHeight - 32 - 36 * 16),
                                                       new Size(128, 24),
                                                       cboVersenysorozatAzonosito_SelectedIndexChanged,
                                                       this);

            List <Versenysorozat> versenysorozatok = Program.database.Versenysorozatok();

            foreach (Versenysorozat current in versenysorozatok)
            {
                cboVersenysorozatAzonosito.Items.Add(current.azonosító);
            }
            if (cboVersenysorozatAzonosito.Items.Count != 0)
            {
                cboVersenysorozatAzonosito.SelectedIndex = 0;
            }

            lblVersenyMegnevezes = new iLabel("Verseny megnevezés: ",
                                              new Point(cWidth - 96 - 32 * 16, cHeight - 32 - 33 * 16),
                                              this);

            lblVersenyMegnevezes2 = new iLabel("",
                                               new Point(lblVersenyMegnevezes.Location.X + lblVersenyMegnevezes.Width + 18, lblVersenyMegnevezes.Location.Y),
                                               this);
            lblVersenyMegnevezes2.Font = new Font(lblVersenyMegnevezes2.Font, FontStyle.Underline);

            lblVersenysorozatMegnevezes = new iLabel("Versenysorozat megnevezés: ",
                                                     new Point(cWidth - 96 - 32 * 16, cHeight - 32 - 36 * 16),
                                                     this);

            lblVersenysorozatMegnevezes2 = new iLabel("",
                                                      new Point(lblVersenysorozatMegnevezes.Location.X + lblVersenysorozatMegnevezes.Width + 56, lblVersenysorozatMegnevezes.Location.Y),
                                                      this);

            chkTeljes = new iCheckBox("Teljes",
                                      new Point(cWidth - 96 - 45 * 16, cHeight - 32 - 30 * 16 - 8),
                                      Eredmenylap_Click,
                                      this);

            chkMisz = new iCheckBox("MÍSZ",
                                    new Point(cWidth - 96 - 41 * 16, cHeight - 32 - 30 * 16 - 8),
                                    Eredmenylap_Click,
                                    this);

            chkEgyesulet = new iCheckBox("Egyesület",
                                         new Point(cWidth - 96 - 36 * 16, cHeight - 32 - 30 * 16 - 8),
                                         Eredmenylap_Click,
                                         this);

            chkReszletes = new iCheckBox("Részletes",
                                         new Point(cWidth - 96 - 31 * 16, cHeight - 32 - 30 * 16 - 8),
                                         Eredmenylap_Click,
                                         this);

            chkVerseny = new iCheckBox("",
                                       new Point(cWidth - 96 - 48 * 16, cHeight - 32 - 41 * 16 - 12),
                                       Versenysorozat_Click,
                                       this);

            chkVersenysorozat = new iCheckBox("",
                                              new Point(cWidth - 96 - 48 * 16, cHeight - 32 - 39 * 16 - 12),
                                              Versenysorozat_Click,
                                              this);

            foreach (Verseny current in versenyek)
            {
                if (cboVersenyAzonosito.Text == current.Azonosito)
                {
                    lblVersenyMegnevezes2.Text = current.Megnevezes;
                }
            }

            foreach (Versenysorozat current in versenysorozatok)
            {
                if (cboVersenysorozatAzonosito.Text == current.azonosító)
                {
                    lblVersenysorozatMegnevezes2.Text = current.megnevezés;
                }
            }
        }