public PassingValuesSecondForm()
        {
            InitializeComponent();

            passValueEvent += PassingValuesSecondForm_passValueEvent;
            passValueEvent(this, CustomTypeEventArgs.GetCustomTypeEventArgs());
        }
示例#2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string sIdentifier = AssignValueToVariable();

            CustomTypeEventArgs paramContainingUpdatedVariable = CustomTypeEventArgs.GetCustomTypeEventArgs();

            paramContainingUpdatedVariable.stringProperty = sIdentifier;

            PassingValuesSecondForm obj = new PassingValuesSecondForm();

            obj.Show();
        }