public void LoadRecordList(object obj) { this.TextEditorViewModel = new TextEditorViewModel(); UiService.GetRecordList(this.CurrentUserAccount, this); DisplayTextEditorView TextEditorView = new DisplayTextEditorView(this); Grid.SetColumn(TextEditorView, 1); Grid.SetRow(TextEditorView, 0); RightPanelAdd(TextEditorView); }
public void LoadSelectedRecord(object obj) { if (obj != null && obj is UserAccountRecord UserAccountRecord) { this._CurrentUserAccount.SelectedUserAccountRecord = UserAccountRecord; this.TextEditorViewModel = new TextEditorViewModel(); if (UiService.GetPatientDetails(this)) { PatientBannerView PatientBannerView = new PatientBannerView(this); ApiCallView ApiCallView = new ApiCallView(this); DisplayTextEditorView TextEditorView = new DisplayTextEditorView(this); Grid OuterGrid = new Grid(); RowDefinition GridRow1 = new RowDefinition(); GridRow1.Height = new GridLength(0, GridUnitType.Auto); RowDefinition GridRow2 = new RowDefinition(); GridRow2.Height = new GridLength(45); RowDefinition GridRow3 = new RowDefinition(); GridRow3.Height = new GridLength(1, GridUnitType.Star); OuterGrid.RowDefinitions.Add(GridRow1); OuterGrid.RowDefinitions.Add(GridRow2); OuterGrid.RowDefinitions.Add(GridRow3); Grid.SetColumn(PatientBannerView, 0); Grid.SetRow(PatientBannerView, 0); Grid.SetColumn(ApiCallView, 0); Grid.SetRow(ApiCallView, 1); Grid.SetColumn(TextEditorView, 0); Grid.SetRow(TextEditorView, 2); OuterGrid.Children.Add(PatientBannerView); OuterGrid.Children.Add(ApiCallView); OuterGrid.Children.Add(TextEditorView); Grid.SetColumn(OuterGrid, 1); Grid.SetRow(OuterGrid, 0); RightPanelAdd(OuterGrid); } } }