Hello,
I've subscribed my layer to a RowCreatedEvent. I'd like to take some user input from a ProWindow dialog and update the new feature's attributes accordingly. Problem is I'm having trouble preventing the RowCreatedEvent from running entirely before the user has input information. Here's my current OnRowCreatedEvent,
public static async void OnRowCreated(RowChangedEventArgs args)
{
string lotCount = null;
await Task.Factory.StartNew(() =>
{
CreateLotWindow createLotWindow = new CreateLotWindow();
createLotWindow.Owner = FrameworkApplication.Current.MainWindow;
var vm = createLotWindow.DataContext as CreateLotWindowViewModel;
createLotWindow.ShowDialog();
lotCount = vm.LotCount;
}, System.Threading.CancellationToken.None, TaskCreationOptions.None, QueuedTask.UIScheduler); // run this sequence on the UI thread
Row row = args.Row;
row["LOT_NO"] = lotCount; // update the row information with the userInput
} 