예제 #1
0
 protected void RaiseCloseDialog(DialogCloseState closeState)
 {
     if (CloseDialog != null)
     {
         CloseDialog(this, closeState);
     }
 }
예제 #2
0
        void OnCloseDialog(object sender, DialogCloseState e)
        {
            switch (e)
            {
            case DialogCloseState.Ok:
                DialogResult = true;
                Close();
                break;

            case DialogCloseState.Cancel:
                DialogResult = false;
                Close();
                break;

            default:
                throw new ArgumentOutOfRangeException("e");
            }
        }