private void Clients_Click(object sender, RoutedEventArgs e) { hide(); ClientsUserControl x = new ClientsUserControl(); DisplayGrid.Children.Add(x); }
public void ClientsCommand_Executed(object sender) { if (!AppProperties.FormHaveModifications || DiscardFormModifications()) { AppProperties.FormHaveModifications = false; SelfInvoiceButtonStyle = Application.Current.Resources["MainMenuButtonStyle"] as Style; InvoiceButtonStyle = Application.Current.Resources["InvoiceMenuButtonStyle"] as Style; CashButtonStyle = Application.Current.Resources["CashMenuButtonStyle"] as Style; MaterialsButtonStyle = Application.Current.Resources["MaterialsMenuButtonStyle"] as Style; ClientsButtonStyle = Application.Current.Resources["SelectedMenuButtonStyle"] as Style; SelectedControl = new ClientsUserControl(); } }