Ejemplo n.º 1
0
        private void JoinButton_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (!this.paretocalculator.stackEmpty())
                {
                    JoinDialog      dialogBox    = new JoinDialog(this.paretocalculator);
                    Nullable <bool> dialogResult = dialogBox.ShowDialog();

                    if (dialogResult == true)
                    {
                        string q = (string)dialogBox.quantCombo.SelectedItem;
                        this.paretocalculator.executeJoin(q);
                        this.UpdateStack();
                    }
                }
            }
            catch (ParetoCalculatorExceptionW exc)
            {
                this.ParetoCalculatorExceptionOccurred(exc);
                this.UpdateStack();
            }
        }
Ejemplo n.º 2
0
 /**
  * When Join Session is activated launch the Join Dialog
  */
 protected void OnJoinSessionActionActivated(object sender, System.EventArgs e)
 {
     JoinDialog join = new JoinDialog(this);
 }