private void Form1_FormClosed(object sender, FormClosedEventArgs e) { var disconnectWait = new Disconnect(_synoCommand); disconnectWait.ShowDialog(this); }