private void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            dG.Loader("SELECT * FROM dbo.[OrderView] " +
                      $"WHERE [IdUser] = '{App.IdUser}'");
            lb.Loader("SortingCenter", "NameSortingCenter");

            comboBoxClient.Loader("Client", "FirstName + ' ' + LastName");
            comboBoxRecipient.Loader("Recipient", "FirstName + ' ' + LastName");
            comboBoxSupplier.Loader("Supplier", "Name");
            comboBoxArticle.Loader("Product", "Article");
            comboBoxSortingCenter.Loader("SortingCenter", "NameSortingCenter");
            comboBoxNameOrderTiming.Loader("OrderTiming", "NameOrderTiming");

            comboBoxEditClient.Loader("Client", "FirstName + ' ' + LastName");
            comboBoxEditRecipient.Loader("Recipient", "FirstName + ' ' + LastName");
            comboBoxEditSupplier.Loader("Supplier", "Name");
            comboBoxEditArticle.Loader("Product", "Article");
            comboBoxEditSortingCenter.Loader("SortingCenter", "NameSortingCenter");
            comboBoxEditNameOrderTiming.Loader("OrderTiming", "NameOrderTiming");
        }
Ejemplo n.º 2
0
        private void UserControl_Loaded(object sender, RoutedEventArgs e)
        {
            dG.Loader("SELECT * FROM dbo.[UserRole]");

            snackMessage.ActionClick += delegate { dG.CloseSnackbar(); };

            myListBox.Loader("Role", "NameRole");

            comboBoxAddRole.Loader("Role", "NameRole");

            comboBoxEditRole.Loader("Role", "NameRole");
        }