Exemplo n.º 1
0
        /// <summary>
        /// Evt click sur Edit data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void EditData(object sender, RoutedEventArgs e)
        {
            var data = (sender as Button).CommandParameter as IDBItem;

            if (data == null)
            {
                return;
            }

            EditResourceDetailsDialog.ShowDialog(ModalDialogParent, currentView, data, OnUpdate);
        }
Exemplo n.º 2
0
 private void AddData(object sender, RoutedEventArgs e)
 {
     EditResourceDetailsDialog.ShowDialog(ModalDialogParent, currentView, null, OnUpdate);
 }