Пример #1
0
        /// <summary>
        /// Method to update a list of AclAction entities into the database.
        /// </summary>
        /// <param name="newItems">Thee list of items to update.</param>
        /// <param name="oldItems"></param>
        public static void DbUpdate(List <AclActionEntity> newItems, List <AclActionEntity> oldItems)
        {
            log.Info("Replacing AclAction. Please wait...");

            try
            {
                if (newItems != null && newItems.Count > 0)
                {
                    foreach (AclActionEntity entity in newItems)
                    {
                        //await Db.AclActions.Update(entity);

                        MessageBoxs.NotImplemented();

                        log.Info($"AclAction [{entity.PrimaryKey}:{entity.Action}] updated.");
                    }
                }

                AppNavigatorBase.Clear();
                log.Info("Replacing AclAction(s). Done !");
            }
            catch (Exception ex)
            {
                log.Error(ex);
                MessageBoxs.Fatal(ex, "Replacing AclAction(s) failed !");
            }
        }
Пример #2
0
        /// <summary>
        /// Method called on edit click to navigate to a Album edit window.
        /// </summary>
        /// <param name="sender">The object sender of the event.</param>
        /// <param name="e">Routed event arguments.</param>
        public override void EditItem_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxs.NotImplemented();
            return;

            // Check if an AclGroup is founded.
            //if (SelectedItem != null)
            //{
            //    // Show open file dialog box
            //    WindowFormAlbumLayout dlg = new WindowFormAlbumLayout(SelectedItem.PrimaryKey);
            //    bool? result = dlg.ShowDialog();

            //    // Process open file dialog box results
            //    if (result == true)
            //    {
            //        NotifyChanged(dlg.NewForm);
            //    }
            //    else
            //    {
            //        NotifyCanceled(dlg.NewForm);
            //    }
            //}
            //else
            //{
            //    string message = string.Format("{0} not found !", typeof(AlbumEntity).Name);
            //    log.Warn(message);
            //    MessageBoxs.Warning(message);
            //}
        }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="sender">The object sender of the event.</param>
 /// <param name="e"></param>
 private void ItemsCollection_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (SelectedItem != null)
     {
         //AppNavigator.NavigateToPageAlbumServer(SelectedItem.PrimaryKey);
         MessageBoxs.NotImplemented($"{GetType().Name}.{MethodBase.GetCurrentMethod().Name}");
     }
 }
Пример #4
0
        /// <summary>
        /// Method called on click event to add a new Album.
        /// </summary>
        /// <param name="sender">The sender of the event.</param>
        /// <param name="e">Routed event arguments.</param>
        public override void AddItem_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxs.NotImplemented();
            return;

            // Show open file dialog box
            //WindowFormAlbumLayout dlg = new WindowFormAlbumLayout(new AlbumEntity());
            //bool? result = dlg.ShowDialog();

            //// Process open file dialog box results
            //if (result == true)
            //{
            //    NotifyAdded(dlg.NewForm);
            //}
            //else
            //{
            //    NotifyCanceled(dlg.NewForm);
            //}
        }
Пример #5
0
 /// <summary>
 /// Method called on delete click to delete a Section.
 /// </summary>
 /// <param name="sender">The object sender of the event.</param>
 /// <param name="e">Routed event arguments.</param>
 public override void DeleteItems_Click(object sender, RoutedEventArgs e)
 {
     MessageBoxs.NotImplemented($"{GetType().Name}.{MethodBase.GetCurrentMethod().Name}");
 }
Пример #6
0
 /// <summary>
 /// Method called on delete click to delete a Album.
 /// </summary>
 /// <param name="sender">The object sender of the event.</param>
 /// <param name="e">Routed event arguments.</param>
 public override void DeleteItems_Click(object sender, RoutedEventArgs e)
 {
     MessageBoxs.NotImplemented();
 }
Пример #7
0
 /// <summary>
 /// Method called on items selection mouse double clear click event.
 /// </summary>
 /// <param name="sender">The object sender of the event.</param>
 /// <param name="e">Mouse button event arguments.</param>
 private void ItemsCollection_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     MessageBoxs.NotImplemented();
 }