コード例 #1
0
        ////////////////
        // State Changes
        ////////////////

        public override Task <bool> CanCloseViewModelAsync()
        {
            ToolServices.PassSoundShouldBePlayed      -= ToolServices_PassSoundShouldBePlayed;
            ToolServices.StoneCapturesShouldBePlayed  -= ToolServices_StoneCapturesShouldBePlayed;
            ToolServices.StonePlacementShouldBePlayed -= ToolServices_StonePlacementShouldBePlayed;
            _portraitUpdateTimer.End();
            return(base.CanCloseViewModelAsync());
        }