How to set the condition?

48
0
08-11-2022 01:03 AM
DavidMrázek
Occasional Contributor II

hey
Does anyone have an idea how to set the condition for UpgradeDataset so that when the layer is not editable, it sets so that the layer can edit, but when it is started again, UpgradeDataset no longer starts so that the dialog box with an error no longer pops up.

if (!Project.Current.IsEditingEnabled)//here I don't know how to set the condition for the second and next subsequent pass in the already edited layer
                {
                    object[] parametrList =
                    {
                        alBodyAnno
                    };
                    await StartATask("management.UpgradeDataset", parametrList);
                }

 

Thank you for tips and advice

David

0 Kudos
0 Replies