예제 #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);
 }