Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.26 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using Theaters;
  11.  
  12. namespace KDZ_norm
  13. {
  14.     public partial class NewRowAdding : Form
  15.     {
  16.         public NewRowAdding()
  17.         {
  18.             InitializeComponent();
  19.         }
  20.         public NewRowAdding(List<Theater> List)
  21.         {
  22.             InitializeComponent();
  23.             currentList = List;
  24.  
  25.         }
  26.         List<Theater> currentList;
  27.         private void button1_Click(object sender, EventArgs e)
  28.         {
  29.             Theater theater = new Theater(RowNum.Text, CommonName.Text, FullName.Text, ShortName.Text, AdmArea.Text,
  30.                 District.Text, Address.Text, ChiefName.Text, ChiefPosition.Text, PublicPhone.Text, Fax.Text,
  31.                 Email.Text, WorkingHours.Text, ClarificationOfWorkingHours.Text, Website.Text, OKPO.Text, INN.Text,
  32.                 MainHallCapacity.Text, AdditionalHallCapacity.Text, X_WGS.Text, Y_WGS.Text, GLOBALID.Text);
  33.             currentList.Add(theater);
  34.             Form1 form1 = new Form1(currentList);
  35.             this.Close();
  36.             form1.Show();
  37.         }
  38.  
  39.  
  40.  
  41.  
  42.  
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement