예제 #1
0
        public StartupCheck()
        {
            if (Process.GetProcessesByName("ZuseMe").Length > 1)
            {
                MessageBox.Show("ZuseMe is already running.", "ZuseMe");
                Environment.Exit(1);
            }

            if (!File.Exists("ZuseMe.exe.config"))
            {
                MessageBox.Show("File: ZuseMe.exe.config could not be found.", "ZuseMe");
                Environment.Exit(1);
            }

            if (Process.GetProcessesByName("ZuseMePlaying").Length == 0)
            {
                LaunchZuseMePlaying LaunchZuseMePlaying = new LaunchZuseMePlaying();
            }

            if (Process.GetProcessesByName("LastFM").Length == 0 || Process.GetProcessesByName("Last.fm").Length == 0 || Process.GetProcessesByName("Last.fm Scrobbler").Length == 0)
            {
                LaunchLastFM LaunchLastFM = new LaunchLastFM();
            }

            if (Process.GetProcessesByName("Zune").Length == 0)
            {
                LaunchZune LaunchZune = new LaunchZune();
            }
        }
        public StartupCheck()
        {
            if (Process.GetProcessesByName("ZuseMe").Length > 1)
            {
                MessageBox.Show("ZuseMe is already running.", "ZuseMe");
                Environment.Exit(1);
            }

            if (!File.Exists("ZuseMe.exe.config"))
            {
                MessageBox.Show("File: ZuseMe.exe.config could not be found.", "ZuseMe");
                Environment.Exit(1);
            }

            if (Process.GetProcessesByName("ZuseMePlaying").Length == 0)
            {
                LaunchZuseMePlaying LaunchZuseMePlaying = new LaunchZuseMePlaying();
            }

            if (Process.GetProcessesByName("LastFM").Length == 0 || Process.GetProcessesByName("Last.fm").Length == 0 || Process.GetProcessesByName("Last.fm Scrobbler").Length == 0)
            {
                LaunchLastFM LaunchLastFM = new LaunchLastFM();
            }

            if (Process.GetProcessesByName("Zune").Length == 0)
            {
                LaunchZune LaunchZune = new LaunchZune();
            }
        }