/// <summary>
        /// Go to the page to add an element
        /// </summary>
        /// <returns></returns>
        private async Task GoToAddElement()
        {
            AddElementWindow page = new AddElementWindow(UserServices, AlertServices, MaterialServices, ProductServices, MaterialsProductServices, SaleServices, await MaterialServices.GetAll());

            page.Show();
            CurrentPage.Close();
        }
Ejemplo n.º 2
0
 private void EditButtonAction(string obj)
 {
     try
     {
         AddElementWindow editWindow = new AddElementWindow(masterController, ParentElement);
         editWindow.Show();
     }
     catch (Exception e)
     {
         MessageBox.Show(e.Message);
     }
 }