Exemplo n.º 1
0
 public void Update(firm f)
 {
     this.name = f.name;
     this.contact_phone_number = f.contact_phone_number;
     this.contact_first_name   = f.contact_first_name;
     this.contact_last_name    = f.contact_last_name;
     this.contact_middle_name  = f.contact_middle_name;
 }
Exemplo n.º 2
0
        public AddFirmForm(string connectionString, long id)
        {
            InitializeComponent();
            context = new classroom_fundEntities(connectionString);
            this.id = id;
            firm f = context.firm.Find(id);

            nameInput.Text      = f.name;
            PhoneInput.Text     = f.contact_phone_number;
            contactFNInput.Text = f.contact_first_name;
            contactLNInput.Text = f.contact_last_name;
            contactMNInput.Text = f.contact_middle_name;
            submitButton.Text   = "Изменить";
            mode = false;
        }