コード例 #1
0
        private void Button_Ajouter_Click(object sender, RoutedEventArgs e)
        {
            var step4AddOrUpdate = new Step4AddOrUpdate();

            step4AddOrUpdate.DataContext      = new SpListToExtList();
            step4AddOrUpdate.SpListToExtLists = ((Config)DataContext).SpListsToExtLists;
            step4AddOrUpdate.OpnedForNewItem  = true;
            step4AddOrUpdate.Context          = ((Config)DataContext).SharepointConfig.Context;
            step4AddOrUpdate.Show();
            step4AddOrUpdate.FillCbBox();
        }
コード例 #2
0
 private void ButtonUpdate_Click(object sender, RoutedEventArgs e)
 {
     if (lvSpListsToExLists.SelectedItem != null)
     {
         var step4AddOrUpdate = new Step4AddOrUpdate();
         var item             = (SpListToExtList)lvSpListsToExLists.SelectedItem;
         step4AddOrUpdate.SpListToExtLists = ((Config)DataContext).SpListsToExtLists;
         step4AddOrUpdate.DataContext      = item;
         step4AddOrUpdate.OpnedForNewItem  = false;
         step4AddOrUpdate.Context          = ((Config)DataContext).SharepointConfig.Context;
         step4AddOrUpdate.Show();
         step4AddOrUpdate.FillCbBox();
     }
 }