示例#1
0
        private void PrefixButton_Click(object sender, RoutedEventArgs e)
        {
            Button    button      = sender as System.Windows.Controls.Button;
            Network   user        = button.DataContext as Network;
            AddPrefix inputDialog = new AddPrefix(user.Names);

            if (inputDialog.ShowDialog() == true)
            {
                Refresh();
            }
        }
示例#2
0
        private void PrefixButton_Click(object sender, RoutedEventArgs e)
        {

            Button button = sender as System.Windows.Controls.Button;
            Network user = button.DataContext as Network;
            AddPrefix inputDialog = new AddPrefix(user.Names);
            if (inputDialog.ShowDialog() == true)
                 Refresh();
        }