예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
            }
        }
예제 #4
0
        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;
            }
        }