Esempio n. 1
0
 /// <summary>
 /// Constructor with pre-filled text boxes for editing an existing asset.
 /// </summary>
 /// <param name="asset"><see cref="Asset"/></param>
 /// <param name="passedObject"><see cref="IPassedObject{T}"/></param>
 public AddAssetForm(Asset asset, IPassedObject <Asset> passedObject) : this(passedObject)
 {
     this.asset          = asset;
     textBoxAssetId.Text = asset.AssetId.ToString();
     textBoxIsin.Text    = asset.Isin;
     textBoxName.Text    = asset.Name;
 }
 public AddRule(IPassedObject <Rule> parentForm, Rule rule = null)
 {
     this.parentForm = parentForm;
     this.rule       = rule;
     InitializeComponent();
     LoadRuleKinds();
 }
 public AddDurationRecordForm(DurationRecord durationRecord, IPassedObject <DurationRecord> passedObject) : this(passedObject)
 {
     this.durationRecord  = durationRecord;
     textBoxCurrency.Text = durationRecord.Currency;
     textBoxDuration.Text = durationRecord.TargetDuration.ToString();
 }
 public AddDurationRecordForm(IPassedObject <DurationRecord> passedObject)
 {
     this.passedObject = passedObject;
     InitializeComponent();
     InitializeCustomComponents();
 }
Esempio n. 5
0
 /// <summary>
 /// Constructor with emty text boxes when a new asset has to be added.
 /// </summary>
 /// <param name="passedObject"><see cref="IPassedObject{T}"/></param>
 public AddAssetForm(IPassedObject <Asset> passedObject)
 {
     this.passedObject = passedObject;
     InitializeComponent();
     InitializeCustomComponents();
 }
Esempio n. 6
0
 public AddCountryForm(Country country, IPassedObject <Country> passedObject) : this(passedObject)
 {
     this.country        = country;
     textBoxName.Text    = country.Name;
     textBoxIsoCode.Text = country.IsoCode;
 }
Esempio n. 7
0
 public AddCountryForm(IPassedObject <Country> passedObject)
 {
     this.passedObject = passedObject;
     InitializeComponent();
     InitializeCustomComponents();
 }