protected virtual void RaiseSaveButtonClick(MyGridView gv)
        {
            SaveButtonHandler handler = Events[saveButtonClick] as SaveButtonHandler;

            if (handler != null)
            {
                handler(this, gv);
            }
        }
コード例 #2
0
        public void SaveButton_Click(object sender, RoutedEventArgs e)
        {
            IHandler handler = new SaveButtonHandler(this);

            handler.Handle();
        }