private void cb_objetiveY_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                att_y = (ClusterEnsemble.Attribute)cb_objetiveY.SelectedItem;

                if (att_x == null || att_y == null)
                {
                    return;
                }
                else
                {
                    rc_graphic.DefaultView.ChartArea.AxisY.Title = att_y.Name;

                    if (Struct != null)
                    {
                        rc_graphic.ItemsSource = null;
                        rc_graphic.ItemsSource = TelerikUtils.FillBubbleChartData(Struct, att_x, att_y);
                    }
                }
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }
        public void NewStructuring(object sender, NewStructuringEventArgs e)
        {
            try
            {
                Struct           = null;
                Struct           = e.NewStructuring;
                tb_alg_name.Text = e.NewStructuringInfo.AlgorithmName;

                rc_graphic.SeriesMappings = new SeriesMappingCollection();

                List <SeriesMapping> sm = TelerikUtils.InitBubbleChart(Struct, att_x, att_y);

                foreach (SeriesMapping item in sm)
                {
                    rc_graphic.SeriesMappings.Add(item);
                }

                rc_graphic.ItemsSource = null;
                rc_graphic.ItemsSource = TelerikUtils.FillBubbleChartData(Struct, att_x, att_y);
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }
Example #3
0
 private void AxisYStripLinesChecked(object sender, RoutedEventArgs e)
 {
     try
     {
         CheckBox temp = sender as CheckBox;
         TelerikUtils.SetAxisYStripLinesVisibility(temp, Rc_att);
     }
     catch (Exception _ex)
     {
         GeneralTools.Tools.WriteToLog(_ex);
     }
 }
Example #4
0
        private void Bar3DUnchecked(object sender, RoutedEventArgs e)
        {
            try
            {
                SeriesMapping _series = TelerikUtils.InitChart2D(att_objetive, Rc_att);
                Rc_att.SeriesMappings.Clear();
                Rc_att.SeriesMappings.Add(_series);

                List <DataPoint> _temp = TelerikUtils.FillChartData(att_objetive);
                Rc_att.ItemsSource = null;
                Rc_att.ItemsSource = _temp;
            }
            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);
            }
        }
Example #6
0
        public void UpdateSet(Set set)
        {
            try
            {
                sp_cboxs.Visibility = Visibility.Visible;

                Cb_objetive.ItemsSource       = null;
                Cb_objetive.ItemsSource       = set.Attributes.Values;
                Cb_objetive.DisplayMemberPath = "Name";

                if (set.Attributes.Values.Count > 0)
                {
                    Cb_objetive.SelectedIndex = Cb_objetive.Items.Count - 1;
                }
                ;

                TelerikUtils.SetAnimationsSettings(Rc_att);
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }
Example #7
0
        private void RadComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            try
            {
                if (Cb_objetive.SelectedIndex != -1)
                {
                    att_objetive = (ClusterEnsemble.Attribute)Cb_objetive.SelectedItem;
                    Rc_att.DefaultView.ChartArea.AxisX.Title = att_objetive.Name;
                    SeriesMapping _series = TelerikUtils.InitChart(att_objetive, Rc_att, DCheckBox);
                    Rc_att.SeriesMappings.Clear();
                    Rc_att.SeriesMappings.Add(_series);
                    List <DataPoint> _temp = TelerikUtils.FillChartData(att_objetive);

                    if ((bool)DCheckBox.IsChecked)
                    {
                        TelerikUtils.ChartAreaZoom(Rc_att);
                    }

                    Rc_att.ItemsSource = null;

                    //if (IContainerProgressBar != null)
                    //{
                    //    IContainerProgressBar.ResetProgressBar(1, 1, true);
                    //    IContainerProgressBar.UpdateProgressBar(1, "Loading Data Series...", true);
                    //}

                    Rc_att.ItemsSource = _temp;

                    //if (IContainerProgressBar != null)
                    //    IContainerProgressBar.FinishPB();
                }
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }