/// <summary> /// Open form to View selected Fee /// </summary> private void ViewSelectedFee() { FeeDetail selectedFee = (FeeDetail)this.lstFees.SelectedItem; DocumentInfoFeesForm newDocumentInfoFeesForm = new DocumentInfoFeesForm(selectedFee, DocumentInfoFeesForm.FormState.ViewFee); newDocumentInfoFeesForm.ShowDialog(); }
/// <summary> /// Add Fee /// </summary> private void AddFee() { FeeDetail newFee = new FeeDetail(); newFee._ID = "-" + (new Random(DateTime.Now.Millisecond)).Next(0, 999).ToString(); newFee.CreateTimeStamp = System.DateTime.Now; newFee.EditTimeStamp = System.DateTime.Now; newFee.ActionCode = ActionCode.New; DocumentInfoFeesForm newDocumentInfoFeesForm = new DocumentInfoFeesForm(newFee, DocumentInfoFeesForm.FormState.NewFee); if (newDocumentInfoFeesForm.ShowDialog(this) == DialogResult.OK) { this.CurrentFees.Add(newFee); this._DocumentInfo.Fees = this.CurrentFees.ToArray(); this.UpdateFeesList(); } }
/// <summary> /// Open form to View selected Fee /// </summary> private void ViewSelectedFee() { FeeDetail selectedFee = (FeeDetail)this.lstFees.SelectedItem; DocumentInfoFeesForm newDocumentInfoFeesForm = new DocumentInfoFeesForm(selectedFee, DocumentInfoFeesForm.FormState.ViewFee); newDocumentInfoFeesForm.ShowDialog(); }
/// <summary> /// Add Fee /// </summary> private void AddFee() { FeeDetail newFee = new FeeDetail(); newFee._ID = "-" + (new Random(DateTime.Now.Millisecond)).Next(0, 999).ToString(); newFee.CreateTimeStamp = System.DateTime.Now; newFee.EditTimeStamp = System.DateTime.Now; newFee.ActionCode = ActionCode.New; DocumentInfoFeesForm newDocumentInfoFeesForm = new DocumentInfoFeesForm(newFee, DocumentInfoFeesForm.FormState.NewFee); if (newDocumentInfoFeesForm.ShowDialog(this) == DialogResult.OK) { this.CurrentFees.Add(newFee); this._DocumentInfo.Fees = this.CurrentFees.ToArray(); this.UpdateFeesList(); } }