Пример #1
0
 private void submitformButton_Click(object sender, EventArgs e)
 {
     var formToSubmit = new GovtForm {FormInformation = formTextbox.Text, UserName = Auth.GetCurrentUsername()};
     GovtFormService.SubmitForm(formToSubmit);
     RefreshGovtForms();
     formTextbox.Text = "";
     MessageBox.Show("Your form has been submitted!");
 }
Пример #2
0
 public void SubmitForm(GovtForm form)
 {
     _govtFormsDatabase.Add(form);
 }