protected void WindowDesignerLoaded(object sender, RoutedEventArgs e) { document.DataModel = document.LoadDataModel(); if (document.DataModel == null) { this.disableOptions(); this.showLabelNoDataModelLoaded(); } loadComboBoxDataModel(document.DataModel); if (document.ServiceEntity.CustomerServiceData != null) { if (document.Load()) { document.RedrawDocument(true); UpdateComboBoxDataModels(); } else { Util.ShowInformationDialog(UtnEmall.ServerManager.Properties.Resources.LoadServiceDesignFailed, "Warning"); this.disableOptions(); } } loadComboBoxStartForm(); formNumber = document.Components.Count + 1; }
void ServiceStatistics_Loaded(object sender, RoutedEventArgs e) { document.DataModel = document.LoadDataModel(); if (document.DataModel == null) { this.disableOptions(); } if (document.ServiceEntity.CustomerServiceData != null) { if (document.Load()) { document.RedrawDocument(); } else { Util.ShowOKMessage("No se puede cargar el documento", "Advertencia"); this.disableOptions(); } } }