private void btnAdd_Click(object sender, EventArgs e) { var createprojectdoc = new CreateProjectDoc(); createprojectdoc.ShowDialog(); InputInformations.Add(createprojectdoc.inputinformation); gcInputInformation.DataSource = InputInformations; }