Example #1
0
 public static void SetTableHeader(DataGridView dataGridView)
 {
     dataGridView.Columns[1].HeaderCell.Value = DataMessage.Displaytime();
     dataGridView.Columns[2].HeaderCell.Value = DataMessage.DisplaycallerNum();
     dataGridView.Columns[3].HeaderCell.Value = DataMessage.DisplayemployeeNum();
     dataGridView.Columns[4].HeaderCell.Value = DataMessage.Displaytype();
     dataGridView.Columns[5].HeaderCell.Value = DataMessage.Displaystatus();
 }
Example #2
0
        public void SetTableHeader()
        {
            this.waitingDataGridView.Columns[1].HeaderCell.Value = DataMessage.Displaytime();
            this.waitingDataGridView.Columns[2].HeaderCell.Value = DataMessage.DisplaycallerNum();
            this.waitingDataGridView.Columns[3].HeaderCell.Value = DataMessage.DisplayemployeeNum();
            this.waitingDataGridView.Columns[4].HeaderCell.Value = DataMessage.Displaytype();

            this.allDataGridView.Columns[1].HeaderCell.Value = DataMessage.Displaytime();
            this.allDataGridView.Columns[2].HeaderCell.Value = DataMessage.DisplaycallerNum();
            this.allDataGridView.Columns[3].HeaderCell.Value = DataMessage.DisplayemployeeNum();
            this.allDataGridView.Columns[4].HeaderCell.Value = DataMessage.Displaytype();
            this.allDataGridView.Columns[5].HeaderCell.Value = DataMessage.Displaystatus();
        }
Example #3
0
 private void tablelistView_SelectedIndexChanged(object sender, EventArgs e)
 {
     headers = new List <TableHeader>();
     foreach (ListViewItem item in tablelistView.SelectedItems)
     {
         if (item.Text == GlobalData.GlobalLanguage.call_message)
         {
             headers.Add(new TableHeader {
                 oldheader = DataMessage.Displaytime()
             });
             headers.Add(new TableHeader {
                 oldheader = DataMessage.DisplaycallerNum()
             });
             headers.Add(new TableHeader {
                 oldheader = DataMessage.DisplayemployeeNum()
             });
             headers.Add(new TableHeader {
                 oldheader = DataMessage.Displaytype()
             });
             headers.Add(new TableHeader {
                 oldheader = DataMessage.Displaystatus()
             });
             headers.Add(new TableHeader {
                 oldheader = DataMessage.DisplaycallZone()
             });
         }
         else if (item.Text == GlobalData.GlobalLanguage.employ_info)
         {
             headers.Add(new TableHeader {
                 oldheader = Employee.DisplayemployeeNum()
             });
             headers.Add(new TableHeader {
                 oldheader = Employee.Displayname()
             });
             headers.Add(new TableHeader {
                 oldheader = Employee.Displayphonenum()
             });
             headers.Add(new TableHeader {
                 oldheader = Employee.Displayremarks()
             });
             headers.Add(new TableHeader {
                 oldheader = Employee.Displaysex()
             });
         }
         dataGridView.DataSource = headers;
         dataGridView.Refresh();
     }
 }