/// <summary> /// Zmiana trybu ze mastera na slave'a /// </summary> /// <param name="sender"></param> /// <param name="eventArgs"></param> private void SwitchToSlave(object sender, EventArgs eventArgs) { currentForm.FormClosed -= ExitApp; currentForm.Close(); StartSlave(); }