public void GetEntityLogo(string entityCode) { SMT.Saas.Tools.PermissionWS.PermissionServiceClient client = new SMT.Saas.Tools.PermissionWS.PermissionServiceClient(); client.GetSysMenuByEntityCodeCompleted += new EventHandler<SMT.Saas.Tools.PermissionWS.GetSysMenuByEntityCodeCompletedEventArgs>(client_GetSysMenuByEntityCodeCompleted); client.GetSysMenuByEntityCodeAsync(entityCode); }
public void SetRowLogo(DataGrid DtGrid, DataGridRow row, string entityCode) { if (DtGrid.ItemsSource == null) { return; } Image logo = DtGrid.Columns[0].GetCellContent(row).FindName("entityLogo") as Image; if (logo == null) { return; } if (Application.Current.Resources["RowLogo" + entityCode] != null) { string strPpath = Application.Current.Resources["RowLogo" + entityCode].ToString(); logo.Margin = new Thickness(2, 2, 0, 0); logo.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(strPpath, UriKind.Relative)); return; } SMT.Saas.Tools.PermissionWS.PermissionServiceClient client = new SMT.Saas.Tools.PermissionWS.PermissionServiceClient(); client.GetSysMenuByEntityCodeCompleted += new EventHandler <SMT.Saas.Tools.PermissionWS.GetSysMenuByEntityCodeCompletedEventArgs>(client_GetSysMenuByEntityCodeCompleted); client.GetSysMenuByEntityCodeAsync(entityCode); //if (string.IsNullOrEmpty(EntityLogo)) //{ // SMT.Saas.Tools.PermissionWS.PermissionServiceClient client = new SMT.Saas.Tools.PermissionWS.PermissionServiceClient(); // client.GetSysMenuByEntityCodeCompleted += new EventHandler<SMT.Saas.Tools.PermissionWS.GetSysMenuByEntityCodeCompletedEventArgs>(client_GetSysMenuByEntityCodeCompleted); // client.GetSysMenuByEntityCodeAsync(entityCode, logo); //} //else //{ // logo.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(EntityLogo, UriKind.Relative)); //} }
public void SetRowLogo(DataGrid DtGrid, DataGridRow row, string entityCode) { if (DtGrid.ItemsSource == null) { return; } Image logo = DtGrid.Columns[0].GetCellContent(row).FindName("entityLogo") as Image; if (logo == null) { return; } if (Application.Current.Resources["RowLogo" + entityCode] != null) { string strPpath = Application.Current.Resources["RowLogo" + entityCode].ToString(); logo.Margin = new Thickness(2, 2, 0, 0); logo.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(strPpath, UriKind.Relative)); return; } SMT.Saas.Tools.PermissionWS.PermissionServiceClient client = new SMT.Saas.Tools.PermissionWS.PermissionServiceClient(); client.GetSysMenuByEntityCodeCompleted += new EventHandler<SMT.Saas.Tools.PermissionWS.GetSysMenuByEntityCodeCompletedEventArgs>(client_GetSysMenuByEntityCodeCompleted); client.GetSysMenuByEntityCodeAsync(entityCode); //if (string.IsNullOrEmpty(EntityLogo)) //{ // SMT.Saas.Tools.PermissionWS.PermissionServiceClient client = new SMT.Saas.Tools.PermissionWS.PermissionServiceClient(); // client.GetSysMenuByEntityCodeCompleted += new EventHandler<SMT.Saas.Tools.PermissionWS.GetSysMenuByEntityCodeCompletedEventArgs>(client_GetSysMenuByEntityCodeCompleted); // client.GetSysMenuByEntityCodeAsync(entityCode, logo); //} //else //{ // logo.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(EntityLogo, UriKind.Relative)); //} }
public void GetEntityLogo(string entityCode) { SMT.Saas.Tools.PermissionWS.PermissionServiceClient client = new SMT.Saas.Tools.PermissionWS.PermissionServiceClient(); client.GetSysMenuByEntityCodeCompleted += new EventHandler <SMT.Saas.Tools.PermissionWS.GetSysMenuByEntityCodeCompletedEventArgs>(client_GetSysMenuByEntityCodeCompleted); client.GetSysMenuByEntityCodeAsync(entityCode); }