I have downloaded the screenshot indicator from the ninjatrader app (ScreenshotTakerExample_NT8B13.zip) and I would like the file to have the date of when the screenshot was taken.
I have tried this and it doesn't work,
ORIGINAL:
PngBitmapEncoder png = new PngBitmapEncoder();
png.Frames.Add(outputFrame);
using (Stream stream = File.Create(string.Format(@"{0}\{1}", Core.Globals.UserDataDir , "MyScreenshot.png")) png.Save(stream);
MODIFIED:
PngBitmapEncoder png = new PngBitmapEncoder();
png.Frames.Add(outputFrame);
using (Stream stream = File.Create(string.Format(@"{0}\{1}", Core.Globals.UserDataDir , MyScreenshot" + DateTime.Now.ToString(" "+"d/M/yy h:mm") +".png")) png.Save(stream);
can you help me?
Comment