private void NewSet(object sender, NewSetEventArgs e)
        {
            try
            {
                if (e.NewSet != null)
                {
                    //Es lo primero que se tiene que hacer ya que esto resetea el conjunto y pone las variables en null
                    //y AttributeVisualizer le dice al Environment los attributos seleccionados, por lo tanto si seteo al Environment despues
                    //de haberle seteado los atributos al control, finalmente ele environment no va a tener atributos seleccionados, que son los que
                    //se utilizan para calcular la disimilitud, esto es solo la primera vez, ya que despues el usuario puede ir seleccionando los atributos
                    //y el Environment si se va actualizando.
                    Enviroment.Reset();
                    Enviroment.Set = e.NewSet;

                    this.uctrl_Attributes.Attributes = e.NewSet.Attributes;
                    this.uctrl_Elements.Set = e.NewSet;

                    ctrl_graphic.UpdateSet(e.NewSet);
                }
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }       
 public void NewSet(object sender, NewSetEventArgs e)
 {
     try
     {
         this.tb_SelectClusterAlg.Text = "Select Clustering Algorithm ...";
         this.tb_output.Text = "";
         this.HasSelectedAlgorithm = false;
         this.uctrl_ListClusterAlgVisualizer.ResetPartitionInfo();
     }
     catch (Exception _ex)
     {
         GeneralTools.Tools.WriteToLog(_ex);
     }
 }
        /// <summary>
        /// Este metodo se ejecuta cuando el Loader lanza el evento de que hay un nuevo Set
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void NewSet(object sender, NewSetEventArgs e)
        {
            try
            {
                this.uctrl_ListClusterAlgVisualizer.ResetPartitionInfo();

                cb_objetive.ItemsSource = null;
                if (e.NewSet != null)
                {
                    cb_objetive.ItemsSource = e.NewSet.Attributes.Values;
                    cb_objetive.DisplayMemberPath = "Name";
                    if (e.NewSet.Attributes.Values.Count > 0)
                        cb_objetive.SelectedIndex = cb_objetive.Items.Count - 1;
                }
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }
        public void NewSet(object sender, NewSetEventArgs e)
        {
            try
            {
                tb_alg_name.Text = "";

                Struct = null;
                rc_graphic.SeriesMappings.Reset();
                rc_graphic.ItemsSource = null;

                cb_objetiveX.ItemsSource = null;
                cb_objetiveY.ItemsSource = null;

                if (e.NewSet != null)
                {
                    cb_objetiveX.ItemsSource = e.NewSet.Attributes.Values;
                    cb_objetiveX.DisplayMemberPath = "Name";
                    cb_objetiveY.ItemsSource = e.NewSet.Attributes.Values;
                    cb_objetiveY.DisplayMemberPath = "Name";

                    if (e.NewSet.Attributes.Values.Count > 0)
                    {
                        cb_objetiveX.SelectedIndex = 0;
                        att_x = (ClusterEnsemble.Attribute)cb_objetiveX.SelectedItem;
                        cb_objetiveY.SelectedIndex = 0;
                        att_y = (ClusterEnsemble.Attribute)cb_objetiveY.SelectedItem;
                    }
                    if (att_x != null && att_y != null)
                    {
                        rc_graphic.DefaultView.ChartArea.AxisX.Title = att_x.Name;
                        rc_graphic.DefaultView.ChartArea.AxisY.Title = att_y.Name;
                    }
                    TelerikUtils.SetAnimationsSettings(rc_graphic);
                }

            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }
 public static void NewSet(object sender, NewSetEventArgs e)
 {
     Reset();
     Set = e.NewSet;
 }
Esempio n. 6
0
 public static void NewSet(object sender, NewSetEventArgs e)
 {
     Reset();
     Set = e.NewSet;
 }
        public void NewSet(object sender, NewSetEventArgs e)
        {
            try
            {
                cb_objetive.ItemsSource = null;
                Actual_set = null;
                att_obj = null;

                if (e.NewSet != null)
                {
                    Actual_set = e.NewSet;
                    cb_objetive.DisplayMemberPath = "Name";
                    cb_objetive.ItemsSource = null;
                    cb_objetive.ItemsSource = Actual_set.Attributes.Values;

                    if (e.NewSet.Attributes.Values.Count > 0)
                        cb_objetive.SelectedIndex = cb_objetive.Items.Count - 1;
                }
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }