private void GraphButt_Click(object sender, EventArgs e) { if (InputGraph.Text != "") { X.inputFromFileJembatan(InputGraph.Text); StreamReader file = new StreamReader(@InputGraph.Text); string N = file.ReadLine(); int n = Int32.Parse(N); for (int i = 1; i <= n - 1; i++) { string[] s = file.ReadLine().Split(); Edge E = Graph.AddEdge(s[0], s[1]); E.Attr.ArrowHeadAtTarget = ArrowStyle.None; } Viewer.Graph = Graph; Viewer.Dock = DockStyle.Fill; GraphForm.Controls.Add(Viewer); GraphForm.Show(); InputQuestPanel.BringToFront(); } else { MessageBox.Show("Input External First !"); } }
private void Question_Click(object sender, EventArgs e) { InputNonEx.Text = ""; InputQuestEx.Text = ""; Ways.Text = ""; InputQuestPanel.BringToFront(); }