コード例 #1
0
        protected void OnCreditSelected(CreditSelectedEventArgs args)
        {
            CreditSelectedEventHandler handler = CreditSelected;

            if (handler != null)
            {
                handler(this, args);
            }
        }
コード例 #2
0
        private void OkButton_Click(object sender, EventArgs e)
        {
            CreditSelectedEventArgs args = new CreditSelectedEventArgs()
            {
                TotalCredit    = TotalTextbox.Text.ToDecimal(),
                CreditSelected = selectedCredits.ToList()
            };

            CreditSelected(sender, args);
            this.Close();
        }