コード例 #1
0
        private void HandleExpeditionReturned(object sender, ExpeditionReturnedEventArgs args)
        {
            if (!Settings.Notify_ExpeditionComplete.Value)
            {
                return;
            }

            NotifyManager.Notify(
                Notification.Types.ExpeditionReturned,
                "원정 완료",
                string.Format("「{0}」 원정에서 복귀했습니다", args.FleetName)
                );
        }
コード例 #2
0
        private void HandleExpeditionReturned(object sender, ExpeditionReturnedEventArgs args)
        {
            if (!Settings.KanColleSettings.NotifyExpeditionReturned)
            {
                return;
            }

            var notify = Notification.Create(
                Notification.Types.ExpeditionReturned,
                Resources.Expedition_NotificationMessage_Title,
                string.Format(Resources.Expedition_NotificationMessage, args.FleetName),
                () => WindowService.Current.MainWindow.Activate());

            this.Notify(notify);
        }