public override void Greeting() { string separator = new string('#', 80); Console.WriteLine(separator); base.Greeting(); Console.WriteLine($"I have started {Program} at {Start_Date.ToString("MMMM dd, yyyy")} in ITD Canada \n" + $"I am able to develop code in the following programing langeuages"); foreach (var item in Skillset) { Console.Write(item.Key + " "); } Console.WriteLine("\n"); Console.WriteLine($"Updated : {Update_Date.ToString("MMMM dd, yyyy")}"); Console.WriteLine(separator); Console.WriteLine("\n"); }
public override void Greeting() { Console.WriteLine(string.Concat(Enumerable.Repeat("#", 70))); base.Greeting(); string res = ""; res += $" I have started {Program} at {Start_Date.ToString("MMMM dd, yyyy")} in ITD Canada\n"; res += $" I am able to develop code in the following programming languages\n"; for (int i = 0; i < Skillset.Count; i += 1) { if (Skillset.ElementAt(i).Value == true) { res += $" {Skillset.ElementAt(i).Key}"; } } res += "\n"; res += $"\nUpdated : {Update_Date.ToString("MMMM dd, yyyy")}"; Console.WriteLine(res); Console.WriteLine(string.Concat(Enumerable.Repeat("#", 70))); }
private void btnViewReport_Click(object sender, EventArgs e) { IPO_Instrument_Receive_Report_DSE_21_21_2BAL objBAL = new IPO_Instrument_Receive_Report_DSE_21_21_2BAL(); DateTime Start_Date, End_Date; Start_Date = dtpFromDate.Value; End_Date = dtpToDate.Value; Instrument_Name = ddlinstrumentName.Text; Instrument_ID = ddlInstrumentCode.Text; DataTable data = new DataTable(); frmReportViewer rptviewer = new frmReportViewer(); crIPO_Instrument_Receive_Report_DSE_21_21_2 objrpt = new crIPO_Instrument_Receive_Report_DSE_21_21_2(); data = objBAL.GetIPO_Instrument_Receive_ReportData(Start_Date, End_Date, Instrument_ID, Instrument_Name); objrpt.SetDataSource(data); ((TextObject)objrpt.Section2.ReportObjects["txtFromDate"]).Text = Start_Date.ToString("dd-MMMM-yyyy"); ((TextObject)objrpt.Section2.ReportObjects["txtToDate"]).Text = End_Date.ToString("dd-MMMM-yyyy"); rptviewer.crvReportViewer.ReportSource = objrpt; rptviewer.Show(); }
public void DisplayCourse() { Console.WriteLine($"{ CommonTools.CutString(Title, 13),-13} | {CommonTools.CutString(Stream, 13),-14} | {CommonTools.CutString(Type, 13),-13} | {Start_Date.ToString("dd/MM/yyyy"),10} | {End_Date.ToString("dd/MM/yyyy"),10} |"); }
public void OutputCourse() { Console.WriteLine($"{Title,-5 } | {Type,-10} | {Stream,-10} | {Start_Date.ToString("dd/MM/yyyy"),-10} | {End_Date.ToString("dd/MM/yyyy"),-9} |"); }
public void OutputStartDate() { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine($"Start Date: {Start_Date.ToString("dd/MM/yyyy")}"); Console.ForegroundColor = ConsoleColor.White; }