Netcad Netigma API Reference
INetigmaAction Interface
Members  Example  See Also  Send Feedback
Netcad.Netigma Namespace : INetigmaAction Interface


Tüm action gerçeksınıfılar gerçeklemelidir. Action bir işleme tıklanıldığında işlem yapar. INetigmaAction.Onclick metodu sunucuda çalıştırılır. Web tanımli interfacelerde gerçeklenişse arayüz hazırlayan kodlar dikkate alabilir.

Syntax

 
Visual Basic
C#
 
 

Example

C#Copy Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Netcad.Web.Controls;
using System.ComponentModel;
using Netcad.Netigma.Web.MultiLang;

namespace Netcad.Netigma.Web
{
    [Serializable]
    [NetigmaHelpId(304, MenuTitle = "Basit Web Link İşlemi", Ordinal = 0)]
    [GUIRequiredFilterAttribute(GUIRequired = GUIRequiredType.Required)]
    public class NetigmaActionWebSimpleLink : NetigmaWebActionBase, INetigmaActionWebSimpleLink
    {

        public override IWebActionResult GetClientSideActionScript(object sender, IGUIState state, ActionArgs Args)
        {
            //if (state == null) throw new ArgumentNullException("state"); 

            INetigmaDomain domain = state.GetObject(GUIObjectType.NetigmaDomain) as INetigmaDomain;

            string navigateUrl = this.Url;

            if (!string.IsNullOrEmpty(this.Url) && domain != null)
            {
                navigateUrl = domain.UpdateString(this.Url);
            }

            return new WebActionResult(this) { NavigateUrl = navigateUrl };
        }

        public override INetigmaAction Clone()
        {
            NetigmaActionWebSimpleLink clone = new NetigmaActionWebSimpleLink();
            clone.Target = this.Target;
            clone.Url = this.Url;
            return clone;
        }

        [NetigmaNonSerialized]
        [Browsable(false)]
        public override string Name
        {
            get { return "WebSimpleLink"; }
        }

        [Browsable(false)]
        public override string DisplayName
        {
            get
            {
                return ml.ml_string(395, "Web Simple Link");
            }
        }

        [WebEditor("Netcad.Netigma.Design.UrlEditor, Netcad.Netigma.Design, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
        public string Url { get; set; }

        //public string Target { get; set; }

    }
}

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2016 All Rights Reserved.