本文整理汇总了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;
}
示例2: setModeCheckbox
public void setModeCheckbox(EditMode mode)
{
if (mode == EditMode.Add)
this.radioButtonAdd.IsChecked = true;
if (mode == EditMode.Subtract)
this.radioButtonSubtract.IsChecked = true;
}
示例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();
}
示例4: SetData
public void SetData(EditMode editMode,AIClipGroup clipGroup, AIClip dataToEdit, OnCreateNew createCallBack)
{
mDataUnit = dataToEdit;
mClipGroup = clipGroup;
mMode = editMode;
onCreateNew = createCallBack;
}
示例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();
}
}
示例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;
}
}
示例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];
}
示例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;
}
示例9: FrmEditSourcingNote
public FrmEditSourcingNote(SourcingNoteType sourcingNote)
{
InitializeComponent();
mEditMode = EditMode.EditExisting;
mSourcingNote = sourcingNote;
}
示例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];
}
示例11: GroupWindow
public GroupWindow(ref Services services, ref Group group, EditMode mode)
{
InitializeComponent();
this.services = services;
this.group = group;
this.mode = mode;
InitializeUI();
}
示例12: EmployeeDetailViewModel
public EmployeeDetailViewModel(IEmployeeServiceClient employeeServiceClient, int employeeId, EditMode editMode)
{
this.employeeServiceClient = employeeServiceClient;
this.editMode = editMode;
this.Departments = new ObservableCollection<DepartmentDto>();
this.LoadEmployeeDetail(employeeId);
}
示例13: PersonWindow
public PersonWindow(ref Services services, ref Person person, EditMode mode)
{
InitializeComponent();
this.services = services;
this.person = person;
this.mode = mode;
InitializeUI();
}
示例14: EditRecordViewModel
public EditRecordViewModel(PersonViewModel person, EditMode mode)
{
if (person != null)
{
_id = person.Id;
Name = person.Name;
PhoneNumber = person.PhoneNumber;
}
Mode = mode;
}
示例15: FrmEditSupplier
public FrmEditSupplier(int supplierId)
{
InitializeComponent();
mEditMode = EditMode.EditExsiting;
mSupplierId = supplierId;
ShowSupplierData();
}