public TransactionEntryWindow(Guid transactionID) : this() { TransactionID = transactionID; this.Title = "Edit Transaction"; Mode = ModeValues.Edit; }
public void load(Form f, ModeValues loadMode) { if (mainEditor.CanFind) { this.initializeMode(loadMode); this.Show(f); } }
/// <summary> /// Creates a Condition based on the column passed in. /// Valid combinations are: /// 1. Send true or false for isNull, and null for conditionValue /// 2. Send null for isNull, and a non-empty string for conditionValue /// 3. Send null for isNull, and null for conditionValue /// You cannot send non-null values to both arguments. /// </summary> /// <param name="conceptualEntityType"></param> /// <param name="tableColumn"></param> /// <param name="isNull"></param> /// <param name="conditionValue"></param> internal CreateFragmentConditionCommand(EntityType conceptualEntityType, Property tableColumn, bool? isNull, string conditionValue) { CommandValidation.ValidateConceptualEntityType(conceptualEntityType); CommandValidation.ValidateTableColumn(tableColumn); ConceptualEntityType = conceptualEntityType; StorageProperty = tableColumn; IsNull = isNull; ConditionValue = conditionValue; Mode = ModeValues.EntityType; }
public TransactionEntryWindow() { InitializeComponent(); Mode = ModeValues.Add; }
private void initializeMode(ModeValues loadMode) { this.replaceGB.Visible = this.replaceTextBox.Visible = this.replaceAllButton.Visible = this.replaceButton.Visible = (loadMode == ModeValues.quickReplace); if (loadMode == ModeValues.quickReplace) { this.Size = new System.Drawing.Size(new System.Drawing.Point(300, 250)); } else { this.Size = new System.Drawing.Size(new System.Drawing.Point(300, 170)); } }
/// <summary> /// Creates a Condition in the given MappingFragment. /// Valid combinations are: /// 1. Send true or false for isNull, and null for conditionValue /// 2. Send null for isNull, and a non-empty string for conditionValue /// 3. Send null for isNull, and null for conditionValue /// You cannot send non-null values to both arguments. /// </summary> /// <param name="mappingFragment">The MappingFragment to place this Condition; cannot be null.</param> /// <param name="tableColumn">This must be a valid Property from the S-Model.</param> /// <param name="isNull"></param> /// <param name="conditionValue"></param> internal CreateFragmentConditionCommand(MappingFragment mappingFragment, Property tableColumn, bool? isNull, string conditionValue) { CommandValidation.ValidateMappingFragment(mappingFragment); CommandValidation.ValidateTableColumn(tableColumn); MappingFragment = mappingFragment; if (mappingFragment != null && mappingFragment.EntityTypeMapping != null) { ConceptualEntityType = mappingFragment.EntityTypeMapping.FirstBoundConceptualEntityType; } StorageProperty = tableColumn; IsNull = isNull; ConditionValue = conditionValue; Mode = ModeValues.MappingFragment; }
internal CreateFragmentConditionCommand(Func<Command, CommandProcessorContext, bool> bindingAction) : base(bindingAction) { Mode = ModeValues.None; }