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


C# EditType类代码示例

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


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


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