本文整理汇总了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);
}
示例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);
}
}
示例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;
}
示例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);
}
}
}
示例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;
}
}
示例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;
}
}