private Color rColor; //Rectangle color

        #endregion Fields

        #region Constructors

        public MainWindow()
        {
            InitializeComponent();

            draw = new Draw(drawingPad);
            dataset = new Dataset();
            restrictDataset = new Dataset();
            lstPoint = new List<DPoint>();

            //Initialize
            chkRed.IsChecked = true;
            chkSingle.IsChecked = true;
            pColor = Color.FromArgb(255, 255, 0, 0);
            rColor = Color.FromArgb(70, 0, 150,150);
            pType = Draw.PointType.Single;
            pSign = 1;
            isMouseDown = false;
            cbFunction.Items.Add("Spectral Graph for GB-S3VDD");
            cbFunction.Items.Add("Spectral Graph");
            cbFunction.Items.Add("Clustering");
            cbFunction.SelectedIndex = 0;
        }
        public MainWindow()
        {
            InitializeComponent();

            draw            = new Draw(drawingPad);
            dataset         = new Dataset();
            restrictDataset = new Dataset();
            lstPoint        = new List <DPoint>();

            //Initialize
            chkRed.IsChecked    = true;
            chkSingle.IsChecked = true;
            pColor      = Color.FromArgb(255, 255, 0, 0);
            rColor      = Color.FromArgb(70, 0, 150, 150);
            pType       = Draw.PointType.Single;
            pSign       = 1;
            isMouseDown = false;
            cbFunction.Items.Add("Spectral Graph for GB-S3VDD");
            cbFunction.Items.Add("Spectral Graph");
            cbFunction.Items.Add("Clustering");
            cbFunction.SelectedIndex = 0;
        }
 private void chkSparse_Click(object sender, RoutedEventArgs e)
 {
     chkSingle.IsChecked = false;
     chkDense.IsChecked = false;
     pType = Draw.PointType.Sparse;
 }
 private void chkDense_Click(object sender, RoutedEventArgs e)
 {
     chkSparse.IsChecked = false;
     chkSingle.IsChecked = false;
     pType = Draw.PointType.Dense;
 }