public MainForm() { InitializeComponent(); GraphControl = new GraphSharpControl(); elementHost1.Child = GraphControl; }
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(); }
private void NewGraph() { GraphControl = new GraphSharpControl(this); elementHost1.Child = GraphControl; }