private void frm_Mul2Sin_Load(object sender, EventArgs e) { changeLine = new ColintoLine(); logtofile = new BasicLog(); aboutBox = new About(); logtofile.Info($"Logging starts."); logtofile.Trace($" Object is {changeLine.ToString()}"); logtofile.Trace($" Objetc is {logtofile.ToString()}"); btn_copytext.Enabled = false; logtofile.Info($" There are not issues in this point, continue."); txt_Info.Text = aboutBox.TheText; }
private void btn_convert_Click(object sender, EventArgs e) { if (txt_lines.Lines.Length > 0 || txt_lines.Text != string.Empty) { changeLine.multiLines = txt_lines.Lines; changeLine.ConvertLinesToSingle(); txt_single_line.Text = changeLine.singleLine; btn_copytext.Enabled = true; logtofile.Info($"Lines to change : {Environment.NewLine}{txt_lines.Text.ToString()}"); logtofile.Info($"Lines pasted : {txt_lines.Lines.Length}"); logtofile.Info($"Lines processed : {changeLine.totalLines}"); logtofile.Trace($"single line recovered : {Environment.NewLine} {changeLine.singleLine}"); // TODO: To check if this does not interrupt the flow logic // Clear the lines already changed txt_lines.Clear(); } }