private void HandleWindowStateMessage(WindowStateMessage message) { switch (message.WindowState) { case S57WindowState.Close: this.Close(); break; } }
private void HandleOptionCommand(object option) { var parameterOption = option as string; if (parameterOption == "OK") { SafeWaterDepthSettingMessage safeWaterMessage = new SafeWaterDepthSettingMessage(SafetyContourDepth, SafetyWaterDepth, ShallowWaterDepth, DeepWaterDepth, DepthUnit); Messenger.Default.Send(safeWaterMessage); } WindowStateMessage windowMessage = new WindowStateMessage(S57WindowState.Close); Messenger.Default.Send(windowMessage, "SafeWaterDepthSettingsWindow"); }