예제 #1
0
 public ViewCapture(string uri)
 {
     InitializeComponent();
     Location = uri;
     Instance = this;
     Preview.Source = new BitmapImage(new Uri(uri));
     Title = uri;
     UploadCapture(this, null);
 }
예제 #2
0
        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;
        }