private void ViewModelChanged(object sender, DependencyPropertyChangedEventArgs e) { this.viewModel_ = this.DataContext as NoteInfoViewModel; MainPanel_.DataContext = this.viewModel_; }
public int setIssueInformation(string[] array) { this.noteInfoVM_ = new NoteInfoViewModel(); if (array.Length != issueInfoNum_) { throw new Exception("array length must be 5 , array Length = " + array.Length); } string tradeDate = array[0]; string effectiveDate = array[1]; string maturityDate = array[2]; string notional = array[3]; string premium = array[4]; noteInfoVM_.TradeDate_ = array[0]; noteInfoVM_.EffectiveDate_ = array[1]; noteInfoVM_.MaturityDate_ = array[2]; noteInfoVM_.Notional_ = array[3]; noteInfoVM_.Premium_ = array[4]; return 0; }