예제 #1
0
        private void buttonAddIP_Click(object sender, RoutedEventArgs e)
        {
            IPRangeDialog ipRangeDialog = new IPRangeDialog {
                Owner = this
            };

            buttonAddIP.CommandParameter = (ipRangeDialog.ShowDialog() == true) ? ipRangeDialog.IPAddressRange : null;
        }
예제 #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;
        }