private void GuardDataSource_OnLoadedData(object sender, LoadedDataEventArgs e) { foreach (var entity in e.Entities) { Register register = entity as Register; } }
private void transactionInfoDomainDataSource_LoadedData_1(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
private void productGroupDomainDataSource1_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
private void satisfacaoFuncionarioSetDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
private void companyDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } else { ctx = (RadiographyContext)companyDomainDataSource.DomainContext; if (ctx.Companies.Count > 0) { companyForm.CurrentItem = this.CompanyModel = ctx.Companies.First(); } } }
private void DomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { MessageBox.Show("Connection could not be established." + Environment.NewLine + e.Error.Message, "Connection Error", MessageBoxButton.OK); e.MarkErrorAsHandled(); } if (sender == ddsAppointments && firstLoad) { firstLoad = false; if (schedulerControl1.Storage.AppointmentStorage.Count > 0) { schedulerControl1.Start = schedulerControl1.Storage.AppointmentStorage[0].Start; } } }
////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void DDsList_LoadedData(object sender, LoadedDataEventArgs geted) { this.IsBusyLens_Price = false; if (geted.HasError) { MessageBox.Show(geted.Error.ToString()); geted.MarkErrorAsHandled(); return; } try { ResultInfoTimeB_Lens_Price = ErpUIText.Get("ERP_Search1") + DateTime.Now.Subtract(this._TimeCountB_Lens_Price).TotalSeconds.ToString("N") + ErpUIText.Get("ERP_Search2"); ResultInfoCountB_Lens_Price = ErpUIText.Get("ERP_Search3") + (geted.TotalEntityCount).ToString() + ErpUIText.Get("ERP_Search4"); } catch { } GridListSelectedCodesPrice.Clear(); }
private void студентDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { lSID.Clear(); lSName.Clear(); for (int i = 0; i < студентDomainDataSource.DataView.Count; i++) { int id = (студентDomainDataSource.DataView[i] as Студент).Код; string name = (студентDomainDataSource.DataView[i] as Студент).ФИО; int j = lSID.BinarySearch(id); lSID.Insert(~j, id); lSName.Insert(~j, name); } if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
private void OnDataSourceLoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); this.debugTextBox.Text = string.Format("<-- Server returned the following error: {0}\r\n" , e.Error); } else if (e.Cancelled) { this.debugTextBox.Text = string.Format("<-- Load operation was cancelled\r\n"); } else { TimeSpan elapsedTime = DateTime.Now - this.startTime; this.debugTextBox.Text += string.Format("<-- Server replied in {0} ms\r\n" , elapsedTime.Milliseconds); } }
private void ddsTreeView_LoadedData(object sender, LoadedDataEventArgs geted) { this.IsBusy = false; if (geted.HasError) { MessageErp.ErrorMessage(geted.Error.Message.GetErrMsg()); geted.MarkErrorAsHandled(); return; } var items = geted.Entities; this.SourceTree.Clear(); V_S_Function it; items.ToList().ForEach(item => { if (!string.IsNullOrEmpty(((V_S_Function)item).FunParentID)) { return; } it = new V_S_Function(); ComCopyProperties.Copy(it, item); it.I_Explan = true; it.Children = GetChild(items, ((V_S_Function)item).FunID); this.SourceTree.Add(it); }); //////////////////////////////////////////// var ddsInfo = new ComDDsInfo() { Domaincontext = ComDSFactory.Man, QueryName = UDSMethods.V_S_FunctionAuthorityList, PageSize = 0 }; ddsInfo.Parameters.Add(new ComParameters() { ParameterName = "groupID", Value = this._gID }); var dds = ComDDSFactory.Get(ddsInfo, null, ddsAuthorityTree_LoadedData); this.IsBusy = true; dds.Load(); }
////////////////////////////////////////////////////////////////////////////////////////////////////////////// private void DDsList_LoadedData2(object sender, LoadedDataEventArgs geted) { this.IsBusyList2 = false; if (geted.HasError) { MessageBox.Show(geted.Error.ToString()); geted.MarkErrorAsHandled(); return; } try { ResultInfoTime2 = ErpUIText.Get("ERP_Search1") + DateTime.Now.Subtract(this._TimeCount2).TotalSeconds.ToString("N") + ErpUIText.Get("ERP_Search2"); ResultInfoCount2 = ErpUIText.Get("ERP_Search3") + (geted.TotalEntityCount).ToString() + ErpUIText.Get("ERP_Search4"); } catch { } this.OnLoadMainEnd2(); }
private async void tblUserGroupDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } else { this.cboUserGroup.SelectedIndex = 0; var q = await db.LoadAsync<tblUserGroupMenu>(db.GetTblUserGroupMenuIncludeMenuQuery()); menus = q.ToArray(); //this.tblUserGroupMenuDomainDataSource.AutoLoad = true; //this.tblUserGroupMenuDomainDataSource.Load(); Filter(); } }
/////////////////////////////////////////////////////////////////////////////// void dds_LoadedData(object sender, LoadedDataEventArgs geted) { if (geted.HasError) { TreeDateSource.Clear(); TreeDateSource.Add(new V_S_Function() { FunName = ErpUIText.ErrMsg }); geted.MarkErrorAsHandled(); return; } if (geted.Entities.Count() == 0) { TreeDateSource.Clear(); return; } var items = geted.Entities; this.InitTree(items); }
private static void LoadCusFrameCode_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); return; } Messenger.Default.Send <string>((""), USysMessages.ACBoxFrameCodeTextUpdateBegin); _UHV_B_CusFrameCode.Clear(); if (e.TotalEntityCount == 0) { return; } foreach (V_B_Material_Frame t in e.Entities) { _UHV_B_CusFrameCode.Add(t); } Messenger.Default.Send <string>((""), USysMessages.ACBoxFrameCodeTextUpdateEnd); }
public override void domainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { base.domainDataSource_LoadedData(sender, e); //first item returned is the latest RG Report for the combination of inputs if (((DomainDataSourceView)((DomainDataSource)sender).Data).IsEmpty) { MessageBox.Show("Wrong Inputs Or RT No Already Completed\n\nCheck and try again"); return; } RGReport = (RGReport)((DomainDataSourceView)((DomainDataSource)sender).Data).GetItemAt(0); RGReportRows = RGReport.RGReportRows; //now that fixedpatternid is available FixedPatternsSource.Load(); UpdateEnergyWiseArea(); OnPropertyChanged("TotalArea"); SetViewing(); UpdatedStatus(); if (isFromFetchMethod) { var ctx = (RadiographyContext)this.DomainSource.DomainContext; Coverage coverage = (Coverage)cmbCoverage.SelectedItem; ctx.Load(ctx.GetFixedPatternDetailsQuery(txtFPNo.Text, coverage.CoverageName, txtRTNo.Text)); UpdateSourceBasedOnThickness(); RGReport.FixedPattern = ctx.FixedPatterns.FirstOrDefault(); } isFromFetchMethod = false; //if edit mode, add a clone of original RGReport to original entities for change tracking if (IsEditMode) { OriginalEntities.Add(RGReport.ID, RGReport.Clone(ExcludePropertiesFromTracking)); } //ProcedureReference(); BindToPage(cmbProcedureRef, ComboBox.SelectedValueProperty, "ProcedureReferences"); BindToPage(cmbSpecifications, ComboBox.SelectedValueProperty, "Specifications"); BindToPage(cmbAcceptance, ComboBox.SelectedValueProperty, "AcceptanceAsPers"); }
protected void DomainDataSourceLoadedData(object sender, LoadedDataEventArgs e) { this._ddsLoadedData++; string messagePrefix = !string.IsNullOrEmpty(this._asyncEventFailureMessage) ? this._asyncEventFailureMessage + "; " : ""; Assert.IsTrue(this._ddsLoadedData <= this._ddsLoadedDataExpected, messagePrefix + "There should only be {0} LoadedData events.", this._ddsLoadedDataExpected); if (this._reload) { this._reload = false; this._dds.Load(); } if (e.HasError) { MarkLoadErrorAsHandled(sender, e); if (!this._ddsLoadErrorExpected) { Assert.Fail("An unexpected load error occurred. If this unit test is expecting a load error, set this._ddsLoadErrorExpected to true before invoking the load. Errors will be marked as handled automatically. " + this._ddsLoadedDataEventArgs.Error.ToString()); } } }
void dds_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); return; } if (e.Entities.Count() == 0) { return; } var item = e.Entities.FirstOrDefault() as V_S_User; if (item == null) { return; } this.UserName = item.UserName; this.Remark = item.UserExplain; this.CreateDate = item.MakeDate.Value.ToShortDateString(); }
private void storyDomainDataSource_LoadedData_1(object sender, LoadedDataEventArgs e) { //var list = obj.Entities.ToList(); //myItem.ItemsSource = list; //foreach (Story s in list) //{ // MyControlLibrary.TaskCard card = new MyControlLibrary.TaskCard() // { // Name = s.StoryId.ToString(), // Height = 90, // Width = 150, // Text = s.Description // }; // //not bound, just pushed onto the control.... // //look at http://stackoverflow.com/questions/507535/silverlight-itemscontrol-can-you-remove-the-panel-completely-via-templating // myGrid.Children.Add(card); //} if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
private void storyDomainDataSource_LoadedData_1(object sender, LoadedDataEventArgs e) { //var list = obj.Entities.ToList(); //myItem.ItemsSource = list; //foreach (Story s in list) //{ // MyControlLibrary.TaskCard card = new MyControlLibrary.TaskCard() // { // Name = s.StoryId.ToString(), // Height = 90, // Width = 150, // Text = s.Description // }; // //not bound, just pushed onto the control.... // //look at http://stackoverflow.com/questions/507535/silverlight-itemscontrol-can-you-remove-the-panel-completely-via-templating // myGrid.Children.Add(card); //} if(e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
public override void domainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { base.domainDataSource_LoadedData(sender, e); //first item returned is the latest RG Report for the combination of inputs if (((DomainDataSourceView)((DomainDataSource)sender).Data).IsEmpty) { MessageBox.Show("Wrong Inputs Or RT No Already Completed\n\nCheck and try again"); return; } RGReport = (RGReport)((DomainDataSourceView)((DomainDataSource)sender).Data).GetItemAt(0); RGReportRows = RGReport.RGReportRows; //now that fixedpatternid is available FixedPatternsSource.Load(); UpdateEnergyWiseArea(); OnPropertyChanged("TotalArea"); SetViewing(); UpdatedStatus(); if (isFromFetchMethod) { var ctx = (RadiographyContext)this.DomainSource.DomainContext; Coverage coverage = (Coverage)cmbCoverage.SelectedItem; ctx.Load(ctx.GetFixedPatternDetailsQuery(txtFPNo.Text, coverage.CoverageName, txtRTNo.Text)); UpdateSourceBasedOnThickness(); RGReport.FixedPattern = ctx.FixedPatterns.FirstOrDefault(); } isFromFetchMethod = false; //if edit mode, add a clone of original RGReport to original entities for change tracking if (IsEditMode) { OriginalEntities.Add(RGReport.ID, RGReport.Clone(ExcludePropertiesFromTracking)); } //ProcedureReference(); BindToPage(cmbProcedureRef, ComboBox.SelectedValueProperty, "ProcedureReferences"); BindToPage(cmbSpecifications, ComboBox.SelectedValueProperty, "Specifications"); BindToPage(cmbAcceptance, ComboBox.SelectedValueProperty, "AcceptanceAsPers"); }
private void dds_LoadedData(object sender, LoadedDataEventArgs e) { this.IsBusyCW = false; if (e.HasError) { e.MarkErrorAsHandled(); return; } if (e.TotalEntityCount <= 0) { XYSource.Clear(); return; } V_B_Material_LensSmart _Rs = e.Entities.FirstOrDefault() as V_B_Material_LensSmart; this.DContextMain.LensCodeSelected = _Rs.LensCode; this.DContextMain.LensNameSelected = _Rs.LensName; this.DContextMain.F_LR = _Rs.F_LR ?? false; this.DContextMain.F_CA = _Rs.F_CA ?? false; if (this.DContextMain.F_LR) { this.IsReadOnlyLR = false; } else { this.IsReadOnlyLR = true; this.DContextMain.LR = ""; } if (this.DContextMain.F_CA) { this.CYL = "ADD"; this.ADDInput = "CYL:"; } else { this.CYL = "CYL"; this.ADDInput = "ADD:"; } if (this.DContextMain.F_LR && string.IsNullOrEmpty(this.DContextMain.LR)) { this.DContextMain.LR = "R"; } var _SPH1 = _Rs.SPH1; var _SPH2 = _Rs.SPH2; var _CYL1 = _Rs.CYL1; var _CYL2 = _Rs.CYL2; if (this.DContextMain.F_LR) { _CYL1 = _Rs.X_ADD1; _CYL2 = _Rs.X_ADD2; } this.LoadXY(_SPH1.Value, _SPH2.Value, _CYL1.Value, _CYL2.Value); }
private void tblAlarmDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { this.BusyIndicator1.IsBusy = false; if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
void KoszykPrzydzieloneSource_LoadedData(object sender, LoadedDataEventArgs e) { CenaZamowieniaZrealizowane.Text = String.Format(RAZEM_TEXT, SumOrderPrice(sender as DomainDataSource)); }
void KoszykSource_LoadedData(object sender, LoadedDataEventArgs e) { CenaZamowienia.Text = String.Format(RAZEM_TEXT, SumOrderPrice(sender as DomainDataSource)); }
private void OnDomainDataSourceLoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { Handle(e.Error); e.MarkErrorAsHandled(); } }
private void dds_LoadedData(object sender, LoadedDataEventArgs e) { this.IsBusy = false; if (e.HasError) { MessageErp.ErrorMessage(e.Error.Message.GetErrMsg()); e.MarkErrorAsHandled(); return; } if (e.TotalEntityCount <= 0) { MessageErp.ErrorMessage(ErpUIText.Get("LoginUserLogin_Err_UserNone") + DSource.UserCode); return; } var it = e.Entities.FirstOrDefault(); var pw = it.GetType().GetProperty("UserPassword").GetValue(it, null).ToString(); if (ComPassword.Get(DSource.Password) != pw) { MessageErp.ErrorMessage(ErpUIText.Get("LoginUserLogin_Err_Password")); return; } bool f_stop = false; try { f_stop = Convert.ToBoolean(it.GetType().GetProperty("F_Stop").GetValue(it, null).ToString()); } catch { f_stop = false; } if (f_stop) { MessageErp.ErrorMessage(ErpUIText.Get("LoginUserLogin_Err_UserStop")); return; } if (LoginIndex == 1) { var man = it.GetType().GetProperty("F_Admin").GetValue(it, null).ToString(); var mf = false; try { mf = Convert.ToBoolean(man); } catch { mf = false; } if (!mf) { MessageErp.ErrorMessage(ErpUIText.Get("LoginUserLogin_Err_NotManager")); return; } } ComUserLogiinInfoManage.CurrentModel = DSource; USysInfo.UserCode = DSource.UserCode; USysInfo.UserName = it.GetType().GetProperty("UserName").GetValue(it, null).ToString(); try { USysInfo.F_Manager = Convert.ToBoolean(it.GetType().GetProperty("F_Admin").GetValue(it, null).ToString()); } catch { USysInfo.F_Manager = false; } USysInfo.LoginMode = LoginIndex; USysInfo.LgIndex = LanguageIndex + 1; Messenger.Default.Send <bool>(true, this.VMName.Substring(2) + "_Result"); }
private void BookDataSource_OnLoadedData(object sender, LoadedDataEventArgs e) { var context = bookDataSource.DomainContext as LibraryDomainContext; MessageBox.Show(context.Books.Count.ToString()); }
void dataServiceDataSource_LoadedData(object sender, LoadedDataEventArgs e) { AccountsdataServiceDataSource.Load(); Perform(() => updateGrid(),1000); }
private void locationDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { receiveCar.IsEnabled = false; System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } else receiveCar.IsEnabled = true; }
protected void DomainDataSourceLoadedDataWithPageSizeIncrement(object sender, LoadedDataEventArgs e) { if (this._dds.PageSize < 2) { this._dds.PageSize++; this._dds.Load(); } }
private void BookDataSource_OnLoadedData(object sender, LoadedDataEventArgs e) { var context = bookDataSource.DomainContext as LibraryDomainContext; MessageBox.Show(context.Books.Count.ToString()); }
/// <summary> /// Handles a load error when expected, marking the error as handled. /// </summary> /// <param name="sender">The event sender.</param> /// <param name="e">The event args for the load error.</param> private void MarkLoadErrorAsHandled(object sender, LoadedDataEventArgs e) { e.MarkErrorAsHandled(); this._ddsLoadErrorHandled = true; this._ddsLoadedDataEventArgs = e; }
private void OnOrderDetailsViewLoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { e.MarkErrorAsHandled(); } }
/// <summary> /// This handles the load of the datasource data and shows errors if any /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public virtual void domainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
private void ZamowienieSource_LoadedDataWhileSubmittingOrder(object sender, LoadedDataEventArgs e) { ZamowienieSource.LoadedData += ZamowienieSource_LoadedData; ZamowienieSource.LoadedData -= ZamowienieSource_LoadedDataWhileSubmittingOrder; AktualneZamowienie = e.Entities.Cast<ZamowieniePOCO>().First(); AktualneZamowienie.DataZlozenia = DateTime.Now; ZamowienieSource.SubmitChanges(); }
private void satisfacaoFuncionarioSetDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
void ZamowienieSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.Entities.Count() > 0) { AktualneZamowienie = e.Entities.Cast<ZamowieniePOCO>().First<ZamowieniePOCO>(); // Nie działa przy pustym koszyku !!!! AktualneZamowienieID = AktualneZamowienie.Id; PustyKoszykTextBlock.Visibility = System.Windows.Visibility.Collapsed; PopulateKoszykGrid(AktualneZamowienieID); } else { AktualneZamowienieID = 0; PustyKoszykTextBlock.Visibility = System.Windows.Visibility.Visible; } }
public override void domainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { base.domainDataSource_LoadedData(sender, e); //first item returned is the latest RG Report for the combination of inputs if (((DomainDataSourceView)((DomainDataSource)sender).Data).IsEmpty) { MessageBox.Show("Wrong Inputs Or RT No Already Completed\n\nCheck and try again"); return; } RGReport = (RGReport)((DomainDataSourceView)((DomainDataSource)sender).Data).GetItemAt(0); RGReportRows = RGReport.RGReportRows; //now that fixedpatternid is available FixedPatternsSource.Load(); UpdateEnergyWiseArea(); OnPropertyChanged("TotalArea"); SetViewing(); //if edit mode, add a clone of original RGReport to original entities for change tracking if (IsEditMode) { OriginalEntities.Add(RGReport.ID, RGReport.Clone(ExcludePropertiesFromTracking)); } }
public override void domainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { base.domainDataSource_LoadedData(sender, e); //first item returned is the current fixed pattern template for the given combination of fixed pattern and coverage FixedPatternTemplate = (FixedPatternTemplate)((DomainDataSourceView)((DomainDataSource)sender).Data).GetItemAt(0); FPTemplateRows = FixedPatternTemplate.FPTemplateRows; UpdateEnergyWiseArea(); OnPropertyChanged("TotalArea"); }
private void convenioPlanoSaudeSetDomainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { if (e.HasError) { System.Windows.MessageBox.Show(e.Error.ToString(), "Load Error", System.Windows.MessageBoxButton.OK); e.MarkErrorAsHandled(); } }
void zamowieniaContext_LoadedData1(object sender, LoadedDataEventArgs e) { this.busyIndicator1.IsBusy = false; this.busyIndicator2.IsBusy = false; this.busyIndicator4.IsBusy = false; chartYearlyZamowienia.ItemsSource = zamowieniaContext.Data; chartKlientZamowienia.ItemsSource = zamowieniaContext.Data; }
/// <summary> /// Event handler after the data source is loaded /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public override void domainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { base.domainDataSource_LoadedData(sender, e); //first item returned is the latest RG Report for the combination of inputs if (((DomainDataSourceView)((DomainDataSource)sender).Data).IsEmpty) { MessageBox.Show("Wrong Inputs Or RT No Already Completed\n\nCheck and try again"); return; } FinalReport = (FinalRTReport)((DomainDataSourceView)((DomainDataSource)sender).Data).GetItemAt(0); FinalReportRows = FinalReport.FinalRTReportRows; DataContext = FinalReport; //now that fixedpatternid is available FixedPatternsSource.Load(); updateEnergyWiseArea(); if (FinalReport.StatusID == 2) { if (FinalReportRows.SelectMany(p => p.Classifications).Count() > 0) lblStatus.Text = "CASTING ACCEPTABLE AS PER LEVEL " + FinalReportRows.SelectMany(p => p.Classifications.Split(',')).Where(m => !string.IsNullOrEmpty(m)).Select(int.Parse).Max(); else lblStatus.Text = "CASTING ACCEPTABLE AS PER LEVEL 1"; } }
private void CountDataSource_OnLoadedData(object sender, LoadedDataEventArgs e) { // MessageBox.Show(countDataSource.CanLoad.ToString()); }
private void FixedPatternsSource_LoadedData(object sender, LoadedDataEventArgs e) { OnPropertyChanged("FinalReportRows"); }
void produktyContext_LoadedData(object sender, LoadedDataEventArgs e) { chartProductZamowienia.ItemsSource = produktyContext.Data; this.busyIndicator3.IsBusy = false; }
/// <summary> /// Event handler after the data source is loaded /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public override void domainDataSource_LoadedData(object sender, LoadedDataEventArgs e) { base.domainDataSource_LoadedData(sender, e); //first item returned is the latest RG Report for the combination of inputs if (((DomainDataSourceView)((DomainDataSource)sender).Data).IsEmpty) { MessageBox.Show("Wrong Inputs Or RT No Already Completed\n\nCheck and try again"); return; } FinalReport = (FinalRTReport)((DomainDataSourceView)((DomainDataSource)sender).Data).GetItemAt(0); FinalReportRows = FinalReport.FinalRTReportRows; DataContext = FinalReport; //now that fixedpatternid is available FixedPatternsSource.Load(); updateEnergyWiseArea(); }
void Accounts_Signers_EntitlementsDataSource_LoadedData(object sender, LoadedDataEventArgs e) { dataServiceDataSource.Load(); RadGridView1.Rebind(); }
private void FixedPatternsSource_LoadedData(object sender, LoadedDataEventArgs e) { OnPropertyChanged("FinalReportRows"); }