CommonControls.CommonLightBox.OnMouseDownAtSaveBlackoutBorder C# (CSharp) Method

OnMouseDownAtSaveBlackoutBorder() public method

public OnMouseDownAtSaveBlackoutBorder ( object obj, RoutedEventArgs arg ) : void
obj object
arg System.Windows.RoutedEventArgs
return void
        public void OnMouseDownAtSaveBlackoutBorder(object obj, RoutedEventArgs arg)
        {
            SaveAndQuitEventArgs quitArg = new SaveAndQuitEventArgs();
            quitArg.canClose = true;
            if (OnSaveAndQuit != null)
            {
                OnSaveAndQuit(this, quitArg);
            }

            if (quitArg.canClose)
            {
                DialogResult = true;
            }
        }