当前位置: 首页>>代码示例>>C#>>正文


C# DevExpress.GetType方法代码示例

本文整理汇总了C#中DevExpress.GetType方法的典型用法代码示例。如果您正苦于以下问题:C# DevExpress.GetType方法的具体用法?C# DevExpress.GetType怎么用?C# DevExpress.GetType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在DevExpress的用法示例。


在下文中一共展示了DevExpress.GetType方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetReportPath

 public static string GetReportPath(DevExpress.XtraReports.UI.XtraReport fReport, string ext)
 {
     System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly();
     string repName = fReport.Name;
     if(repName.Length == 0) repName = fReport.GetType().Name;
     string dirName = Path.GetDirectoryName(asm.Location);
     return Path.Combine(dirName, repName + "." + ext);
 }
开发者ID:BillyWu,项目名称:Granitypark,代码行数:8,代码来源:PreviewControl.cs

示例2: Visit

 public override object Visit(DevExpress.Data.Filtering.OperandValue operand)
 {
     if (operand.GetType().FullName == "DevExpress.Persistent.Base.CriteriaWrapperOperandParameter") //Non Public Type
     {
         return new CriteriaToStringVisitResult(ValueToString(operand.Value));
     }
     else
     {
         return base.Visit(operand);
     }
 }
开发者ID:derjabkin,项目名称:eXpand,代码行数:11,代码来源:CriteriaToStringWrapperSubstituteProcessor.cs

示例3: HookShowForm

 public bool HookShowForm(DevExpress.XtraEditors.XtraForm frm)
 {
     //Lấy tên của các warning của form đưa vào biến names.
     string frmName = frm.GetType().Name;
     //warSystem = WarningSupport.StartWarning(frmName);
     return true;
 }
开发者ID:khanhdtn,项目名称:my-fw-win,代码行数:7,代码来源:PlugIn.cs

示例4: SaveCaption

 private void SaveCaption(DevExpress.XtraTab.XtraTabPage ctrPage, Form pForm, string pLanguage)
 {
     InsertControl(pForm.Name, ctrPage.GetType().FullName, ctrPage.Name, ctrPage.Text, pLanguage, "");
     foreach (Control ctr in ctrPage.Controls)
     {
         if (strControlNotSave.Contains(ctr.GetType().Name))
         {
             continue;
         }
         else
         {
             CallSaveCaption(ctr.GetType().Name, ctr, pForm, pLanguage);
         }
     }
 }
开发者ID:vanloc0301,项目名称:hugate-parking,代码行数:15,代码来源:clsMain.cs

示例5: ResetLayout

        public void ResetLayout(DevExpress.XtraGrid.Views.Grid.GridView view, string gridName)
        {
            RegUtils.DeleteSetting("GridLayout\\" + gridName);
            view.ClearColumnsFilter();
            view.ClearGrouping();
            view.ClearSorting();

            if (view.GetType() == typeof(DevExpress.XtraGrid.Views.BandedGrid.BandedGridView))
            {
                var bandedView = (DevExpress.XtraGrid.Views.BandedGrid.BandedGridView) view;
                foreach (DevExpress.XtraGrid.Views.BandedGrid.GridBand band in bandedView.Bands)
                    band.Visible=true;
            }
        }
开发者ID:jb3622,项目名称:Serrano,代码行数:14,代码来源:BaseParameters.cs

示例6: showSub

        private void showSub(DevExpress.XtraBars.BarItem ctl, out  bool IsVisible)
        {
            IsVisible = false;
            try
            {
                if (ctl.GetType().ToString() == "DevExpress.XtraBars.BarButtonItem")
                {
                    string strForm = ctl.Tag.ToString() + ".cs";
                    if (Common._dicRoleInfo.ContainsKey(strForm))
                    {
                        string str = Common._dicRoleInfo[strForm];
                        if (Common._dicRoleInfo[strForm] == "1")
                        {
                            ctl.Visibility = BarItemVisibility.Always;
                            IsVisible = true;
                        }
                        else
                        {
                            ctl.Visibility = BarItemVisibility.Never;
                        }
                    }
                    else
                    {

                        ctl.Visibility = BarItemVisibility.Never;
                    }
                }
                if (ctl.GetType().ToString() == "DevExpress.XtraBars.BarSubItem")
                {
                    DevExpress.XtraBars.BarSubItem ct = (DevExpress.XtraBars.BarSubItem)ctl;
                    foreach (DevExpress.XtraBars.LinkPersistInfo item in ct.LinksPersistInfo)
                    {
                        bool TempVisible = false;
                        showSub(item.Item, out TempVisible);
                        item.Visible = TempVisible;
                        //用或运算将值传给上成BarSubItem
                        IsVisible = IsVisible || TempVisible;
                    }
                }


            }
            catch (Exception ex)
            {

                throw ex;
            }
        }
开发者ID:xlgwr,项目名称:producting,代码行数:48,代码来源:frmMenu.cs


注:本文中的DevExpress.GetType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。