This question is locked. New answers and comments are not allowed.
I have a rad window that popups up asking the user for a Save As name. In the handler that is called after it closes it checks to see if the name alredy exists. If it does, I want to get overwrite confirmation from the user in another RadWindow. This is where I cannot figure out how to do it since the Confirm window, like the Prompt, reacts to the user input through the use of the delegate.
I have it working with the plain Windows MessageBox (Line 20) but how would I do it with the RadWindow?
Thanks
Ernie
I have it working with the plain Windows MessageBox (Line 20) but how would I do it with the RadWindow?
01.private void SaveAs()02.{03. RadWindow.Prompt(04. "Please enter the name of the new view"05. , (sender, args) =>06. {07. if (args.DialogResult != true)08. return;09. 10. //See if it already exists11. var id = -1;12. var foundviews = SerializedViews13. .Items14. .Cast<SerializedView>()15. .Where(sv => sv.Name == args.PromptResult)16. .ToList();17. 18. if(foundviews.Any())19. {20. var result = MessageBox.Show("Already exists, overwrite?", "Confirm:", MessageBoxButton.OKCancel);21. if (result == MessageBoxResult.Cancel)22. return;23. 24. id = foundviews.First().Id;25. }26. 27. .......28. 29. SaveView(view);30. });31.}Thanks
Ernie