public ViewCapture(string uri) { InitializeComponent(); Location = uri; Instance = this; Preview.Source = new BitmapImage(new Uri(uri)); Title = uri; UploadCapture(this, null); }
public static bool DoCap() { var ran = SavedDirectory + DateTime.Now.ToString("yyyyMMddHHmmss").FormatToFile(); CapChat().Save(ran, ImageFormat.Png); var v = new ViewCapture(ran); v.Show(); CapChat().Dispose(); return true; }