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


C# EditMode类代码示例

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


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

示例1: FrmEditDeliveryNote

        public FrmEditDeliveryNote(List<String> tranIdList)
        {
            InitializeComponent();

            mEditMode = EditMode.CreateFromTrans;
            mTranIdList = tranIdList;
        }
开发者ID:Richmandos,项目名称:ebaymaster,代码行数:7,代码来源:FrmEditDeliveryNote.cs

示例2: setModeCheckbox

 public void setModeCheckbox(EditMode mode)
 {
     if (mode == EditMode.Add)
         this.radioButtonAdd.IsChecked = true;
     if (mode == EditMode.Subtract)
         this.radioButtonSubtract.IsChecked = true;
 }
开发者ID:aepstein824,项目名称:uist,代码行数:7,代码来源:ModeSwitcher.xaml.cs

示例3: FormEditAccent

        /// <summary>
        /// Initializes a new instance of the <see cref="FormEditAccent"/> class.
        /// </summary>
        /// <param name="editMode">The edit mode.</param>
        public FormEditAccent(EditMode editMode)
        {
            //  Set the edit mode.
            this.editMode = editMode;

            InitializeComponent();
        }
开发者ID:modulexcite,项目名称:QuickAccent,代码行数:11,代码来源:FormEditAccent.cs

示例4: SetData

 public void SetData(EditMode editMode,AIClipGroup clipGroup, AIClip dataToEdit, OnCreateNew createCallBack)
 {
     mDataUnit = dataToEdit;
     mClipGroup = clipGroup;
     mMode = editMode;
     onCreateNew = createCallBack;
 }
开发者ID:Ribosome2,项目名称:MyAIEngine,代码行数:7,代码来源:AIClipEditWd.cs

示例5: AddDocumentVersionModel

        /// <summary>
        ///     WE ARE ADDING A NEW DOC VERSION
        /// </summary>
        /// <param name="document"> The document. </param>
        public AddDocumentVersionModel(Document document, AddEditDocumentVersionDialog view)
        {
            DialogView = view;
            ProgressBarView = view as IProgressBarView;

            mDocument = document;
            mDocumentId = document.Id;
            mCurrentEditMode = EditMode.Add;
            mDocumentVersion = new DocumentVersion { DocumentId = document.Id };
            mDocumentVersion.Date = DateTime.Now;

            OkButtonCommand = new DelegateCommand<object>(OkButtonHandler, CanExecuteOkButtonHandler);
            CancelButtonCommand = new DelegateCommand<object>(CancelButtonHander, CanExecuteOkButtonHandler);
            OpenFileDialogCommand = new DelegateCommand<object>(OpenFileDialogButtonHander, CanExecuteOkButtonHandler);

            mLatestVersion = (from x in document.DocumentVersions orderby x.Version descending select x).Take(1).FirstOrDefault();

            if (mLatestVersion != null)
            {
                Version = mLatestVersion.Version;
                AutoIncrementVersion = false;
                RaisePropertyChanged("AutoIncrementVersion");
            }

            if (DataModelLoaded != null)
            {
                DataModelLoaded();
            }
        }
开发者ID:barrett2474,项目名称:CMS2,代码行数:33,代码来源:AddDocumentVersionModel.cs

示例6: EditWnd

        private int newRow = 0; // numero de la prochaine ligne d'insertion

        #endregion Fields

        #region Constructors

        public EditWnd(string title, EditMode mode = EditMode.Edit)
        {
            InitializeComponent();

            // initialise l'interface
            switch (mode)
            {
                case EditMode.Edit:
                    this.Title = "Editer: " + title;
                    this.okBtn.Content = "Enregistrer";
                    break;
                case EditMode.Insert:
                    this.Title = "Nouveau: " + title;
                    this.okBtn.Content = "Ajouter";
                    break;
                case EditMode.Duplicate:
                    this.Title = "Dupliquer: " + title;
                    this.okBtn.Content = "Dupliquer";
                    break;
                default:
                    this.Title = title;
                    this.okBtn.Content = "OK";
                    break;
            }
        }
开发者ID:Ace4teaM,项目名称:Arduino-Project,代码行数:31,代码来源:EditWnd.xaml.cs

示例7: LoadViewState

 protected override void LoadViewState(object savedState)
 {
     base.LoadViewState(savedState);
     _clausePath = (string)ViewState[_KH_VSKEY_CLAUSEPATH];
     _editMode = (EditMode)ViewState[_KH_VS_EDITMODE];
     _ITATDocumentID = (Guid)ViewState[_KH_VS_ITATDOCUMENTID];
 }
