Ejemplo n.º 1
0
        protected virtual void InitializeComponents()
        {
            AutomaticSourcingPanel        = new AutomaticSourcingPanel();
            AutomaticTablePropertiesPanel = new AutomaticTablePropertiesPanel();
            this.Background  = null;
            this.BorderBrush = null;

            //    ItemsPanelTemplate temp = this.ItemsPanel;
            Uri rd1 = new Uri("../Resources/Styles/TabControl.xaml", UriKind.Relative);

            this.Resources.MergedDictionaries.Add(Application.LoadComponent(rd1) as ResourceDictionary);
            designTabItem             = new TabItem();
            designTabItem.Header      = "Design";
            designTabItem.Background  = null;
            designTabItem.BorderBrush = null;
            auditTabItem             = new TabItem();
            auditTabItem.Header      = "Audit";
            auditTabItem.Background  = null;
            auditTabItem.BorderBrush = null;


            try
            {
                this.SpreadSheet = new DESheetPanel();
                //this.SpreadSheet.Office.CreateNew(EdrawOffice.EXCEL_ID);
                //this.SpreadSheet.BuildSheetPanelMethod();
                //image = new System.Windows.Controls.Image();
                //host = new WindowsFormsHost();
                //host.Child = SpreadSheet;
                this.Content = this.SpreadSheet;
            }
            catch (Exception) { }
        }
Ejemplo n.º 2
0
        public List <object> getEditableControls()
        {
            List <object> controls = new List <object>(0);

            controls.AddRange(AutomaticTablePropertiesPanel.getEditableControls());

            controls.AddRange(AutomaticSourcingPanel.getEditableControls());
            if (this.SpreadSheet != null)
            {
                controls.Add(this.SpreadSheet);
            }
            return(controls);
        }