Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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();
                }
            }
        }