private void FillUsersComboBox() { DataTable dt = VSWebBL.DashboardBL.Office365BL.Ins.GetO365Users(); User1ComboBox.DataSource = dt; User1ComboBox.TextField = "DisplayName"; User1ComboBox.ValueField = "DisplayName"; User1ComboBox.DataBind(); User2ComboBox.DataSource = dt; User2ComboBox.TextField = "DisplayName"; User2ComboBox.ValueField = "DisplayName"; User2ComboBox.DataBind(); }
//6/1/2016 NS added for VSPLUS-3015 private void FillUsersCombo() { DataTable dt = new DataTable(); try { dt = VSWebBL.DashboardBL.ConnectionsBL.Ins.GetConnectionsUsers(selectedServer); User1ComboBox.DataSource = dt; //22/07/2016 Sowmya added for VSPLUS-3129 if (dt.Rows.Count > 0) { User1ComboBox.ValueField = "DisplayName"; User1ComboBox.TextField = "DisplayName"; } User1ComboBox.DataBind(); User2ComboBox.DataSource = dt; if (dt.Rows.Count > 0) { User2ComboBox.ValueField = "DisplayName"; User2ComboBox.TextField = "DisplayName"; } User2ComboBox.DataBind(); } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } try { dt = VSWebBL.DashboardBL.ConnectionsBL.Ins.GetStatByName(selectedServer, "NUM_OF_ACTIVITY_OWNERS"); if (dt.Rows.Count > 0) { ActivityOwnersLabel.Text = dt.Rows[0]["StatValue"].ToString(); } } catch (Exception ex) { Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }