public void Execute(params object[] args)
        {
            ISupportSelection selector = (ISupportSelection)App.Current.MainWindow.CurrentPage;

            if (selector.SelectedItems.Count > 0 && "ESRI.ArcLogistics.DomainObjects.Driver" == selector.SelectedItems[0].GetType().ToString())
            {
                EditCommonPropertiesPopup popup = new EditCommonPropertiesPopup(itemList, this);
                popup.ShowDialog();
            }
            else
            {
                m_application.Messenger.AddError("No drivers selected.");
            }
        }
 public void Execute(params object[] args)
 {
     ISupportSelection selector = (ISupportSelection)App.Current.MainWindow.CurrentPage;
     if (selector.SelectedItems.Count > 0 && "ESRI.ArcLogistics.DomainObjects.Driver" == selector.SelectedItems[0].GetType().ToString())
     {
         EditCommonPropertiesPopup popup = new EditCommonPropertiesPopup(itemList, this);
         popup.ShowDialog();
     }
     else
         m_application.Messenger.AddError("No drivers selected.");
 }