private void btnSelectNodeGroup_Click(object sender, RoutedEventArgs e) { Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; ChooseNodegroup dlg = new ChooseNodegroup(txtCluster.Text); dlg.Owner = this; if (dlg.ShowDialog() == true) { cmbNodeGroup.Text = dlg.listBox.SelectedItem.ToString(); } Mouse.OverrideCursor = null; }
private void btnSelectNodeGroup_Click(object sender, RoutedEventArgs e) { if (txtCluster.Text == "") { System.Windows.MessageBox.Show("Can't select nodegroup without known headnode.", "Error", MessageBoxButton.OK, MessageBoxImage.Information); } else { Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; ChooseNodegroup dlg = new ChooseNodegroup(txtCluster.Text); dlg.Owner = this; if (dlg.ShowDialog() == true) { cmbNodeGroup.Text = dlg.listBox.SelectedItem.ToString(); } Mouse.OverrideCursor = null; } }
private void btnSelectNodeGroup_Click(object sender, RoutedEventArgs e) { if (txtCluster.Text == "") System.Windows.MessageBox.Show("Can't select nodegroup without known headnode.", "Error", MessageBoxButton.OK, MessageBoxImage.Information); else { Mouse.OverrideCursor = System.Windows.Input.Cursors.Wait; ChooseNodegroup dlg = new ChooseNodegroup(txtCluster.Text); dlg.Owner = this; if (dlg.ShowDialog() == true) { cmbNodeGroup.Text = dlg.listBox.SelectedItem.ToString(); } Mouse.OverrideCursor = null; } }