void OnRemarkObjectChanging(IRemark oldValue, IRemark newValue, CancelEventArgs e) { if (oldValue != null && IsEditMode) { htmlEditor.EndEdit(); if (htmlEditor.Modified) { var msg = Lang._("The content has changed, do you want to accept the changes?"); var dr = this.ShowMessage(msg, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); switch (dr) { case System.Windows.Forms.DialogResult.Yes: oldValue.Remark = Remark; break; case System.Windows.Forms.DialogResult.No: break; case System.Windows.Forms.DialogResult.Cancel: e.Cancel = true; break; } } } }
/// <summary> Create a new factory.</summary> /// <param name="empty">If <code>true</code>, creates an empty factory, /// otherwise create a new factory with all tags registered. /// </param> public PrototypicalNodeFactory(bool empty) { Clear(); mText = new TextNode(null, 0, 0); mRemark = new RemarkNode(null, 0, 0); mTag = new TagNode(null, 0, 0, null); if (!empty) { RegisterTags(); } }
public void ShowDialog(IRemark remarkObject, bool readOnly) { this.RemarkObject = remarkObject; this.ReadOnly = readOnly; if (remarkObject != null) { if (!Visible) { this.Show(Program.MainForm); } } else { if (Visible) { this.Hide(); } } }
protected virtual void OnCurrentObjectChanged(IRemark old) { if (old != null) { old.RemarkChanged -= CurrentObject_RemarkChanged; } htmlEditor.Modified = false; if (CurrentObject != null) { htmlEditor.Text = CurrentObject.Remark; htmlEditor.Enabled = true; CurrentObject.RemarkChanged += CurrentObject_RemarkChanged; } else { htmlEditor.Text = null; htmlEditor.Enabled = false; } }
/// <summary> /// /// </summary> /// <param name="remarkNode"></param> public override void VisitRemarkNode(IRemark remarkNode) { modifiedResult.Append(remarkNode.ToHtml()); }
public RemarkController(IRemark remark) { this.remark = remark; }
public InvalidComparisionResult(string difference) { this.remark = new Remark(difference); }
public JobRoleController(IJobRole serve, IActivity activitity, IRemark remark) { this.serve = serve; this.activitity = activitity; this.remark = remark; }
/// <summary> /// This method copy's each database field which is in the <paramref name="includedColumns"/> /// from the <paramref name="source"/> interface to this data row. /// </summary> public void Copy_From_But_TakeOnly(IRemark source, params string[] includedColumns) { if (includedColumns.Contains(RemarksTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(RemarksTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(RemarksTable.BereichCol)) this.Bereich = source.Bereich; if (includedColumns.Contains(RemarksTable.AnmerkungCol)) this.Anmerkung = source.Anmerkung; if (includedColumns.Contains(RemarksTable.AnmerkungKurzTextCol)) this.AnmerkungKurzText = source.AnmerkungKurzText; if (includedColumns.Contains(RemarksTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; if (includedColumns.Contains(RemarksTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus; if (includedColumns.Contains(RemarksTable.LastModifiedByCol)) this.LastModifiedBy = source.LastModifiedBy; if (includedColumns.Contains(RemarksTable.CreatedByCol)) this.CreatedBy = source.CreatedBy; if (includedColumns.Contains(RemarksTable.AccessRightsIdCol)) this.AccessRightsId = source.AccessRightsId; if (includedColumns.Contains(RemarksTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
public FailedByExceptionResult(Exception reason) { this.remark = new Remark(reason.Message); }
/// <summary> Called for each <code>RemarkNode</code> visited.</summary> /// <param name="remark">The remark node being visited. /// </param> public virtual void VisitRemarkNode(IRemark remark) { }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IRemark target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.Bereich = this.Bereich; target.Anmerkung = this.Anmerkung; target.AnmerkungKurzText = this.AnmerkungKurzText; target.ModifyTimeStamp = this.ModifyTimeStamp; target.ProcessingStatus = this.ProcessingStatus; target.LastModifiedBy = this.LastModifiedBy; target.CreatedBy = this.CreatedBy; target.AccessRightsId = this.AccessRightsId; target.LastUpdateToken = this.LastUpdateToken; }
public ActivitityController(IActivity serve, IRemark remark) { this.serve = serve; this.remark = remark; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IRemark source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.Bereich = source.Bereich; this.Anmerkung = source.Anmerkung; this.AnmerkungKurzText = source.AnmerkungKurzText; this.ModifyTimeStamp = source.ModifyTimeStamp; this.ProcessingStatus = source.ProcessingStatus; this.LastModifiedBy = source.LastModifiedBy; this.CreatedBy = source.CreatedBy; this.AccessRightsId = source.AccessRightsId; this.LastUpdateToken = source.LastUpdateToken; }