public void AddNewLoan() { var control = new LoanDetails(User, this, -1); PluginManager.Instance.AddNonDockableContent(this, control, "Loan Detail <New Loan>", SizeToContent.Manual); }
public void EditLoan(int loanId) { var control = new LoanDetails(User, this, loanId); PluginManager.Instance.AddNonDockableContent(this, control, string.Format("Loan Detail [{0}]", loanId), SizeToContent.Manual); }