/// <summary> /// Handles the Closed event of the Window control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void Window_Closed(object sender, System.EventArgs e) { if (this.CloseCommand != null) { ConfigData.ChangerBonneFermeture(true); Messenger.Default.Send(true, "StopSendPositions"); //Messenger.Default.Send("n", "StopRobot"); } }