• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ToolsSmartPartInfo类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ToolsSmartPartInfo的典型用法代码示例。如果您正苦于以下问题:C# ToolsSmartPartInfo类的具体用法?C# ToolsSmartPartInfo怎么用?C# ToolsSmartPartInfo使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ToolsSmartPartInfo类属于命名空间,在下文中一共展示了ToolsSmartPartInfo类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
    }
开发者ID:ssommerfeldt,项目名称:TAC_EAB,代码行数:34,代码来源:AddEditStage.ascx.cs


示例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;
 }
开发者ID:Saleslogix,项目名称:SLXSocial,代码行数:7,代码来源:SocialUpdates.ascx.cs


示例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;
    }
开发者ID:ssommerfeldt,项目名称:TAC_MAT,代码行数:12,代码来源:RemoteDocumentsWhatsNew.ascx.cs


示例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;
    }
开发者ID:vishalrajpure,项目名称:SLX_V81_BD_VFS,代码行数:25,代码来源:InsertEvent.ascx.cs


示例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;
 }
开发者ID:ssommerfeldt,项目名称:TAC_EAB,代码行数:38,代码来源:ImportHistoryDuplicates.ascx.cs


示例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;
    }
开发者ID:ssommerfeldt,项目名称:TAC_MAT,代码行数:12,代码来源:RemoteNotesWhatsNew.ascx.cs


示例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;
    }
开发者ID:ssommerfeldt,项目名称:TAC_MAT,代码行数:40,代码来源:ImportHistoryDuplicates.ascx.cs


示例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;
 }
开发者ID:ssommerfeldt,项目名称:TAC_TAC,代码行数:7,代码来源:TLXTaskManagement.ascx.cs


示例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;
    }
开发者ID:RyanTest,项目名称:SalesLogix_Eval,代码行数:40,代码来源:AddEditTask.ascx.cs


示例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;
    }
开发者ID:ssommerfeldt,项目名称:TAC_EAB,代码行数:59,代码来源:AddEditAccountAssociation.ascx.cs


示例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;
 }
开发者ID:ssommerfeldt,项目名称:TAC_TAC,代码行数:8,代码来源:ProjectTaskQuickAdd.ascx.cs


示例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;
    }
开发者ID:CustomerFX,项目名称:SalesLogixBackgroundTasks,代码行数:8,代码来源:TaskConsole.ascx.cs


示例13: GetSmartPartInfo

    public override Sage.Platform.Application.UI.ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
    {
        ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();

        tinfo.Title = GetLocalResourceObject("DialogTitle").ToString();

        return tinfo;
    }
开发者ID:ssommerfeldt,项目名称:TAC_MAT,代码行数:8,代码来源:HistoryDetailsManager.ascx.cs


示例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;
    }
开发者ID:vishalrajpure,项目名称:SLX_V81_BD_VFS,代码行数:57,代码来源:AddAccountAddress.ascx.cs


示例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;
 }
开发者ID:vishalrajpure,项目名称:SLX_V81_BD_VFS,代码行数:14,代码来源:SearchResults.ascx.cs


示例16: 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 this.pnlDeDup_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
开发者ID:ssommerfeldt,项目名称:TAC_TAC,代码行数:14,代码来源:DeDupWizard.ascx.cs


示例17: 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)
 {
     var tinfo = new ToolsSmartPartInfo();
     foreach (Control c in UserClientSystem_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
开发者ID:ssommerfeldt,项目名称:TAC_EAB,代码行数:14,代码来源:UserClientSystem.ascx.cs


示例18: GetSmartPartInfo

 public ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     var tinfo = new ToolsSmartPartInfo();
     foreach (Control c in wnTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
开发者ID:ssommerfeldt,项目名称:TAC_EAB,代码行数:9,代码来源:ActivityCalendar.ascx.cs


示例19: GetSmartPartInfo

 /// <summary>
 /// Tries to retrieve smart part information compatible with type
 /// smartPartInfoType.
 /// </summary>
 /// <param name="smartPartInfoType">Type of information to retrieve.</param>
 /// <returns>
 /// The <see cref="T:Sage.Platform.Application.UI.ISmartPartInfo"/> instance or null if none exists in the smart part.
 /// </returns>
 public override ISmartPartInfo GetSmartPartInfo(Type smartPartInfoType)
 {
     ToolsSmartPartInfo tinfo = new ToolsSmartPartInfo();
     foreach (Control c in ICUpdatePricing_RTools.Controls)
     {
         tinfo.RightTools.Add(c);
     }
     return tinfo;
 }
开发者ID:ssommerfeldt,项目名称:TAC_CFX,代码行数:17,代码来源:ICUpdatePricing.ascx.cs


示例20: 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();
     Label lbl = new Label();
     lbl.Text = GetLocalResourceObject("NewDocuments_Title").ToString();
     tinfo.ImagePath = Page.ResolveClientUrl("~/images/icons/Library_3D_32x32.gif");
     tinfo.LeftTools.Add(lbl);
     return tinfo;
 }
开发者ID:ssommerfeldt,项目名称:TAC_EAB,代码行数:14,代码来源:RemoteDocumentsWhatsNew.ascx.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Topic类代码示例发布时间:2022-05-24
下一篇:
C# Toolkit类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap