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


C# ToolsSmartPartInfo类代码示例

本文整理汇总了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;
    }
开发者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


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