private void RunArtemis_Click(object sender, RoutedEventArgs e) { if (_log.IsDebugEnabled) { _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString()); } if (this.SelectedIPAddress != Locations.GetCurrentIPAddress()) { if (!Locations.SetIPAddress(this.SelectedIPAddress)) { Locations.MessageBoxShow("Unable to set the Server IP address.\r\n\r\nReview log file for details as to why.", MessageBoxButton.OK, MessageBoxImage.Information); } } Window thiswin = Window.GetWindow(this); thiswin.ShowInTaskbar = false; SessionMonitor win = new SessionMonitor(); win.StartSession(); DoAnimation(); win.ShowDialog(); thiswin.ShowInTaskbar = true; thiswin.WindowState = System.Windows.WindowState.Normal; string newIP = Locations.GetCurrentIPAddress(); if (!IPAddresses.Contains(newIP)) { Locations.AddToIPList(newIP); IPAddresses.Add(newIP); SelectedIPAddress = newIP; } if (_log.IsDebugEnabled) { _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString()); } }
public override bool IsContainHostIpAddress(string host) { return(IPAddresses.Contains(host)); }