private void BtnShowClassification_Click(object sender, EventArgs e) { if (rdBtnInsideHulls.Checked) { EdgeClassificationForm cForm = new EdgeClassificationForm(MyTSP, colorManagement) { Text = string.Format("{0} - {1}", "Inside Convex Hulls", FileName) }; cForm.DrawInsideHulls(); cForm.Show(); } else if (rdBtnBetweenHulls.Checked) { EdgeClassificationForm cForm = new EdgeClassificationForm(MyTSP, colorManagement) { Text = string.Format("{0} - {1}", "Between Convex Hulls", FileName) }; cForm.DrawBetweenHulls(); cForm.Show(); } else if (rdBtnOverHulls.Checked) { EdgeClassificationForm cForm = new EdgeClassificationForm(MyTSP, colorManagement) { Text = string.Format("{0} - {1}", "Over Convex Hulls", FileName) }; cForm.DrawOverHulls(); cForm.Show(); } }
private void BtnShowGraph_Click(object sender, EventArgs e) { EdgeClassificationForm gForm = new EdgeClassificationForm(MyTSP, colorManagement); gForm.DrawGraph(); gForm.Text = string.Format("{0} - {1}", "All Edges", FileName); gForm.Show(); }
private void BtnShowExpandSpanningTree_Click(object sender, EventArgs e) { EdgeClassificationForm gForm = new EdgeClassificationForm(MyTSP, colorManagement); gForm.DrawExpandSpanningTree(); gForm.Text = string.Format("{0} - {1}", "Expand Spanning Tree", FileName); gForm.Show(); }
private void BtnShowTest_Click(object sender, EventArgs e) { EdgeClassificationForm cForm = new EdgeClassificationForm(MyTSP, colorManagement) { Text = string.Format("{0} - {1}", "Elimination Test", FileName) }; cForm.DrawTest(); cForm.Show(); }
private void BtnShowFinal_Click(object sender, EventArgs e) { if (rdBtnEliminated.Checked) { EdgeClassificationForm cForm = new EdgeClassificationForm(MyTSP, colorManagement) { Text = string.Format("{0} - {1}", "Eliminated", FileName) }; cForm.DrawFinal(true); cForm.Show(); } if (rdBtnRemained.Checked) { EdgeClassificationForm cForm = new EdgeClassificationForm(MyTSP, colorManagement) { Text = string.Format("{0} - {1}", "Remained", FileName) }; cForm.DrawFinal(false); cForm.Show(); } }