private void ShowUsersClick(object sender, EventArgs e) { RemoveControls(); ShowClients sc = new ShowClients(); sc.ShowClientDevButtonClicked -= ClientDevices; sc.ShowClientDevButtonClicked += ClientDevices; sc.ShowClientPlacesButtonClicked -= ClientPlaces; sc.ShowClientPlacesButtonClicked += ClientPlaces; sc.AddClientButtonClicked -= AddClient; sc.AddClientButtonClicked += AddClient; sc.EditClientButtonClicked -= EditClient; sc.EditClientButtonClicked += EditClient; ShowIcons("clients"); contentPanel.Controls.Add(sc); }
private void BtnShowClients_Click(object sender, RoutedEventArgs e) { ShowClients showClients = new ShowClients(); showClients.Show(); }