Ejemplo n.º 1
0
        private void buttonAddIP_Click(object sender, RoutedEventArgs e)
        {
            IPRangeDialog ipRangeDialog = new IPRangeDialog {
                Owner = this
            };

            buttonAddIP.CommandParameter = (ipRangeDialog.ShowDialog() == true) ? ipRangeDialog.IPAddressRange : null;
        }
Ejemplo n.º 2
0
        private void buttonEditIP_Click(object sender, RoutedEventArgs e)
        {
            IPRangeDialog ipRangeDialog = new IPRangeDialog {
                Owner = this
            };

            ipRangeDialog.IPAddressRange  = (IPAdressesRange)listBoxIPRange.SelectedItem;
            buttonEditIP.CommandParameter = (ipRangeDialog.ShowDialog() == true) ? ipRangeDialog.IPAddressRange : null;
        }