Пример #1
0
 static Navigation()
 {
     LoginViewModel    = new LoginPageViewModel(new LoginPage());
     RegisterViewModel = new RegisterPageViewModel(new RegisterPage());
     AddViewModel      = new AddPageViewModel(new NoteInfoPage());
     EditViewModel     = new EditPageViewModel(new NoteInfoPage());
     InfoViewModel     = new NoteInfoViewModel(new NoteInfoPage());
 }
        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);
        }
Пример #3
0
 public NoteInfoPage()
 {
     this.InitializeComponent();
     VM = DataContext as NoteInfoViewModel;
 }