本文整理汇总了C#中ToolsSmartPartInfo类的典型用法代码示例。如果您正苦于以下问题:C# ToolsSmartPartInfo类的具体用法?C# ToolsSmartPartInfo怎么用?C# ToolsSmartPartInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ToolsSmartPartInfo类属于命名空间,在下文中一共展示了ToolsSmartPartInfo类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetSmartPartInfo
/// <summary>
/// Gets the smart part info.
/// </summary>
/// <param name="smartPartInfoType">Type of the smart part info.</param>
/// <returns></returns>
public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
if (BindingSource != null)
{
if (BindingSource.Current != null)
{
tinfo.Title = _stage.Id != null
? (_mode == "Complete"
? GetLocalResourceObject("DialogTitleComplete").ToString()
: GetLocalResourceObject("DialogTitleEdit").ToString())
: GetLocalResourceObject("DialogTitleAdd").ToString();
}
}
foreach (Control c in Form_LTools.Controls)
{
tinfo.LeftTools.Add(c);
}
foreach (Control c in Form_CTools.Controls)
{
tinfo.CenterTools.Add(c);
}
foreach (Control c in Form_RTools.Controls)
{
tinfo.RightTools.Add(c);
}
return tinfo;
}
示例2: GetSmartPartInfo
public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo ti = new ToolsSmartPartInfo();
ti.RightTools.Add(cmdAddProfile);
ti.RightTools.Add(cmdFilter);
return ti;
}
示例3: GetSmartPartInfo
/// <summary>
/// Gets the smart part info.
/// </summary>
/// <param name="smartPartInfoType">Type of the smart part info.</param>
/// <returns></returns>
public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
//tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Library_3D_32x32.gif");
return tinfo;
}
示例4: GetSmartPartInfo
public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
if (BindingSource != null)
{
if (BindingSource.Current != null)
{
IEvent address = (IEvent)BindingSource.Current;
// txtEntityId.Value = "";// _parentEntityReference.Id.ToString();
if (_parentEntityReference is IEvent)
{
tinfo.Title = Mode.Value == "ADD" ? "Insert Event" : "Event Detail";
}
}
}
foreach (Control c in AddressForm_LTools.Controls)
tinfo.LeftTools.Add(c);
foreach (Control c in AddressForm_CTools.Controls)
tinfo.CenterTools.Add(c);
foreach (Control c in AddressForm_RTools.Controls)
tinfo.RightTools.Add(c);
return tinfo;
}
示例5: GetSmartPartInfo
/// <summary>
/// Gets the smart part info.
/// </summary>
/// <param name="smartPartInfoType">Type of the smart part info.</param>
/// <returns></returns>
public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
foreach (Control c in Controls)
{
SmartPartToolsContainer cont = c as SmartPartToolsContainer;
if (cont != null)
{
switch (cont.ToolbarLocation)
{
case SmartPartToolsLocation.Right:
foreach (Control tool in cont.Controls)
{
tinfo.RightTools.Add(tool);
}
break;
case SmartPartToolsLocation.Center:
foreach (Control tool in cont.Controls)
{
tinfo.CenterTools.Add(tool);
}
break;
case SmartPartToolsLocation.Left:
foreach (Control tool in cont.Controls)
{
tinfo.LeftTools.Add(tool);
}
break;
}
}
}
return tinfo;
}
示例6: GetSmartPartInfo
/// <summary>
/// Gets the smart part info.
/// </summary>
/// <param name="smartPartInfoType">Type of the smart part info.</param>
/// <returns></returns>
public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Note_24x24.gif");
return tinfo;
}
示例7: GetSmartPartInfo
/// <summary>
/// Gets the smart part info.
/// </summary>
/// <param name="smartPartInfoType">Type of the smart part info.</param>
/// <returns></returns>
public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
foreach (Control c in Controls)
{
SmartPartToolsContainer cont = c as SmartPartToolsContainer;
if (cont != null)
{
switch (cont.ToolbarLocation)
{
case SmartPartToolsLocation.Right:
foreach (Control tool in cont.Controls)
{
tinfo.RightTools.Add(tool);
}
break;
case SmartPartToolsLocation.Center:
foreach (Control tool in cont.Controls)
{
tinfo.CenterTools.Add(tool);
}
break;
case SmartPartToolsLocation.Left:
foreach (Control tool in cont.Controls)
{
tinfo.LeftTools.Add(tool);
}
break;
}
}
}
return tinfo;
//tinfo.ImagePath = Page.ResolveClientUrl("ImageResource.axd?scope=global&type=Global_Images&key=Companies_24x24"); return tinfo;
}
示例8: GetSmartPartInfo
public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo ti = new ToolsSmartPartInfo();
ti.Title = "Task Management";
ti.Description = "Task Management";
return ti;
}
示例9: GetSmartPartInfo
/// <summary>
/// Gets the smart part info.
/// </summary>
/// <param name="smartPartInfoType">Type of the smart part info.</param>
/// <returns></returns>
public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
if (BindingSource != null)
{
if (BindingSource.Current != null)
{
if (_task.Id != null)
{
if (_mode.ToUpper().Equals("EDIT"))
tinfo.Title = GetLocalResourceObject("DialogTitleEdit").ToString();
else
tinfo.Title = GetLocalResourceObject("DialogTitleComplete").ToString();
}
else
{
tinfo.Title = GetLocalResourceObject("DialogTitleAdd").ToString();
}
}
}
foreach (Control c in this.Form_LTools.Controls)
{
tinfo.LeftTools.Add(c);
}
foreach (Control c in this.Form_CTools.Controls)
{
tinfo.CenterTools.Add(c);
}
foreach (Control c in this.Form_RTools.Controls)
{
tinfo.RightTools.Add(c);
}
return tinfo;
}
示例10: GetSmartPartInfo
public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
if (BindingSource != null)
{
if (BindingSource.Current != null)
{
_assoc = (IAssociation)BindingSource.Current;
if (_assoc.Id != null)
{
Mode.Value = "UPDATE";
tinfo.Title = GetLocalResourceObject("DialogTitleEdit").ToString();
divFromIDDialog.Style.Add("display", "none");
divFromIDText.Style.Add("display", "blocked");
divToIDDialog.Style.Add("display", "none");
divToIDText.Style.Add("display", "blocked");
divBackRelationToAdd.Style.Add("display", "none");
divBackRelationToEdit.Style.Add("display", "blocked");
}
else
{
//new association
Mode.Value = "ADD";
tinfo.Title = GetLocalResourceObject("DialogTitleEdit").ToString();
IAccount account = GetParentEntity() as IAccount;
string Id = string.Empty;
if (account != null)
{
Id = account.Id.ToString();
}
divFromIDDialog.Style.Add("display", "none");
divFromIDText.Style.Add("display", "blocked");
divToIDDialog.Style.Add("display", "blocked");
divToIDText.Style.Add("display", "none");
divBackRelationToAdd.Style.Add("display", "blocked");
divBackRelationToEdit.Style.Add("display", "none");
hdtAccountId.Value = Id;
luFromIDDialog.LookupResultValue = account.Id;
//luToIDDialog.LookupResultValue = null;
luFromIDText.LookupResultValue = account.Id;
luFowardRelatedTo.LookupResultValue = account.Id;
}
}
}
foreach (Control c in AssociationForm_LTools.Controls)
{
tinfo.LeftTools.Add(c);
}
foreach (Control c in AssociationForm_CTools.Controls)
{
tinfo.CenterTools.Add(c);
}
foreach (Control c in AssociationForm_RTools.Controls)
{
tinfo.RightTools.Add(c);
}
return tinfo;
}
示例11: GetSmartPartInfo
public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo ti = new ToolsSmartPartInfo();
ti.Title = GetLocalResourceObject("Title").ToString();
ti.Description = ti.Title;
ti.RightTools.Add(btnSave);
return ti;
}
示例12: GetSmartPartInfo
public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
var tinfo = new ToolsSmartPartInfo();
tinfo.ImagePath = "/SlxClient/ImageResource.axd?scope=global&type=Global_Images&key=Task_Main_24x24";
tinfo.Title = "Task Console";
return tinfo;
}
示例13: GetSmartPartInfo
public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
tinfo.Title = GetLocalResourceObject("DialogTitle").ToString();
return tinfo;
}
示例14: GetSmartPartInfo
public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
if (BindingSource != null)
{
if (BindingSource.Current != null)
{
IAddress address = (IAddress)BindingSource.Current;
txtEntityId.Value = "";// _parentEntityReference.Id.ToString();
if (address.Id != null)
{
cbxIsPrimary.Enabled = (address.IsPrimary != true);
cbxIsShipping.Enabled = (address.IsMailing != true);
Mode.Value = "UPDATE";
}
else
{
Mode.Value = "ADD";
pklDecription.PickListValue = GetLocalResourceObject("DefaultDescription").ToString();
}
if (_parentEntityReference is IAccount)
{
ViewState["parentEntityID"] = _parentEntityReference.Id;
ViewState["parentEntity"] = "Account";
tinfo.Title = Mode.Value == "ADD"
? GetLocalResourceObject("DialogTitleAccountAdd").ToString()
: GetLocalResourceObject("DialogTitleAccountEdit").ToString();
}
if (_parentEntityReference is IContact)
{
ViewState["parentEntityID"] = _parentEntityReference.Id;
ViewState["parentEntity"] = "Contact";
tinfo.Title = Mode.Value == "ADD"
? GetLocalResourceObject("DialogTitleContactAdd").ToString()
: GetLocalResourceObject("DialogTitleContactEdit").ToString();
}
if (!(_parentEntityReference is IAccount || _parentEntityReference is IContact))
{
tinfo.Title = Mode.Value == "ADD"
? GetLocalResourceObject("DialogTitleAdd").ToString()
: GetLocalResourceObject("DialogTitleEdit").ToString();
}
}
}
foreach (Control c in AddressForm_LTools.Controls)
tinfo.LeftTools.Add(c);
foreach (Control c in AddressForm_CTools.Controls)
tinfo.CenterTools.Add(c);
foreach (Control c in AddressForm_RTools.Controls)
tinfo.RightTools.Add(c);
return tinfo;
}
示例15: GetSmartPartInfo
/// <summary>
/// Gets the smart part info.
/// </summary>
/// <param name="smartPartInfoType">Type of the smart part info.</param>
/// <returns></returns>
public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
{
ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
foreach (Control c in SearchResults_RTools.Controls)
{
tinfo.RightTools.Add(c);
}
return tinfo;
}