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

C# EditType类代码示例

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

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



EditType类属于命名空间,在下文中一共展示了EditType类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Edit

        private int m_iStartB; //Where to Insert or Change in the "B" sequence

        #endregion Fields

        #region Constructors

        public Edit(EditType eType, int iStartA, int iStartB, int iLength)
        {
            m_eType = eType;
            m_iStartA = iStartA;
            m_iStartB = iStartB;
            m_iLength = iLength;
        }
开发者ID:pvginkel,项目名称:VisualGit,代码行数:13,代码来源:EditDataTypes.cs


示例2: RoleEditForm

        public RoleEditForm(AerospikeClient client, EditType editType, RoleRow row)
        {
            this.client = client;
            this.editType = editType;
            InitializeComponent();

            grid.AutoGenerateColumns = false;
            PrivilegeCodeColumn.DataPropertyName = "Code";
            PrivilegeCodeColumn.ValueMember = "PrivilegeCode";
            PrivilegeCodeColumn.DisplayMember = "Label";
            PrivilegeCodeColumn.DataSource = GetPrivilegeTypeBinding();
            NamespaceColumn.DataPropertyName = "Namespace";
            SetNameColumn.DataPropertyName = "SetName";

            BindingSource bindingSource = new BindingSource();

            switch (editType)
            {
                case EditType.CREATE:
                    bindingSource.DataSource = new BindingList<Privilege>();
                    break;

                case EditType.EDIT:
                    this.Text = "Edit Role";
                    nameBox.Enabled = false;
                    nameBox.Text = row.name;
                    bindingSource.DataSource = LoadPrivileges(row.privileges);
                    oldPrivileges = row.privileges;
                    break;
            }
            grid.DataSource = bindingSource;
        }
开发者ID:vonbv,项目名称:aerospike-client-csharp,代码行数:32,代码来源:RoleEditForm.cs


示例3: GetMode

        protected override CASMode GetMode(SimDescription sim, ref OutfitCategories startCategory, ref int startIndex, ref EditType editType)
        {
            editType = mEditType;

            if (mStartCategory != OutfitCategories.None)
            {
                startCategory = mStartCategory;
                startIndex = 0;
            }

            if (sim == null) 
            {
                return CASMode.Dresser;
            }
            else if (sim.IsEP11Bot)
            {
                return CASMode.EditABot;
            } 
            else if (sim.IsHuman)
            {
                return CASMode.Dresser;
            }
            else if (sim.IsHorse)
            {
                return CASMode.Tack;
            }
            else if (sim.IsCat || sim.IsADogSpecies)
            {
                return CASMode.Collar;
            }
            else
            {
                return CASMode.Dresser;
            }
        }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:35,代码来源:Dresser.cs


示例4: DiffViewLine

 public DiffViewLine(string strText, int iNumber, EditType Type, bool bEdited)
 {
     m_strText = strText;
     m_iNumber = iNumber;
     m_Type = Type;
     m_bEdited = bEdited;
 }
开发者ID:pvginkel,项目名称:VisualGit,代码行数:7,代码来源:DiffViewLines.cs


示例5: GetChangeStruct

 private static EditStruct GetChangeStruct(string source, string target, int i, int j, EditType type)
 {
     EditStruct es = new EditStruct();
     es.editType = type;
     es.editPos = i - 1;
     es.editChar = target[j - 1];
     return es;
 }
开发者ID:ZhengHzzZ,项目名称:DNAProcesser,代码行数:8,代码来源:StringCompare.cs


示例6: AddMode

        /// <summary>
        /// Set Editor to Add Mode. This method must be called before show dialog.
        /// </summary>
        public void AddMode()
        {
            OKButtonLabel = "_Save";
            OnPropertyChanged("OKButtonLabel");
            IsComplete = false;
            mode = EditType.Add;

            OnModeSet();
        }
开发者ID:o00oo00o,项目名称:MaxwellPortfolio,代码行数:12,代码来源:BaseAppEditorVM.cs


示例7: BaseAppEditorVM

        protected BaseAppEditorVM(Window w)
        {
            view = w;
            view.DataContext = this;
            view.Owner = AppData.MainWindowView;

            mode = EditType.NotSet;

            OKButtonCommand = new RelayCommand(OKAction);
            CancelButtonCommand = new RelayCommand(CancelAction);
        }
开发者ID:o00oo00o,项目名称:MaxwellPortfolio,代码行数:11,代码来源:BaseAppEditorVM.cs


示例8: Translate

        public static string Translate(EditType type)
        {
            switch (type)
            {
                case EditType.WebEdit:
                    return HtmlUtility.Encode(SR.StudyDetails_WebEdit_Description);
                case EditType.WebServiceEdit:
                    return HtmlUtility.Encode(SR.StudyDetails_WebServiceEdit_Description);
            }

            return HtmlUtility.Encode(HtmlUtility.GetEnumInfo(type).LongDescription);
        }
开发者ID:m-berkani,项目名称:ClearCanvas,代码行数:12,代码来源:EditHistoryDetailsColumn.ascx.cs


示例9: GetMode

        protected override CASMode GetMode(SimDescription sim, ref OutfitCategories startCategory, ref int startIndex, ref EditType editType)
        {
            if (!mAlwaysCAS)
            {
                if (mCAB)
                {
                    return CASMode.CreateABot;
                }
                else if (sim.IsEP11Bot)
                {
                    return CASMode.EditABot;
                }
            }

            return CASMode.Full;
        }
开发者ID:Robobeurre,项目名称:NRaas,代码行数:16,代码来源:EditInCAS.cs


示例10: GetJqColumnEditTypeValue

 public static string GetJqColumnEditTypeValue(EditType? editType)
 {
     switch (editType)
     {
         case EditType.Text:
             return string.Empty;
         case EditType.Select:
             return "select";
         case EditType.Check:
             return "checkbox";
         case EditType.TextArea:
             return "textarea";
         default:
             return string.Empty;    
     }
 }
开发者ID:nazmoonnoor,项目名称:FluentJqGrid,代码行数:16,代码来源:Utility.cs


示例11: EditForm

 public EditForm(EditType type)
 {
     this.type = type;
     page = 0;
     InitializeComponent();
     switch (type)
     {
         case EditType.InventoryEdit:
             table = "inventory";
             break;
         case EditType.CustomerEdit:
             table = "customer";
             Text = "Customer Edit";
             if (DB.Instance.CustomerPagination)
             {
                 showPagination();
             }
             break;
         case EditType.EmployeeEdit:
             table = "employee";
             Text = "Employee Edit";
             if (DB.Instance.EmployeePagination)
             {
                 showPagination();
             }
             break;
         case EditType.OrderEdit:
             table = "order";
             Text = "Order Edit";
             if (DB.Instance.OrderPagination)
             {
                 showPagination();
             }
             break;
     }
     if (EditType.OrderEdit == type) fetch(
     @"SELECT
     O.id, C.first_name, C.last_name, O.dt, sum(I.cost * OI.amount) as Total, OS.title
     FROM
     order_inventory AS OI
     INNER JOIN inventory AS I ON I.id = OI.inventory_id
     INNER JOIN `order` AS O ON O.id = OI.order_id
     INNER JOIN customer AS C ON C.id = O.customer_id
     INNER JOIN order_status AS OS ON OS.id = O.`status`
     GROUP BY OI.order_id");
     else fetchAll();
 }
开发者ID:redlive,项目名称:csis3275,代码行数:47,代码来源:EditForm.cs


示例12: OrderEdit

 public OrderEdit(uint uid, EditType et)
     : this()
 {
     Tag = et;
     query =
     @"SELECT
     O.id, O.dt, sum(I.cost * OI.amount) as Total, OS.title
     FROM
     order_inventory AS OI
     INNER JOIN inventory AS I ON I.id = OI.inventory_id
     INNER JOIN `order` AS O ON O.id = OI.order_id
     INNER JOIN customer AS C ON C.id = O.customer_id
     INNER JOIN order_status AS OS ON OS.id = O.`status`
     WHERE O.customer_id = " + uid + @"
     GROUP BY OI.order_id";
     refresh();
 }
开发者ID:redlive,项目名称:csis3275,代码行数:17,代码来源:OrderEdit.cs


示例13: EditWizardController

        // Call to load from the XIB/NIB file
        public EditWizardController (EditType type, CmisRepoCredentials credentials, string name, string remotePath, List<string> ignores, string localPath) : base ("EditWizard")
        {
            FolderName = name;
            this.Credentials = credentials;
            this.remotePath = remotePath;
            this.Ignores = new List<string>(ignores);
            this.localPath = localPath;
            this.type = type;

            Initialize ();

            Controller.OpenWindowEvent += () =>
            {
                InvokeOnMainThread (() =>
                {
                    this.Window.OrderFrontRegardless ();
                });
            };
        }
开发者ID:OpenDataSpace,项目名称:CmisSync,代码行数:20,代码来源:EditWizardController.cs


示例14: EditForm

        public EditForm(EditType EditMode,Task StartValue)
        {
            InitializeComponent();
            this.FormClosing += new FormClosingEventHandler(EditForm_FormClosing);
            _editmode = EditMode;
            _task = StartValue;
            Fill();
            switch (_editmode)
            {
                case EditType.New:
                    {
                        _task.ID = -1;
                        break;
                    }
                case EditType.Edit:
                    {

                        break;
                    }
            }
        }
开发者ID:Krasav1n,项目名称:Cource1142Krasav1n,代码行数:21,代码来源:EditForm.cs


示例15: SetType

 public static void SetType(string name)
 {
     if(name == "Brush")
     {
         editType = EditType.Brush;
     }
     else if (name == "World")
     {
         editType = EditType.World;
     }
     else if (name == "Erase")
     {
         editType = EditType.Erase;
     }
     else if (name == "Game")
     {
         editType = EditType.Game;
     }
     else
     {
         editType = EditType.None;
     }
 }
开发者ID:kbo4sho,项目名称:Swarm,代码行数:23,代码来源:StaticEditModeParameters.cs


示例16: UserEditForm

        public UserEditForm(AerospikeClient client, EditType editType, UserRow user)
        {
            this.client = client;
            this.editType = editType;

            InitializeComponent();

            switch (editType)
            {
                case EditType.CREATE:
                    SetRoles(null);
                    break;

                case EditType.EDIT:
                    this.Text = "Edit User Roles";
                    userBox.Enabled = false;
                    userBox.Text = user.name;
                    passwordBox.Enabled = false;
                    passwordVerifyBox.Enabled = false;
                    SetRoles(user.roles);
                    oldRoles = user.roles;
                    break;
            }
        }
开发者ID:Caldas,项目名称:aerospike-client-csharp,代码行数:24,代码来源:UserEditForm.cs


示例17: Edit

        /// <summary>
        /// Constructor
        /// </summary>
        public Edit(EditType type, CmisRepoCredentials credentials, string name, string remotePath, List<string> ignores, string localPath)
        {
            this.FolderName = name;
            this.Credentials = credentials;
            this.remotePath = remotePath;
            this.Ignores = ignores;
            this.localPath = localPath;
            this.type = type;

            this.CreateEdit();

            this.Deletable = true;

            this.DeleteEvent += delegate(object sender, DeleteEventArgs args) {
                args.RetVal = false;
                this.Controller.CloseWindow();
            };

            this.Controller.OpenWindowEvent += delegate
            {
                this.ShowAll();
                this.Activate();
            };
        }
开发者ID:OpenDataSpace,项目名称:CmisSync,代码行数:27,代码来源:Edit.cs


示例18: GetFirstTextEffectedByEdit

        internal Text GetFirstTextEffectedByEdit(int index, EditType type = EditType.ins)
        {
            // Make sure we are looking within an acceptable index range.
            if (index < 0 || index > HelperFunctions.GetText(Xml).Length)
                throw new ArgumentOutOfRangeException();

            // Need some memory that can be updated by the recursive search for the XElement to Split.
            int count = 0;
            Text theOne = null;

            GetFirstTextEffectedByEditRecursive(Xml, index, ref count, ref theOne, type);

            return theOne;
        }
开发者ID:kozanid,项目名称:DocX,代码行数:14,代码来源:Paragraph.cs


示例19: CommandHelper

 public CommandHelper(string tableName, EditType editType)
 {
     TableName = tableName;
     EditType = editType;
 }
开发者ID:rongxiong,项目名称:Scut,代码行数:5,代码来源:CommandHelper.cs


示例20: OnTileEdit

        private static bool OnTileEdit(TSPlayer ply, int x, int y, EditAction action, EditType editDetail, short editData, byte style)
        {
            if (TileEdit == null)
                return false;

            var args = new TileEditEventArgs
            {
                Player = ply,
                X = x,
                Y = y,
                Action = action,
                EditData = editData,
                editDetail = editDetail,
                Style = style
            };
            TileEdit.Invoke(null, args);
            return args.Handled;
        }
开发者ID:CXUtk,项目名称:TShock,代码行数:18,代码来源:GetDataHandlers.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# EditUserViewModel类代码示例发布时间:2022-05-24
下一篇:
C# EditText类代码示例发布时间: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