HatchStyles ();
// save the drawing
- string file = getDir () + "TestHatchBrush.png";
+ string file = "TestHatchBrush" + getOutSufix() + ".png";
bmp.Save (file, ImageFormat.Png);
}
currentTop = top;
}
- /* Get the right directory depending on the runtime */
- private string getDir ()
- {
- string dir;
-
- if (Environment.GetEnvironmentVariable ("MSNet") == null)
- dir = "mono/";
- else
- dir = "MSNet/";
-
- return dir;
+ internal string getOutSufix()
+ {
+ if (Environment.GetEnvironmentVariable("MSNet")==null)
+ return "-mono";
+
+ return "";
}
}
}