/[AnywhereTS-MSSQL]/trunk/TSAdminTool/ImageRuntimeConfig.cs
ViewVC logotype

Diff of /trunk/TSAdminTool/ImageRuntimeConfig.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 92 by william, Thu Jul 12 18:56:31 2012 UTC revision 93 by william, Sat Jul 14 02:35:50 2012 UTC
# Line 6  using System.IO; Line 6  using System.IO;
6  using System.Net;  using System.Net;
7  using System.Windows.Forms;  using System.Windows.Forms;
8  using log4net;  using log4net;
9    using System.Linq;
10  namespace AnywhereTS  namespace AnywhereTS
11  {  {
12      // An image config set for an ATSImage, AnywhereTS Image      // An image config set for an ATSImage, AnywhereTS Image
# Line 882  namespace AnywhereTS Line 883  namespace AnywhereTS
883          // twointegers: String with resolution in the format '1024X768'          // twointegers: String with resolution in the format '1024X768'
884          // x: (out) The x resolution from the string          // x: (out) The x resolution from the string
885          // y: (out) The y resolution from the string          // y: (out) The y resolution from the string
886            private void ExtractResolution(string resolution, out int x, out int y)
         private void ExtractResolution(string twointegers, out int x, out int y)  
887          {          {
888              ATSGlobals.ExtractIntegers(twointegers, 'x', out x, out y);              x = -1;
889                y = -1;
890                int[] parsed = new int[0];
891                ATSGlobals.ExtractIntegers(resolution, 'x', out parsed);
892                x = parsed.First();
893                y = parsed.Last();
894          }          }
895    
896      } // class      } // class

Legend:
Removed from v.92  
changed lines
  Added in v.93

  ViewVC Help
Powered by ViewVC 1.1.22