private void buttonDomeAzGo_Click(object sender, EventArgs e) { if (textBoxDomeAzGo.Text == string.Empty) { return; } double az = Convert.ToDouble(textBoxDomeAzGo.Text); if (az < 0.0 || az >= 360.0) { textBoxDomeAzGo.Text = ""; } wisetele.DomeSlewer(az); }