コード例 #1
0
ファイル: ExtensionWindow.cs プロジェクト: dox0/DotNet471RS3
        static internal void RaiseWindowCloseEvent(ExtensionWindow sender)
        {
            ExtensionWindowClosingRoutedEventArgs args = new ExtensionWindowClosingRoutedEventArgs(ClosingEvent, sender);

            sender.RaiseEvent(args);
            if (!args.Cancel)
            {
                sender.RaiseEvent(new RoutedEventArgs(CloseEvent, sender));
            }
        }
コード例 #2
0
 static internal void RaiseWindowCloseEvent(ExtensionWindow sender)
 {
     ExtensionWindowClosingRoutedEventArgs args = new ExtensionWindowClosingRoutedEventArgs(ClosingEvent, sender);
     sender.RaiseEvent(args);
     if (!args.Cancel)
     {
         sender.RaiseEvent(new RoutedEventArgs(CloseEvent, sender));
     }
 }
コード例 #3
0
 void OnExtensionWindowClosing(object sender, ExtensionWindowClosingRoutedEventArgs e)
 {
     e.Cancel = true;
     e.Handled = true;
     ((ExtensionWindow)sender).IsEnabled = false;
 }