开发者ID:dlnuckolls,项目名称:glorykidd-public,代码行数:7,代码来源:TemplateClauses.aspx.cs

示例8: InstrumentSourceRelationWindow

        public InstrumentSourceRelationWindow(VmInstrument vmInstrument, EditMode editMode, VmInstrumentSourceRelation vmRelation = null)
        {
            InitializeComponent();
            this._EditMode = editMode;
            this._vmInstrument = vmInstrument;
            this._originRelation = vmRelation;

            if (editMode == EditMode.AddNew)
            {
                this._Relation = new InstrumentSourceRelation() { InstrumentId = this._vmInstrument.Id, SwitchTimeout = 60, Priority = 30 };
                this._Relation.IsActive = vmInstrument.SourceRelations.Count == 0;  // Only for UI display(the backend can process normally)
                this._Relation.IsDefault = false;
                this.IsDefaultCheckBox.IsEnabled = false;
            }
            else
            {
                this._Relation = vmRelation.InstrumentSourceRelation.Clone();
                this.SourcesComboBox.IsEnabled = false;
            }
            InstrumentCodeTextBlock.Text = vmInstrument.Code;
            this.BindSourcesComboBox();
            this.DataContext = this._Relation;

            this._HintMessage = new HintMessage(this.HintTextBlock);
            this.Loaded += InstrumentSourceRelationWindow_Loaded;
        }
开发者ID:BlueSky007,项目名称:ExchangeManager,代码行数:26,代码来源:InstrumentSourceRelationWindow.xaml.cs

示例9: FrmEditSourcingNote

        public FrmEditSourcingNote(SourcingNoteType sourcingNote)
        {
            InitializeComponent();

            mEditMode = EditMode.EditExisting;

            mSourcingNote = sourcingNote;
        }
开发者ID:Richmandos,项目名称:ebaymaster,代码行数:8,代码来源:FrmEditSourcingNote.cs

示例10: LoadViewState

		protected override void LoadViewState(object savedState)
		{
			base.LoadViewState(savedState);
			_workflowId = (Guid)ViewState[_KH_VS_WORKFLOWID];
			_workflow = _template.FindWorkflow(_workflowId);
			_orgStates = (List<Business.State>)ViewState[_KH_VS_ORGSTATES];
			_workflowEditMode = (EditMode)ViewState[_KH_VS_WORKFLOWEDITMODE];
		}
开发者ID:dlnuckolls,项目名称:glorykidd-public,代码行数:8,代码来源:TemplateWorkflowMain.aspx.cs

示例11: GroupWindow

        public GroupWindow(ref Services services, ref Group group, EditMode mode)
        {
            InitializeComponent();
            this.services = services;
            this.group = group;
            this.mode = mode;

            InitializeUI();
        }
开发者ID:ChaoMai,项目名称:learning,代码行数:9,代码来源:GroupWindow.xaml.cs

示例12: EmployeeDetailViewModel

        public EmployeeDetailViewModel(IEmployeeServiceClient employeeServiceClient, int employeeId, EditMode editMode)
        {
            this.employeeServiceClient = employeeServiceClient;
            this.editMode = editMode;

            this.Departments = new ObservableCollection<DepartmentDto>();

            this.LoadEmployeeDetail(employeeId);
        }
开发者ID:thomasgalliker,项目名称:EmployeeManagement,代码行数:9,代码来源:EmployeeDetailViewModel.cs

示例13: PersonWindow

        public PersonWindow(ref Services services, ref Person person, EditMode mode)
        {
            InitializeComponent();
            this.services = services;
            this.person = person;
            this.mode = mode;

            InitializeUI();
        }
开发者ID:ChaoMai,项目名称:learning,代码行数:9,代码来源:PersonWindow.xaml.cs

示例14: EditRecordViewModel

 public EditRecordViewModel(PersonViewModel person, EditMode mode)
 {
     if (person != null)
     {
         _id = person.Id;
         Name = person.Name;
         PhoneNumber = person.PhoneNumber;
     }
     Mode = mode;
 }
开发者ID:ishadowid,项目名称:GMCS,代码行数:10,代码来源:EditRecordViewModel.cs

示例15: FrmEditSupplier

        public FrmEditSupplier(int supplierId)
        {
            InitializeComponent();

            mEditMode = EditMode.EditExsiting;

            mSupplierId = supplierId;

            ShowSupplierData();
        }
开发者ID:Richmandos,项目名称:ebaymaster,代码行数:10,代码来源:FrmEditSupplier.cs


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