/// <summary> /// 添加服务器 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btn_Add_Server(object sender, RoutedEventArgs e) { w_Server window = new w_Server(); if (window.ShowDialog() == true) { Servers.Add(window.Server); } }
/// <summary> /// 编辑服务器 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void click_Modify_Server(object sender, RoutedEventArgs e) { DC_SERVER server = (DC_SERVER)(sender as FrameworkElement).Tag; w_Server window = new w_Server(server); if (window.ShowDialog() != true) { Load(); } }