private void StatsRow5_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Showing " + ConfigRow5.Text.ToString()); Beck_Option wnd = new Beck_Option(); wnd.Transfer(ConfigRow5.Text.ToString(), storedStatUpdate); wnd.Show(); this.Close(); }
private void StatsRow4_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Showing " + ConfigRow4.Text.ToString()); Beck_Option wnd = new Beck_Option(); int stat = this.storedStatICMP; ImageSet(stat, ICMPEchoImg); wnd.Transfer(ConfigRow4.Text.ToString(), stat); wnd.Show(); this.Close(); }
//private void DescRowBtn6_Click(object sender, RoutedEventArgs e) //{ // if (DescRow6.IsVisible == true) // { // DescRow6.Visibility = System.Windows.Visibility.Collapsed; // } // else // { // DescRow6.Visibility = System.Windows.Visibility.Visible; // } //} //private void DescRowBtn7_Click(object sender, RoutedEventArgs e) //{ // if (DescRow7.IsVisible == true) // { // DescRow7.Visibility = System.Windows.Visibility.Collapsed; // } // else // { // DescRow7.Visibility = System.Windows.Visibility.Visible; // } //} //private void DescRowBtn8_Click(object sender, RoutedEventArgs e) //{ // if (DescRow8.IsVisible == true) // { // DescRow8.Visibility = System.Windows.Visibility.Collapsed; // } // else // { // DescRow8.Visibility = System.Windows.Visibility.Visible; // } //} //private void DescRowBtn9_Click(object sender, RoutedEventArgs e) //{ // if (DescRow9.IsVisible == true) // { // DescRow9.Visibility = System.Windows.Visibility.Collapsed; // } // else // { // DescRow9.Visibility = System.Windows.Visibility.Visible; // } //} //private void DescRowBtn10_Click(object sender, RoutedEventArgs e) //{ // if (DescRow10.IsVisible == true) // { // DescRow10.Visibility = System.Windows.Visibility.Collapsed; // } // else // { // DescRow10.Visibility = System.Windows.Visibility.Visible; // } //} //private void DescRowBtn11_Click(object sender, RoutedEventArgs e) //{ // if (DescRow11.IsVisible == true) // { // DescRow11.Visibility = System.Windows.Visibility.Collapsed; // } // else // { // DescRow11.Visibility = System.Windows.Visibility.Visible; // } //} //private void DescRowBtn12_Click(object sender, RoutedEventArgs e) //{ // if (DescRow12.IsVisible == true) // { // DescRow12.Visibility = System.Windows.Visibility.Collapsed; // } // else // { // DescRow12.Visibility = System.Windows.Visibility.Visible; // } //} //For Respective buttons to configure private void StatsRow1_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Showing " + ConfigRow1.Text.ToString()); Beck_Option wnd = new Beck_Option(); PortscanTrigger(); //print out ports monitored that are open: if ((portStatNum / portStatTotal) != 1) { MessageBox.Show(portCheckReturn); } else { MessageBox.Show("All monitored ports are good to go!"); } int stat = this.storedStatPort; ImageSet(stat, PortCheckImg); wnd.Transfer(ConfigRow1.Text.ToString(), stat); wnd.Show(); this.Close(); }