private void CreateNewFile_Click(object sender, EventArgs e) { if (graph.Nodes.Any() && SaveFileIfNecessary() == DialogResult.Cancel) { return; } cbEdgeSizeChange.Items.Clear(); graph = UiGraph.New(); graph.Changed += OnGraphUpdate; draw(); }
public MainForm() { InitializeComponent(); graph = UiGraph.New(); graph.Changed += OnGraphUpdate; for (int i = 0; i < FontFamily.Families.Length; i++) { if (FontFamily.Families[i].Name == "Impact") { fontImpactId = i; } if (FontFamily.Families[i].Name == "Cambria") { fontCambriaId = i; } } }