private void OnAddClick(object sender, RoutedEventArgs e) { AddServerInfo AddServerInfo = new AddServerInfo(); AddServerInfo.RefreshEvent += AddServerInfoRefreshEvent; AddServerInfo.ShowDialog(); }
private void OnLookClick(object sender, RoutedEventArgs e) { System.Windows.Controls.Button Btn = sender as System.Windows.Controls.Button; object obj = Btn.Tag; ServerInfo ServerInfo = ServerInfoXmlUtils.GetValById(obj.ToString()); AddServerInfo AddServerInfo = new AddServerInfo(ServerInfo, true); AddServerInfo.ShowDialog(); }