Example #1
0
        /// <summary>
        /// Fenetre de modification d'un bien
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private async void button_Modify(object sender, RoutedEventArgs e)
        {
            if (selectedItem != null)
            {
                Windowadd winadd = new Windowadd(selectedItem.Id);

                if (winadd.ShowDialog() == true)
                {
                    await InitBiensAsync();
                }
            }
        }
Example #2
0
        private async void button_Add(object sender, RoutedEventArgs e)
        {
            Windowadd winadd = new Windowadd();

            //winadd.Show();

            winadd.Owner = this;

            if (winadd.ShowDialog() == true)
            {
                await InitBiensAsync();
            }
        }