private void BtnLoadLanguages_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; BLL_Construct <Timeperiod> myBLL = new BLL_Construct <Timeperiod>(); TxtLanguages.Text = myBLL.DisplayData(NAL.Countries); this.Cursor = Cursors.Default; }
private void BtnLoadLanguages_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; BLL_Construct <Honorific> myBLL = new BLL_Construct <Honorific>(); TxtLanguages.Text = myBLL.DisplayData(NAL.Honorifics); this.Cursor = Cursors.Default; }
private void BtnDisplay_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; List <Honorific> myList = new List <Honorific>(); BLL_Construct <Honorific> myBLL = new BLL_Construct <Honorific>(); myList = myBLL.FillList(NAL.Honorifics); string s = string.Format("{0,0}\t {1} \t{2,10}\t {3,10}\t {4,10}", "ID", "Code", "Dimi.", "Pays", "Long nom" + Environment.NewLine); TxtLanguages.AppendText(s); foreach (Honorific Cntry in myList) { s = string.Format("{0,0}\t {1}\t {2,10}\t {3,10}", Cntry.ID, Cntry.Code, Cntry.Name, Cntry.LongName + Environment.NewLine); TxtLanguages.AppendText(s); } this.Cursor = Cursors.Default; }
private void BtnDisplay_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; List <Language> myList = new List <Language>(); BLL_Construct <Language> myBLL = new BLL_Construct <Language>(); myList = myBLL.FillList(NAL.Languages); string s = string.Format("{0,0}\t {1} \t{2,5}", "ID", "Code", "Langue" + Environment.NewLine); TxtLanguages.AppendText(s); foreach (Language Lng in myList) { s = string.Format("{0,0}\t {1}\t {2,5}", Lng.ID, Lng.Code, Lng.OriginalName + Environment.NewLine); TxtLanguages.AppendText(s); } this.Cursor = Cursors.Default; }
private void BtnDisplay_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; List <Timeperiod> myList = new List <Timeperiod>(); BLL_Construct <Timeperiod> myBLL = new BLL_Construct <Timeperiod>(); myList = myBLL.FillList(NAL.TimePeriods); string s = string.Format("{0,0}\t {1,15} \t {2,15}", "ID", "Code", "Name" + Environment.NewLine); TxtLanguages.AppendText(s); TxtLanguages.AppendText("\n"); foreach (Timeperiod tp in myList) { s = string.Format("{0,0}\t {1,15} \t {2,15}", tp.ID, tp.Code, tp.Name + Environment.NewLine); TxtLanguages.AppendText(s); } this.Cursor = Cursors.Default; }