示例#1
0
        public MainForm()
        {
            InitializeComponent();

            GraphControl = new GraphSharpControl();

            elementHost1.Child = GraphControl;
        }
示例#2
0
        public MainForm()
        {
            InitializeComponent();

            GraphControl = new GraphSharpControl(this);

            elementHost1.Child = GraphControl;

            reprof_filename = "c:\\SCintro.reprof";

            using (var dialog = new OpenFileDialog {
                Title = "Open reprof file", Filter = "reprof traces|*.reprof|All files|*.*"
            })
            {
                if (dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    reprof_filename = dialog.FileName;
                }
            }

            reprof_load(reprof_filename);

            reprof();
        }
示例#3
0
        private void NewGraph()
        {
            GraphControl = new GraphSharpControl(this);

            elementHost1.Child = GraphControl;
        }