public PassingValuesSecondForm() { InitializeComponent(); passValueEvent += PassingValuesSecondForm_passValueEvent; passValueEvent(this, CustomTypeEventArgs.GetCustomTypeEventArgs()); }
private void button1_Click(object sender, EventArgs e) { string sIdentifier = AssignValueToVariable(); CustomTypeEventArgs paramContainingUpdatedVariable = CustomTypeEventArgs.GetCustomTypeEventArgs(); paramContainingUpdatedVariable.stringProperty = sIdentifier; PassingValuesSecondForm obj = new PassingValuesSecondForm(); obj.Show(); }