private void RadUpload_FileUploadStarting(object sender, FileUploadStartingEventArgs e)
 {
     RadUpload upload1 = sender as RadUpload;
     Status_EventEnter("FileUploadStarting");
     e.FileParameters.Add("myParam1", "myParam1Value");
     Status_Write("Uploading File:" + e.SelectedFile.Name + " | " + e.UploadData.FileName);
     Status_EventEnd("FileUploadStarting");
 }
Ejemplo n.º 2
0
        private void OnFileUploadStarting(object sender, FileUploadStartingEventArgs e)
        {
            Action action = () =>
                {
                    var paperclipsViewModel = DataContext as IPaperclipsViewModel;

                    if (paperclipsViewModel != null)
                        paperclipsViewModel.OnFileUploadStarting(sender, e);
                };

            if (Dispatcher.CheckAccess())
                action();
            else
                Dispatcher.BeginInvoke(action);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Handles the <see cref="E:FileUploadStarting" /> event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="FileUploadStartingEventArgs"/> instance containing the event data.</param>
 public void OnFileUploadStarting(object sender, FileUploadStartingEventArgs e)
 {
     e.FileParameters[Constants.ReplaceReportConnectionStrings] = ReplaceConnectionStrings;
 }