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 Button3_Click(object sender, System.EventArgs e) { SaveFileDialog SaveHere = new SaveFileDialog(); SaveHere.Filter = "KML files (*.kml)|*.kml"; SaveHere.FilterIndex = 2; SaveHere.RestoreDirectory = true; if (SaveHere.ShowDialog() == System.Windows.Forms.DialogResult.OK) { FluffBefore.AppendText(ActualCoords.Text); FluffBefore.AppendText(FluffAfter.Text); FluffBefore.SaveFile(SaveHere.FileName, RichTextBoxStreamType.PlainText); FluffBefore.Undo(); FluffBefore.Undo(); ActualCoords.Clear(); } }
private void ClearButton_Click(object sender, System.EventArgs e) { ActualCoords.Clear(); AICMDFile.Clear(); }