Example #1
0
        /// <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);
            }
        }
Example #2
0
        /// <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();
            }
        }