Exemple #1
0
 private void upload1_Uploaded(object sender, UploadedEventArgs e)
 {
     if (e.Files.Count > 0)
     {
         LoadFileStream(e.Files[0].InputStream);
     }
 }
        private void buttonLoad_Uploaded(object sender, UploadedEventArgs e)
        {
            var data = JSON.Parse(e.Files[0].InputStream);

            this.dxChart1.Options.dataSource = data;

            this.dxChart1.Update();
        }
Exemple #3
0
        // Callback for Image UploadedSignal
        private void OnUploaded(IntPtr data)
        {
            UploadedEventArgs e = new UploadedEventArgs();

            // Populate all members of "e" (UploadedEventArgs) with real data
            e.Image = Image.GetImageFromPtr(data);

            if (_imageUploadedEventHandler != null)
            {
                //here we send all data to user event handlers
                _imageUploadedEventHandler(this, e);
            }
        }
Exemple #4
0
 /// <summary>
 /// Fires the <see cref="Uploaded" /> event.
 /// </summary>
 /// <param name="e">A <see cref="T:Wisej.Web.UploadedEventArgs" /> that contains the event data. </param>
 protected virtual void OnUploaded(UploadedEventArgs e)
 {
     ((UploadedEventHandler)base.Events[nameof(Uploaded)])?.Invoke(this, e);
 }
Exemple #5
0
 private void upload2_Uploaded(object sender, UploadedEventArgs e)
 {
     LoadFiles(e.Files);
 }