예제 #1
0
        private void Dashboard_DragDrop(object sender, DragEventArgs e)
        {
            string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
            try
            {
                switch (tab_Category.SelectedIndex)
                {
                case 0:
                    break;

                case 1:
                    graphVisual      = (GraphVisualizer)JsonConvert.DeserializeObject <GraphVisualizer>(File.ReadAllText(files[0]));
                    graphVisual.pbox = pbox_graphs;
                    graphVisual.forceUpdate();

                    break;

                case 2:
                    break;

                case 3:
                    break;
                }
            }
            catch { }
        }
예제 #2
0
 public Dashboard()
 {
     InitializeComponent();
     graphVisual         = new GraphVisualizer(pbox_graphs);
     sortingVisual       = new SortingVisualizer(1, 100, this, SortingVisualizer.VisualTypes.Bars);
     this.DoubleBuffered = true;
     this.SetStyle(ControlStyles.ResizeRedraw, true);
     MinimumSize = new Size(900, 375);
 }