Esempio n. 1
0
 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();
 }
Esempio n. 2
0
        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;
                }
            }
        }