コード例 #1
0
        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();
        }