private void Row_MouseDoubleClick_Resource(object sender, MouseButtonEventArgs e)
        {
            var data = (DataGrid)sender;

            var openPage = new ResourceProfilePage((ResourceView)data.SelectedValue);

            frame.Navigate(openPage);
        }
 private void urediResurs(object sender, RoutedEventArgs e)
 {
     if (resourceDataGrid.SelectedItem != null)
     {
         var openPage = new ResourceProfilePage((ResourceView)resourceDataGrid.SelectedItem);
         frame.Navigate(openPage);
     }
 }
        private void addResource_Click(object sender, RoutedEventArgs e)
        {
            ResourceView resource = new ResourceView();
            //ResourceList.Add(resource);

            var openPage = new ResourceProfilePage(resource, true);

            frame.Navigate(openPage);
        }