private void btSave_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (Struct != null)
                {
                    System.Windows.Forms.SaveFileDialog _dlg = new System.Windows.Forms.SaveFileDialog();
                    _dlg.Filter = "ARFF Documents (*.arff)|*.arff";
                    _dlg.FilterIndex = 1;


                    string[] names = tb_alg_name.Text.Split(' ');
                    string final_name = "";
                    foreach (string item in names)
                    {
                        final_name += item;
                    }

                    if (TabVisualize)
                        _dlg.FileName = Enviroment.Set.RelationName + "_" + final_name + "_Clusters" + Struct.ClustersCount;
                    else
                        _dlg.FileName = final_name + "_Clusters" + Struct.ClustersCount;

                    if (_dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        string dir = _dlg.FileName;
                        ArffSaver saver = new ArffSaver(dir);
                        saver.Save(Struct);
                    }
                }
            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }
        private void btSave_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                SaveFileDialog _dlg = new SaveFileDialog();
                _dlg.Filter = "ARFF Documents (*.arff)|*.arff";
                _dlg.FilterIndex = 1;

                PartitionInfo _partinf = partitionsInfo[currentIndex];
                string[] names = _partinf.AlgorithmName.Split(' ');
                string final_name = "";
                foreach (string item in names)
                {
                    final_name += item;
                }

                _dlg.FileName = Enviroment.Set.RelationName + "_" + final_name;

                if (_dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    string dir = _dlg.FileName;
                    ArffSaver saver = new ArffSaver(dir);
                    saver.Save(_partinf.Partition);
                }

            }
            catch (Exception _ex)
            {
                GeneralTools.Tools.WriteToLog(_ex);
            }
        }