Example #1
0
        private bool HasDuplicates()
        {
            IPresentationService presentationService = new PresentationService();
            bool hasDuplicates = presentationService.ApplicationIsRunning(AppMutex);

            if (hasDuplicates)
            {
                MessageBox.Show(NavigationAssistant.Properties.Resources.ProgramIsRunningError,
                                NavigationAssistant.Properties.Resources.ProgramIsRunningErrorCaption);
            }
            return(hasDuplicates);
        }
        private bool HasDuplicates()
        {
            IPresentationService presentationService = new PresentationService();
            bool hasDuplicates = presentationService.ApplicationIsRunning(AppMutex);

            if (hasDuplicates)
            {
                MessageBox.Show(NavigationAssistant.Properties.Resources.ProgramIsRunningError,
                                NavigationAssistant.Properties.Resources.ProgramIsRunningErrorCaption);
            }
            return hasDuplicates;
        }