ArcGISWindowsPhoneSDK.OwnershipBasedEditing.FeatureLayer_MouseLeftButtonDown C# (CSharp) Method

FeatureLayer_MouseLeftButtonDown() private method

private FeatureLayer_MouseLeftButtonDown ( object sender, GraphicMouseButtonEventArgs e ) : void
sender object
e GraphicMouseButtonEventArgs
return void
        private void FeatureLayer_MouseLeftButtonDown(object sender, GraphicMouseButtonEventArgs e)
        {
            // enable the delete icon if user is the owner, otherwise disable it
            if (e.Graphic != null && (sender as FeatureLayer).IsUpdateAllowed(e.Graphic))
                    (ApplicationBar.Buttons[1] as IApplicationBarIconButton).IsEnabled = true;
            else
                (ApplicationBar.Buttons[1] as IApplicationBarIconButton).IsEnabled = false;

            (sender as FeatureLayer).ClearSelection();
            e.Graphic.Select();
            (ApplicationBar.Buttons[2] as IApplicationBarIconButton).IsEnabled = true;
        }