Example #1
0
        public static string Run(string[] args, Loudness loud = Loudness.NORMAL, string solutionDir = null)
        {
            if (solutionDir == null)
            {
                solutionDir = SolutionUtilities.GetSolutionDir();
            }

            string stdout, stderr;
            int ret = CaideExe.Execute(args, solutionDir, out stdout, out stderr);
            if (ret != 0)
            {
                if (loud >= Loudness.NORMAL)
                {
                    Logger.LogError("caide.exe error. Return code {0}\n{1}\n{2}", ret, stdout, stderr);
                }
                if (loud >= Loudness.LOUD)
                {
                    MessageBox.Show(string.Format("caide.exe error. Return code {0}\n{1}\n{2}", ret, stdout, stderr));
                }
                return null;
            }

            return stdout;
        }
Example #2
0
File: Zone.cs Project: wasabii/rnet
 void ReceiveLoudness(byte value)
 {
     loudness = (Loudness)value;
     RaisePropertyChanged("Loudness");
 }