public void Edit_Server(object sender, RoutedEventArgs e) { ServerDialog EditServer = new ServerDialog((Server)Server_List.SelectedItem); EditServer.Owner = this; EditServer.Top = this.Top + 150; EditServer.Left = this.Left + 200; EditServer.Title = "Edit server"; EditServer.ShowDialog(); }
// Server DataGrid button actions public void New_Server(object sender, RoutedEventArgs e) { ServerDialog NewServer = new ServerDialog(); NewServer.Owner = this; NewServer.Top = this.Top + 150; NewServer.Left = this.Left + 200; NewServer.Title = "New server"; NewServer.ShowDialog(); }