public void InsertServer(Server server) { Button button = CreateServerButton(server); ListServer.Add(server); button.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); }
private async void CreateServerDialog_RequestCreateServer(object sender, RequestCreateServerArgs e) { Server server = await ResourcesCreator.CreateServerAsync(e.ServerName); ListServer.Add(server); CreateServerButton(server); }