private void button1_Click(object sender, EventArgs e) { Form dlgLogin = new Form(); dlgLogin.Height = 210; dlgLogin.Width = 292; //dlgLogin.AutoScaleMode = ; #region layout TextBox textBox1 = new System.Windows.Forms.TextBox(); TextBox textBox2 = new System.Windows.Forms.TextBox(); Label label1 = new System.Windows.Forms.Label(); Label label2 = new System.Windows.Forms.Label(); Button button1 = new System.Windows.Forms.Button(); Button button2 = new System.Windows.Forms.Button(); textBox1.Location = new System.Drawing.Point(140, 30); textBox1.Name = "tbxName"; textBox1.Size = new System.Drawing.Size(118, 22); //tbxName.TabIndex = 0; label1.AutoSize = true; label1.Location = new System.Drawing.Point(10, 32); label1.Name = "label1"; label1.Size = new System.Drawing.Size(130, 17); //label1.TabIndex = 2; label1.Text = "Nazwa użytkownika"; textBox2.Location = new System.Drawing.Point(140, 70); textBox2.Name = "tbxPassword"; textBox2.Size = new System.Drawing.Size(118, 22); textBox2.UseSystemPasswordChar = true; label2.AutoSize = true; label2.Location = new System.Drawing.Point(93, 72); label2.Name = "label2"; label2.Size = new System.Drawing.Size(44, 17); //label2.TabIndex = 3; label2.Text = "Hasło"; button1.Location = new System.Drawing.Point(21, 120); button1.Name = "button1"; button1.Size = new System.Drawing.Size(104, 32); //button1.TabIndex = 4; button1.Text = "Zaloguj"; button1.UseVisualStyleBackColor = true; button1.Click += new System.EventHandler(BtnZaloguj); button2.Location = new System.Drawing.Point(154, 120); button2.Name = "button2"; button2.Size = new System.Drawing.Size(104, 32); //button2.TabIndex = 7; button2.Text = "Anuluj"; button2.UseVisualStyleBackColor = true; button2.Click += new System.EventHandler(BtnCancel); dlgLogin.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; dlgLogin.Controls.Add(textBox1); dlgLogin.Controls.Add(textBox2); dlgLogin.Controls.Add(label1); dlgLogin.Controls.Add(label2); dlgLogin.Controls.Add(button1); dlgLogin.Controls.Add(button2); #endregion void BtnZaloguj(object sender2, EventArgs e2) { Sluchacz login = new Sluchacz(textBox1.Text, textBox2.Text); if (_ds.Sluchacze.Contains(login)) { Sluchacz uzytkownik = _ds.Sluchacze.Find(x => x.Login.Contains(login.Login)); dlgLogin.DialogResult = DialogResult.OK; dlgLogin.Dispose(); this.Hide(); var mainMenu = new MainMenu(_ds, uzytkownik); mainMenu.Closed += (s, args) => this.Show(); mainMenu.Show(); } else { string message = "Nieprawidłowe dane logowania"; string caption = ""; MessageBoxButtons buttons = MessageBoxButtons.OK; DialogResult result; result = MessageBox.Show(message, caption, buttons); } } void BtnCancel(object sender2, EventArgs e2) { dlgLogin.Close(); } dlgLogin.ShowDialog(); }
private void button3_Click(object sender, EventArgs e) { string message = "Z uwagi na fakt, że tworzenie całego systemu pod kątem oceny nie przyniosłoby rezultatów (wszystkie funkcje kluczowe z punktu widzenia wymogów projektu zostały już zaimplementowane), twórcy postanowili pozostawić sobie zadanie zaprojektowania działania tego formularza do dalszej, samodzielnej już zabawy z .NET. To, co zostało zaprezentowane tutaj jest wyłącznie wizualną prezentacją potencjalnych funkcji SOKu."; string caption = "To wciąż wersja Alpha :("; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message, caption, buttons2); Form twojeWydarzenia = new Form(); twojeWydarzenia.Height = 356; twojeWydarzenia.Width = 577; Adres adresik = new Adres("Sienkiewicza", "Krakow", "22-600", "123", "13"); MiejsceKonferencji miejsce = new MiejsceKonferencji(adresik.ulica, adresik.miejscowosc, adresik.kodPocztowy, adresik.numerBudynku, adresik.numerLokalu, 112, 100); Organizator o = new Organizator("pirateska", "martynka"); Sluchacz s = new Sluchacz("kasia", "basia", "kasia", "kasia1", "kobieta", "14.10.9999", "696454787", "*****@*****.**"); Prelegent p = new Prelegent("karol", "karol"); ListaUczestnikówKonferencji Lp = new ListaUczestnikówKonferencji(); Lp.DodajObiekt(s); ListaPrelegentówKonferencji LLP = new ListaPrelegentówKonferencji(); LLP.DodajObiekt(p); Referat r = new Referat("kas", "bla,bla", p); PlanKonferencji plan = new PlanKonferencji(); plan.DodajReferat(r); Konferencja GonKon = new Konferencja("jutrobedziedeszcz", "12.13.1333", o, miejsce); GonKon.Uczestnicy = Lp; GonKon.Prelegenci = LLP; GonKon.Plan = plan; ListaKonferencji listaKon = new ListaKonferencji(); listaKon.DodajObiekt(GonKon); #region layout Label label1 = new System.Windows.Forms.Label(); ListBox listBox1 = new System.Windows.Forms.ListBox(); Button button2 = new System.Windows.Forms.Button(); Button button3 = new System.Windows.Forms.Button(); SuspendLayout(); // // label1 // label1.AutoSize = true; label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label1.Location = new System.Drawing.Point(25, 30); label1.Name = "label1"; label1.Size = new System.Drawing.Size(208, 29); label1.TabIndex = 1; label1.Text = "Twoje wydarzenia"; // // listBox1 // listBox1.FormattingEnabled = true; listBox1.ItemHeight = 16; listBox1.Location = new System.Drawing.Point(30, 62); listBox1.Name = "listBox1"; listBox1.Size = new System.Drawing.Size(577, 356); listBox1.TabIndex = 2; listBox1.Items.Add(listaKon.ToString()); listBox1.SelectionMode = SelectionMode.One; // // button2 // button2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); button2.Location = new System.Drawing.Point(484, 433); button2.Name = "button2"; button2.Size = new System.Drawing.Size(125, 48); button2.TabIndex = 4; button2.Text = "Opuść"; button2.UseVisualStyleBackColor = true; // // button3 // button3.Location = new System.Drawing.Point(360, 433); button3.Name = "button3"; button3.Size = new System.Drawing.Size(118, 48); button3.TabIndex = 5; button3.Text = "Szczegóły"; button3.UseVisualStyleBackColor = true; button3.Click += new System.EventHandler(szczegoly_Click); // // TwojeWydarzeniaUczestnik // twojeWydarzenia.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); twojeWydarzenia.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; twojeWydarzenia.ClientSize = new System.Drawing.Size(623, 492); twojeWydarzenia.Controls.Add(button3); twojeWydarzenia.Controls.Add(button2); twojeWydarzenia.Controls.Add(listBox1); twojeWydarzenia.Controls.Add(label1); twojeWydarzenia.Name = "TwojeWydarzeniaUczestnik"; twojeWydarzenia.Text = "TwojeWydarzeniaUczestnik"; twojeWydarzenia.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; twojeWydarzenia.ResumeLayout(false); twojeWydarzenia.PerformLayout(); twojeWydarzenia.ShowDialog(); #endregion void szczegoly_Click(object sender3, EventArgs e3) { foreach (Object obj in listBox1.SelectedItems) { Form szczegolyKonf = new Form(); szczegolyKonf.Height = 553; szczegolyKonf.Width = 713; #region layout Label labelM = new System.Windows.Forms.Label(); Label labelN = new System.Windows.Forms.Label(); Label labelO = new System.Windows.Forms.Label(); Label labelP = new System.Windows.Forms.Label(); Label labelX = new System.Windows.Forms.Label(); Label labelY = new System.Windows.Forms.Label(); ListView listView1 = new System.Windows.Forms.ListView(); ColumnHeader ColumnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader ColumnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader ColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); Label labelU = new System.Windows.Forms.Label(); Label labelJ = new System.Windows.Forms.Label(); Label labelG = new System.Windows.Forms.Label(); Label labelM0 = new System.Windows.Forms.Label(); Label labelM1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // labelM // labelM.Anchor = System.Windows.Forms.AnchorStyles.None; labelM.AutoSize = true; labelM.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM.Location = new System.Drawing.Point(43, 43); labelM.Name = "labelM"; labelM.Size = new System.Drawing.Size(73, 25); labelM.TabIndex = 0; labelM.Text = "Temat"; // // labelN // labelN.Anchor = System.Windows.Forms.AnchorStyles.None; labelN.AutoSize = true; labelN.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelN.Location = new System.Drawing.Point(43, 88); labelN.Name = "labelN"; labelN.Size = new System.Drawing.Size(125, 25); labelN.TabIndex = 1; labelN.Text = "Organizator"; //labelN.Click += new System.EventHandler(labelN_Click); // // labelO // labelO.Anchor = System.Windows.Forms.AnchorStyles.None; labelO.AutoSize = true; labelO.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelO.Location = new System.Drawing.Point(43, 132); labelO.Name = "labelO"; labelO.Size = new System.Drawing.Size(57, 25); labelO.TabIndex = 2; labelO.Text = "Data"; // // labelP // labelP.Anchor = System.Windows.Forms.AnchorStyles.None; labelP.AutoSize = true; labelP.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelP.Location = new System.Drawing.Point(43, 178); labelP.Name = "labelP"; labelP.Size = new System.Drawing.Size(86, 25); labelP.TabIndex = 3; labelP.Text = "Miejsce"; // // labelX // labelX.Anchor = System.Windows.Forms.AnchorStyles.None; labelX.AutoSize = true; labelX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelX.Location = new System.Drawing.Point(43, 224); labelX.Name = "labelX"; labelX.Size = new System.Drawing.Size(226, 25); labelX.TabIndex = 4; labelX.Text = "Liczba wolnych miejsc"; // // labelY // labelY.Anchor = System.Windows.Forms.AnchorStyles.None; labelY.AutoSize = true; labelY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelY.Location = new System.Drawing.Point(43, 271); labelY.Name = "labelY"; labelY.Size = new System.Drawing.Size(170, 25); labelY.TabIndex = 5; labelY.Text = "Plan Konferencji"; // // listView1 // listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { ColumnHeader2, ColumnHeader1, ColumnHeader }); listView1.GridLines = true; listView1.HideSelection = false; listView1.Location = new System.Drawing.Point(48, 299); listView1.Name = "listView1"; listView1.Size = new System.Drawing.Size(618, 177); listView1.TabIndex = 6; listView1.UseCompatibleStateImageBehavior = false; listView1.View = System.Windows.Forms.View.Details; // // ColumnHeader2 // ColumnHeader2.Text = "Nr"; ColumnHeader2.Width = 30; // // ColumnHeader1 // ColumnHeader1.Text = "TematReferatu"; ColumnHeader1.Width = 400; // // ColumnHeader // ColumnHeader.Text = "Autor"; ColumnHeader.Width = 200; // // labelU // labelU.Anchor = System.Windows.Forms.AnchorStyles.None; labelU.AutoSize = true; labelU.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelU.Location = new System.Drawing.Point(267, 224); labelU.Name = "labelU"; labelU.Size = new System.Drawing.Size(23, 25); labelU.TabIndex = 9; labelU.Text = " _ "; // // labelJ // labelJ.Anchor = System.Windows.Forms.AnchorStyles.None; labelJ.AutoSize = true; labelJ.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelJ.Location = new System.Drawing.Point(134, 178); labelJ.Name = "labelJ"; labelJ.Size = new System.Drawing.Size(23, 25); labelJ.TabIndex = 10; labelJ.Text = "_"; // // labelG // labelG.Anchor = System.Windows.Forms.AnchorStyles.None; labelG.AutoSize = true; labelG.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelG.Location = new System.Drawing.Point(112, 132); labelG.Name = "labelG"; labelG.Size = new System.Drawing.Size(23, 25); labelG.TabIndex = 11; labelG.Text = "_"; // // labelM0 // labelM0.Anchor = System.Windows.Forms.AnchorStyles.None; labelM0.AutoSize = true; labelM0.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM0.Location = new System.Drawing.Point(174, 88); labelM0.Name = "labelM0"; labelM0.Size = new System.Drawing.Size(23, 25); labelM0.TabIndex = 12; labelM0.Text = "_"; // // labelM1 // labelM1.Anchor = System.Windows.Forms.AnchorStyles.None; labelM1.AutoSize = true; labelM1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM1.Location = new System.Drawing.Point(134, 43); labelM1.Name = "labelM1"; labelM1.Size = new System.Drawing.Size(23, 25); labelM1.TabIndex = 13; labelM1.Text = "_"; // // KonferencjaSzczegoly // szczegolyKonf.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; szczegolyKonf.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); szczegolyKonf.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; szczegolyKonf.ClientSize = new System.Drawing.Size(695, 506); szczegolyKonf.Controls.Add(labelM1); szczegolyKonf.Controls.Add(labelM0); szczegolyKonf.Controls.Add(labelG); szczegolyKonf.Controls.Add(labelJ); szczegolyKonf.Controls.Add(labelU); szczegolyKonf.Controls.Add(listView1); szczegolyKonf.Controls.Add(labelY); szczegolyKonf.Controls.Add(labelX); szczegolyKonf.Controls.Add(labelP); szczegolyKonf.Controls.Add(labelO); szczegolyKonf.Controls.Add(labelN); szczegolyKonf.Controls.Add(labelM); szczegolyKonf.Name = "KonferencjaSzczegoly"; szczegolyKonf.Text = "KonferencjaSzczegoly"; szczegolyKonf.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; // szczegolyKonf.Load += new System.EventHandler(thiKonferencjaSzczegoly_Load); szczegolyKonf.ResumeLayout(false); szczegolyKonf.PerformLayout(); szczegolyKonf.ShowDialog(); #endregion } } }
private void button2_Click(object sender, EventArgs e) { Form dlgRegister = new Form(); dlgRegister.Height = 448; dlgRegister.Width = 373; #region layout Label label1 = new System.Windows.Forms.Label(); Label label2 = new System.Windows.Forms.Label(); Label label3 = new System.Windows.Forms.Label(); Label label4 = new System.Windows.Forms.Label(); Label label5 = new System.Windows.Forms.Label(); Label label6 = new System.Windows.Forms.Label(); Label label7 = new System.Windows.Forms.Label(); Label label8 = new System.Windows.Forms.Label(); Label label9 = new System.Windows.Forms.Label(); Label label10 = new System.Windows.Forms.Label(); TextBox tbxName = new System.Windows.Forms.TextBox(); TextBox tbxSurname = new System.Windows.Forms.TextBox(); TextBox tbxEMail = new System.Windows.Forms.TextBox(); DateTimePicker pckBirthDate = new System.Windows.Forms.DateTimePicker(); ComboBox cbxSex = new System.Windows.Forms.ComboBox(); TextBox tbxLogin = new System.Windows.Forms.TextBox(); TextBox tbxPassword = new System.Windows.Forms.TextBox(); TextBox tbxPhoneNumber = new System.Windows.Forms.TextBox(); Button button1 = new System.Windows.Forms.Button(); Button button2 = new System.Windows.Forms.Button(); // // label1 // label1.AutoSize = true; label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 13.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label1.Location = new System.Drawing.Point(40, 28); label1.Name = "label1"; label1.Size = new System.Drawing.Size(276, 29); label1.TabIndex = 0; label1.Text = "Wprowadź swoje dane"; // // tbxName // tbxName.Location = new System.Drawing.Point(45, 92); tbxName.MaxLength = 20; tbxName.Name = "imie"; tbxName.Size = new System.Drawing.Size(120, 22); tbxName.TabIndex = 1; // // tbxSurname // tbxSurname.Location = new System.Drawing.Point(196, 92); tbxSurname.MaxLength = 25; tbxSurname.Name = "nazwisko"; tbxSurname.Size = new System.Drawing.Size(120, 22); tbxSurname.TabIndex = 2; // // tbxEMail // tbxEMail.Location = new System.Drawing.Point(45, 151); tbxEMail.MaxLength = 100; tbxEMail.Name = "email"; tbxEMail.Size = new System.Drawing.Size(152, 22); tbxEMail.TabIndex = 3; // // pckBirthDate // pckBirthDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; pckBirthDate.Location = new System.Drawing.Point(45, 211); pckBirthDate.Name = "pckBirthDate"; pckBirthDate.Size = new System.Drawing.Size(185, 22); pckBirthDate.TabIndex = 5; // // cbxSex // cbxSex.FormattingEnabled = true; cbxSex.Items.AddRange(new object[] { "K", "M" }); cbxSex.Location = new System.Drawing.Point(273, 211); cbxSex.Name = "cbxSex"; cbxSex.Size = new System.Drawing.Size(43, 24); cbxSex.TabIndex = 6; // // tbxLogin // tbxLogin.Location = new System.Drawing.Point(45, 271); tbxLogin.MaxLength = 20; tbxLogin.Name = "login"; tbxLogin.Size = new System.Drawing.Size(120, 22); tbxLogin.TabIndex = 7; // // tbxPassword // tbxPassword.Location = new System.Drawing.Point(196, 271); tbxPassword.MaxLength = 20; tbxPassword.Name = "haslo"; tbxPassword.Size = new System.Drawing.Size(120, 22); tbxPassword.TabIndex = 8; tbxPassword.UseSystemPasswordChar = true; // // tbxPhoneNumber // tbxPhoneNumber.Location = new System.Drawing.Point(235, 151); tbxPhoneNumber.MaxLength = 9; tbxPhoneNumber.Name = "NrTelefonu"; tbxPhoneNumber.Size = new System.Drawing.Size(81, 22); tbxPhoneNumber.TabIndex = 4; tbxPhoneNumber.WordWrap = false; // // label2 // label2.AutoSize = true; label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label2.Location = new System.Drawing.Point(52, 76); label2.Name = "label2"; label2.Size = new System.Drawing.Size(26, 13); label2.TabIndex = 9; label2.Text = "Imię"; // // label3 // label3.AutoSize = true; label3.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label3.Location = new System.Drawing.Point(204, 76); label3.Name = "label3"; label3.Size = new System.Drawing.Size(51, 13); label3.TabIndex = 10; label3.Text = "Nazwisko"; // // label4 // label4.AutoSize = true; label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label4.Location = new System.Drawing.Point(52, 135); label4.Name = "label4"; label4.Size = new System.Drawing.Size(64, 13); label4.TabIndex = 11; label4.Text = "Adres e-mail"; // // label5 // label5.AutoSize = true; label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label5.Location = new System.Drawing.Point(217, 135); label5.Name = "label5"; label5.Size = new System.Drawing.Size(58, 13); label5.TabIndex = 12; label5.Text = "Nr telefonu"; // // label6 // label6.AutoSize = true; label6.BackColor = System.Drawing.Color.Transparent; label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label6.Location = new System.Drawing.Point(203, 154); label6.Name = "label6"; label6.Size = new System.Drawing.Size(32, 17); label6.TabIndex = 13; label6.Text = "+48"; // // label7 // label7.AutoSize = true; label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label7.Location = new System.Drawing.Point(279, 195); label7.Name = "label7"; label7.Size = new System.Drawing.Size(27, 13); label7.TabIndex = 14; label7.Text = "Płeć"; // // label8 // label8.AutoSize = true; label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label8.Location = new System.Drawing.Point(52, 195); label8.Name = "label8"; label8.Size = new System.Drawing.Size(79, 13); label8.TabIndex = 15; label8.Text = "Data urodzenia"; // // label9 // label9.AutoSize = true; label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label9.Location = new System.Drawing.Point(52, 255); label9.Name = "label9"; label9.Size = new System.Drawing.Size(99, 13); label9.TabIndex = 16; label9.Text = "Nazwa użytkownika"; // // label10 // label10.AutoSize = true; label10.Font = new System.Drawing.Font("Microsoft Sans Serif", 6F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); label10.Location = new System.Drawing.Point(204, 255); label10.Name = "label10"; label10.Size = new System.Drawing.Size(33, 13); label10.TabIndex = 17; label10.Text = "Hasło"; // // button1 // button1.Location = new System.Drawing.Point(45, 333); button1.Name = "button1"; button1.Size = new System.Drawing.Size(120, 38); button1.TabIndex = 18; button1.Text = "Zarejestruj"; button1.UseVisualStyleBackColor = true; button1.Click += new System.EventHandler(BtnRegister); // // button2 // button2.Location = new System.Drawing.Point(196, 333); button2.Name = "button2"; button2.Size = new System.Drawing.Size(120, 38); button2.TabIndex = 19; button2.Text = "Anuluj"; button2.UseVisualStyleBackColor = true; button2.Click += new System.EventHandler(BtnCancel); // // // dlgRegister.AutoScaleDimensions = new System.Drawing.SizeF(120F, 120F); dlgRegister.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; dlgRegister.ClientSize = new System.Drawing.Size(355, 401); dlgRegister.Controls.Add(button2); dlgRegister.Controls.Add(button1); dlgRegister.Controls.Add(label10); dlgRegister.Controls.Add(label9); dlgRegister.Controls.Add(label8); dlgRegister.Controls.Add(label7); dlgRegister.Controls.Add(label6); dlgRegister.Controls.Add(label5); dlgRegister.Controls.Add(label4); dlgRegister.Controls.Add(label3); dlgRegister.Controls.Add(label2); dlgRegister.Controls.Add(tbxPhoneNumber); dlgRegister.Controls.Add(tbxPassword); dlgRegister.Controls.Add(tbxLogin); dlgRegister.Controls.Add(cbxSex); dlgRegister.Controls.Add(pckBirthDate); dlgRegister.Controls.Add(tbxEMail); dlgRegister.Controls.Add(tbxSurname); dlgRegister.Controls.Add(tbxName); dlgRegister.Controls.Add(label1); dlgRegister.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; dlgRegister.Name = "Rejestracja"; dlgRegister.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; dlgRegister.Text = "Rejestracja"; dlgRegister.ResumeLayout(false); dlgRegister.PerformLayout(); #endregion void BtnRegister(object sender2, EventArgs e2) { int atCount = 0; int dotCount = 0; Sluchacz user = new Sluchacz(); Sluchacz potentialUser = new Sluchacz(tbxLogin.Text, tbxPassword.Text); foreach (char character in tbxEMail.Text) { if (character.Equals('@')) { atCount++; } if (character.Equals('.')) { dotCount++; } } if (String.IsNullOrWhiteSpace(tbxLogin.Text) || String.IsNullOrWhiteSpace(tbxName.Text) || String.IsNullOrWhiteSpace(tbxSurname.Text) || String.IsNullOrWhiteSpace(tbxPassword.Text) || String.IsNullOrWhiteSpace(tbxPhoneNumber.Text) || String.IsNullOrWhiteSpace(tbxEMail.Text) || String.IsNullOrWhiteSpace(cbxSex.Text) || String.IsNullOrWhiteSpace(pckBirthDate.Text)) { string message2 = "Nie wszystkie pola zostały wypełnione."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else if (_ds.Sluchacze.Contains(potentialUser)) { string message2 = "Nazwa użytkownika jest już zajęta."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else if (!tbxPhoneNumber.Text.All(char.IsDigit) || (tbxPhoneNumber.Text.Length < 9)) { string message2 = "Czyż nie jest powszechną wiedzą, że numer telefonu w Polsce składa się z dziewięciu cyfr?"; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else if (atCount != 1 || dotCount == 0 || tbxEMail.Text.EndsWith(".") || tbxEMail.Text.EndsWith("@")) { string message2 = "Niepoprawny email."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else if ((pckBirthDate.Value.Year + 13) > DateTime.Today.Year && pckBirthDate.Value.Year < DateTime.Today.Year) { string message2 = "Aby założyć konto musisz mieć więcej niż 13 lat."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else if ((pckBirthDate.Value.Year + 13) == DateTime.Today.Year) { if ((pckBirthDate.Value.Month) >= DateTime.Today.Month) { if ((pckBirthDate.Value.Day) > DateTime.Today.Day) { string message2 = "Aby założyć konto musisz mieć więcej niż 13 lat."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else { user = new Sluchacz(tbxLogin.Text, tbxPassword.Text, tbxName.Text, tbxSurname.Text, cbxSex.Text, pckBirthDate.Value.ToShortDateString(), tbxPhoneNumber.Text, tbxEMail.Text); _ds.Sluchacze.Add(user); _ds.DataStore_save(_ds); string message = "Zostałeś zarejestrowany!"; string caption = ""; MessageBoxButtons buttons = MessageBoxButtons.OK; DialogResult result; result = MessageBox.Show(message, caption, buttons); dlgRegister.Close(); } } else { user = new Sluchacz(tbxLogin.Text, tbxPassword.Text, tbxName.Text, tbxSurname.Text, cbxSex.Text, pckBirthDate.Value.ToShortDateString(), tbxPhoneNumber.Text, tbxEMail.Text); _ds.Sluchacze.Add(user); _ds.DataStore_save(_ds); string message = "Zostałeś zarejestrowany!"; string caption = ""; MessageBoxButtons buttons = MessageBoxButtons.OK; DialogResult result; result = MessageBox.Show(message, caption, buttons); dlgRegister.Close(); } } else if ((pckBirthDate.Value.Year) == DateTime.Today.Year) { if ((pckBirthDate.Value.Month) >= DateTime.Today.Month) { if ((pckBirthDate.Value.Day) > DateTime.Today.Day) { string message2 = "Przybysze z przyszłości nie mogą zakładać konta w naszym serwisie."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else { string message2 = "Aby założyć konto musisz mieć więcej niż 13 lat."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } } else { string message2 = "Aby założyć konto musisz mieć więcej niż 13 lat."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } } else if (pckBirthDate.Value.Year > DateTime.Today.Year) { string message2 = "Przybysze z przyszłości nie mogą zakładać konta w naszym serwisie."; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else if ((pckBirthDate.Value.Year + 118) <= DateTime.Today.Year) { string message2 = "https://www.medonet.pl/zdrowie/zdrowie-dla-kazdego,najstarszy-czlowiek-swiata--poznaj-sekrety-i-historie-dlugowiecznosci,artykul,14294014.html"; string caption2 = ""; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message2, caption2, buttons2); } else { user = new Sluchacz(tbxLogin.Text, tbxPassword.Text, tbxName.Text, tbxSurname.Text, cbxSex.Text, pckBirthDate.Value.ToShortDateString(), tbxPhoneNumber.Text, tbxEMail.Text); _ds.Sluchacze.Add(user); _ds.DataStore_save(_ds); string message = "Zostałeś zarejestrowany!"; string caption = ""; MessageBoxButtons buttons = MessageBoxButtons.OK; DialogResult result; result = MessageBox.Show(message, caption, buttons); dlgRegister.Close(); } } void BtnCancel(object sender2, EventArgs e2) { dlgRegister.Close(); } dlgRegister.ShowDialog(); }
private void button1_Click(object sender, EventArgs e) { string message = "Z uwagi na fakt, że tworzenie całego systemu pod kątem oceny nie przyniosłoby rezultatów (wszystkie funkcje kluczowe z punktu widzenia wymogów projektu zostały już zaimplementowane), twórcy postanowili pozostawić sobie zadanie zaprojektowania działania tego formularza do dalszej, samodzielnej już zabawy z .NET. To, co zostało zaprezentowane tutaj jest wyłącznie wizualną prezentacją potencjalnych funkcji SOKu."; string caption = "To wciąż wersja Alpha :("; MessageBoxButtons buttons2 = MessageBoxButtons.OK; DialogResult result2; result2 = MessageBox.Show(message, caption, buttons2); Form przegladKonferencji = new Form(); przegladKonferencji.Height = 610; przegladKonferencji.Width = 773; #region layout ListBox ListViewConferece = new System.Windows.Forms.ListBox(); ColumnHeader Number = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader SubjectOfConference = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader Date = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); Button ShowDetails = new System.Windows.Forms.Button(); ComboBox SortComboBox1 = new System.Windows.Forms.ComboBox(); Button SortBtn = new System.Windows.Forms.Button(); TableLayoutPanel tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); tableLayoutPanel1.SuspendLayout(); przegladKonferencji.SuspendLayout(); Adres adresik = new Adres("Sienkiewicza", "Krakow", "22-600", "123", "13"); MiejsceKonferencji miejsce = new MiejsceKonferencji(adresik.ulica, adresik.miejscowosc, adresik.kodPocztowy, adresik.numerBudynku, adresik.numerLokalu, 112, 100); Organizator o = new Organizator("pirateska", "martynka"); Sluchacz s = new Sluchacz("kasia", "basia", "kasia", "kasia1", "kobieta", "14.10.9999", "696454787", "*****@*****.**"); Prelegent p = new Prelegent("karol", "karol"); ListaUczestnikówKonferencji Lp = new ListaUczestnikówKonferencji(); Lp.DodajObiekt(s); ListaPrelegentówKonferencji LLP = new ListaPrelegentówKonferencji(); LLP.DodajObiekt(p); Referat r = new Referat("kas", "bla,bla", p); PlanKonferencji plan = new PlanKonferencji(); plan.DodajReferat(r); Konferencja GonKon = new Konferencja("jutrobedziedeszcz", "12.13.1333", o, miejsce); GonKon.Uczestnicy = Lp; GonKon.Prelegenci = LLP; GonKon.Plan = plan; ListaKonferencji listaKon = new ListaKonferencji(); listaKon.DodajObiekt(GonKon); ListViewConferece.FormattingEnabled = true; ListViewConferece.ItemHeight = 18; ListViewConferece.Location = new System.Drawing.Point(128, 121); ListViewConferece.Name = "listBoxPokaz"; ListViewConferece.Size = new System.Drawing.Size(560, 337); ListViewConferece.TabIndex = 5; ListViewConferece.Items.Add(listaKon.ToString()); ListViewConferece.SelectionMode = SelectionMode.One; // // ListViewConferece // //ListViewConferece.AccessibleRole = System.Windows.Forms.AccessibleRole.None; //ListViewConferece.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { //Number, //SubjectOfConference, //}); //ListViewConferece.GridLines = true; //ListViewConferece.HideSelection = false; //ListViewConferece.Location = new System.Drawing.Point(128, 121); //ListViewConferece.Name = "ListViewConferece"; //ListViewConferece.Size = new System.Drawing.Size(560, 337); //ListViewConferece.TabIndex = 5; //ListViewConferece.UseCompatibleStateImageBehavior = false; //ListViewConferece.View = System.Windows.Forms.View.Details; //ListViewConferece.SelectedIndexChanged += new System.EventHandler(ListViewConferece_SelectedIndexChanged); // // Number // Number.Text = "Nr"; Number.Width = 30; // // SubjectOfConference // SubjectOfConference.Text = "Temat Konferencji"; SubjectOfConference.Width = 400; // // Date // Date.Text = "Data Konferencji"; Date.Width = 125; // // ShowDetails // ShowDetails.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); ShowDetails.Location = new System.Drawing.Point(512, 489); ShowDetails.Name = "ShowDetails"; ShowDetails.Size = new System.Drawing.Size(176, 41); ShowDetails.TabIndex = 4; ShowDetails.Text = "Pokaż szczegóły"; ShowDetails.UseVisualStyleBackColor = true; ShowDetails.Click += new EventHandler(ShowDetails_Click); // // SortComboBox1 // SortComboBox1.Anchor = System.Windows.Forms.AnchorStyles.Left; SortComboBox1.FormattingEnabled = true; SortComboBox1.Items.AddRange(new object[] { "data rosnąco", "data malejąco", "alfabetycznie" }); SortComboBox1.Location = new System.Drawing.Point(128, 92); SortComboBox1.Name = "SortComboBox1"; SortComboBox1.Size = new System.Drawing.Size(159, 24); SortComboBox1.TabIndex = 2; //SortComboBox1.SelectedIndexChanged += new System.EventHandler(comboBox1_SelectedIndexChanged); // // SortBtn // SortBtn.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); SortBtn.Location = new System.Drawing.Point(25, 92); SortBtn.Name = "SortBtn"; SortBtn.Size = new System.Drawing.Size(97, 23); SortBtn.TabIndex = 0; SortBtn.Text = "Sortuj"; SortBtn.UseVisualStyleBackColor = true; // // tableLayoutPanel1 // tableLayoutPanel1.ColumnCount = 3; tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.59808F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 74.90092F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 8.586526F)); tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 95F)); tableLayoutPanel1.Controls.Add(SortBtn, 0, 2); tableLayoutPanel1.Controls.Add(SortComboBox1, 1, 2); tableLayoutPanel1.Controls.Add(ShowDetails, 1, 4); tableLayoutPanel1.Controls.Add(ListViewConferece, 1, 3); tableLayoutPanel1.Location = new System.Drawing.Point(2, 1); tableLayoutPanel1.Name = "tableLayoutPanel1"; tableLayoutPanel1.RowCount = 5; tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 23.76238F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 76.23763F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 368F)); tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 78F)); tableLayoutPanel1.Size = new System.Drawing.Size(757, 565); tableLayoutPanel1.TabIndex = 0; //tableLayoutPanel1.Paint += new System.Windows.Forms.PaintEventHandler(tableLayoutPanel1_Paint); // // PrzeglądKonferencji // przegladKonferencji.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); przegladKonferencji.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; przegladKonferencji.ClientSize = new System.Drawing.Size(755, 563); przegladKonferencji.Controls.Add(ListViewConferece); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(ShowDetails); przegladKonferencji.Controls.Add(SortComboBox1); przegladKonferencji.Controls.Add(SortBtn); przegladKonferencji.Controls.Add(tableLayoutPanel1); przegladKonferencji.Name = "PrzeglądKonferencji"; przegladKonferencji.Text = "Przegląd Konferencji"; przegladKonferencji.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; //przegladKonferencji.Load += new System.EventHandler(this.FormularzTestowy_Load); tableLayoutPanel1.ResumeLayout(false); przegladKonferencji.ResumeLayout(false); przegladKonferencji.PerformLayout(); przegladKonferencji.ShowDialog(); #endregion void ShowDetails_Click(object sender2, EventArgs e2) { foreach (Object obj in ListViewConferece.SelectedItems) { Form szczegolyKonf = new Form(); szczegolyKonf.Height = 553; szczegolyKonf.Width = 713; #region layout Label labelM = new System.Windows.Forms.Label(); Label labelN = new System.Windows.Forms.Label(); Label labelO = new System.Windows.Forms.Label(); Label labelP = new System.Windows.Forms.Label(); Label labelX = new System.Windows.Forms.Label(); Label labelY = new System.Windows.Forms.Label(); ListView listView1 = new System.Windows.Forms.ListView(); ColumnHeader ColumnHeader2 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader ColumnHeader1 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); ColumnHeader ColumnHeader = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); Label labelU = new System.Windows.Forms.Label(); Label labelJ = new System.Windows.Forms.Label(); Label labelG = new System.Windows.Forms.Label(); Label labelM0 = new System.Windows.Forms.Label(); Label labelM1 = new System.Windows.Forms.Label(); this.SuspendLayout(); // // labelM // labelM.Anchor = System.Windows.Forms.AnchorStyles.None; labelM.AutoSize = true; labelM.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM.Location = new System.Drawing.Point(43, 43); labelM.Name = "labelM"; labelM.Size = new System.Drawing.Size(73, 25); labelM.TabIndex = 0; labelM.Text = "Temat"; // // labelN // labelN.Anchor = System.Windows.Forms.AnchorStyles.None; labelN.AutoSize = true; labelN.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelN.Location = new System.Drawing.Point(43, 88); labelN.Name = "labelN"; labelN.Size = new System.Drawing.Size(125, 25); labelN.TabIndex = 1; labelN.Text = "Organizator"; //labelN.Click += new System.EventHandler(labelN_Click); // // labelO // labelO.Anchor = System.Windows.Forms.AnchorStyles.None; labelO.AutoSize = true; labelO.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelO.Location = new System.Drawing.Point(43, 132); labelO.Name = "labelO"; labelO.Size = new System.Drawing.Size(57, 25); labelO.TabIndex = 2; labelO.Text = "Data"; // // labelP // labelP.Anchor = System.Windows.Forms.AnchorStyles.None; labelP.AutoSize = true; labelP.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelP.Location = new System.Drawing.Point(43, 178); labelP.Name = "labelP"; labelP.Size = new System.Drawing.Size(86, 25); labelP.TabIndex = 3; labelP.Text = "Miejsce"; // // labelX // labelX.Anchor = System.Windows.Forms.AnchorStyles.None; labelX.AutoSize = true; labelX.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelX.Location = new System.Drawing.Point(43, 224); labelX.Name = "labelX"; labelX.Size = new System.Drawing.Size(226, 25); labelX.TabIndex = 4; labelX.Text = "Liczba wolnych miejsc"; // // labelY // labelY.Anchor = System.Windows.Forms.AnchorStyles.None; labelY.AutoSize = true; labelY.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelY.Location = new System.Drawing.Point(43, 271); labelY.Name = "labelY"; labelY.Size = new System.Drawing.Size(170, 25); labelY.TabIndex = 5; labelY.Text = "Plan Konferencji"; // // listView1 // listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] { ColumnHeader2, ColumnHeader1, ColumnHeader }); listView1.GridLines = true; listView1.HideSelection = false; listView1.Location = new System.Drawing.Point(48, 299); listView1.Name = "listView1"; listView1.Size = new System.Drawing.Size(618, 177); listView1.TabIndex = 6; listView1.UseCompatibleStateImageBehavior = false; listView1.View = System.Windows.Forms.View.Details; // // ColumnHeader2 // ColumnHeader2.Text = "Nr"; ColumnHeader2.Width = 30; // // ColumnHeader1 // ColumnHeader1.Text = "TematReferatu"; ColumnHeader1.Width = 400; // // ColumnHeader // ColumnHeader.Text = "Autor"; ColumnHeader.Width = 200; // // labelU // labelU.Anchor = System.Windows.Forms.AnchorStyles.None; labelU.AutoSize = true; labelU.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelU.Location = new System.Drawing.Point(267, 224); labelU.Name = "labelU"; labelU.Size = new System.Drawing.Size(23, 25); labelU.TabIndex = 9; labelU.Text = " _ "; // // labelJ // labelJ.Anchor = System.Windows.Forms.AnchorStyles.None; labelJ.AutoSize = true; labelJ.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelJ.Location = new System.Drawing.Point(134, 178); labelJ.Name = "labelJ"; labelJ.Size = new System.Drawing.Size(23, 25); labelJ.TabIndex = 10; labelJ.Text = "_"; // // labelG // labelG.Anchor = System.Windows.Forms.AnchorStyles.None; labelG.AutoSize = true; labelG.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelG.Location = new System.Drawing.Point(112, 132); labelG.Name = "labelG"; labelG.Size = new System.Drawing.Size(23, 25); labelG.TabIndex = 11; labelG.Text = "_"; // // labelM0 // labelM0.Anchor = System.Windows.Forms.AnchorStyles.None; labelM0.AutoSize = true; labelM0.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM0.Location = new System.Drawing.Point(174, 88); labelM0.Name = "labelM0"; labelM0.Size = new System.Drawing.Size(23, 25); labelM0.TabIndex = 12; labelM0.Text = "_"; // // labelM1 // labelM1.Anchor = System.Windows.Forms.AnchorStyles.None; labelM1.AutoSize = true; labelM1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); labelM1.Location = new System.Drawing.Point(134, 43); labelM1.Name = "labelM1"; labelM1.Size = new System.Drawing.Size(23, 25); labelM1.TabIndex = 13; labelM1.Text = "_"; // // KonferencjaSzczegoly // szczegolyKonf.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; szczegolyKonf.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); szczegolyKonf.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; szczegolyKonf.ClientSize = new System.Drawing.Size(695, 506); szczegolyKonf.Controls.Add(labelM1); szczegolyKonf.Controls.Add(labelM0); szczegolyKonf.Controls.Add(labelG); szczegolyKonf.Controls.Add(labelJ); szczegolyKonf.Controls.Add(labelU); szczegolyKonf.Controls.Add(listView1); szczegolyKonf.Controls.Add(labelY); szczegolyKonf.Controls.Add(labelX); szczegolyKonf.Controls.Add(labelP); szczegolyKonf.Controls.Add(labelO); szczegolyKonf.Controls.Add(labelN); szczegolyKonf.Controls.Add(labelM); szczegolyKonf.Name = "KonferencjaSzczegoly"; szczegolyKonf.Text = "KonferencjaSzczegoly"; szczegolyKonf.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; // szczegolyKonf.Load += new System.EventHandler(thiKonferencjaSzczegoly_Load); szczegolyKonf.ResumeLayout(false); szczegolyKonf.PerformLayout(); szczegolyKonf.ShowDialog(); #endregion } } }