private void Button5_Click(object sender, System.EventArgs e) { SaveFileDialog SaveHere = new SaveFileDialog(); SaveHere.Filter = "AICMD files (*.aicmd)|*.aicmd"; SaveHere.FilterIndex = 2; SaveHere.RestoreDirectory = true; if (SaveHere.ShowDialog() == System.Windows.Forms.DialogResult.OK) { AICMDFile.ScrollToCaret(); AICMDFile.AppendText(System.Environment.NewLine + System.Environment.NewLine); AICMDFile.SaveFile(SaveHere.FileName, RichTextBoxStreamType.PlainText); AICMDFile.Clear(); } }
private void DelButton_Click(object sender, System.EventArgs e) { string[] myData = null; string lines = null; string outputString = null; lines = ActualCoords.Text; myData = lines.Split('\n'); outputString = string.Join("\n", myData, 0, myData.Length - 1); ActualCoords.Clear(); ActualCoords.AppendText(outputString); lines = AICMDFile.Text; myData = lines.Split('\n'); outputString = string.Join("\n", myData, 0, myData.Length - 1); AICMDFile.Clear(); AICMDFile.AppendText(outputString); }
private void ClearButton_Click(object sender, System.EventArgs e) { ActualCoords.Clear(); AICMDFile.Clear(); }