private void grdActivitiesGroups_grdMain_MouseDoubleClick(object sender, EventArgs e)
        {
            grdActivitiesGroups.Grid.CommitEdit();
            grdActivitiesGroups.Grid.CancelEdit();
            ActivitiesGroupPage page = new ActivitiesGroupPage(((ActivitiesGroup)grdActivitiesGroups.Grid.SelectedItem), mBusinessFlow, ActivitiesGroupPage.eEditMode.ExecutionFlow);

            page.ShowAsWindow();
        }
 private void BtnEdit_Click(object sender, RoutedEventArgs e)
 {
     if (grdActivitiesGroups.btnEdit.IsMouseOver)
     {
         if (grdActivitiesGroups.Grid.SelectedItem != null)
         {
             ActivitiesGroupPage page = new ActivitiesGroupPage((ActivitiesGroup)grdActivitiesGroups.Grid.SelectedItem, mBusinessFlow, ActivitiesGroupPage.eEditMode.ExecutionFlow);
             page.ShowAsWindow();
         }
         else
         {
             Reporter.ToUser(eUserMsgKey.NoItemWasSelected);
         }
     }
 }