예제 #1
0
        public static ShelfControl FillWithWpfControls(
            LogInstance log,
            object opackage, object osm,
            AasxPluginDocumentShelf.DocumentShelfOptions options,
            PluginEventStack eventStack,
            object masterDockPanel)
        {
            // access
            var package = opackage as AdminShellPackageEnv;
            var sm      = osm as AdminShell.Submodel;
            var master  = masterDockPanel as DockPanel;

            if (package == null || sm == null || master == null)
            {
                return(null);
            }

            // the Submodel elements need to have parents
            sm.SetAllParents();

            // create TOP control
            var shelfCntl = new ShelfControl();

            shelfCntl.Start(log, package, sm, options, eventStack);
            master.Children.Add(shelfCntl);

            // return shelf
            return(shelfCntl);
        }
        public static WpfMtpControlWrapper FillWithWpfControls(
            object opackage, object osm,
            AasxPluginMtpViewer.MtpViewerOptions options,
            PluginEventStack eventStack,
            object masterDockPanel)
        {
            // access
            var package = opackage as AdminShellPackageEnv;
            var sm      = osm as AdminShell.Submodel;
            var master  = masterDockPanel as DockPanel;

            if (package == null || sm == null || master == null)
            {
                return(null);
            }

            // the Submodel elements need to have parents
            sm.SetAllParents();

            // create TOP control
            var wrapperCntl = new WpfMtpControlWrapper();

            wrapperCntl.Start(package, sm, options, eventStack);
            master.Children.Add(wrapperCntl);

            // return shelf
            return(wrapperCntl);
        }
 public void Start(
     AdminShellPackageEnv thePackage,
     AdminShell.Submodel theSubmodel,
     AasxPluginMtpViewer.MtpViewerOptions theOptions,
     PluginEventStack eventStack)
 {
     this.thePackage    = thePackage;
     this.theSubmodel   = theSubmodel;
     this.theOptions    = theOptions;
     this.theEventStack = eventStack;
 }
예제 #4
0
 public void Start(
     LogInstance log,
     AdminShellPackageEnv thePackage,
     AdminShell.Submodel theSubmodel,
     AasxPluginDocumentShelf.DocumentShelfOptions theOptions,
     PluginEventStack eventStack)
 {
     this.Log           = log;
     this.thePackage    = thePackage;
     this.theSubmodel   = theSubmodel;
     this.theOptions    = theOptions;
     this.theEventStack = eventStack;
 }
예제 #5
0
        public void Start(
            AdminShellPackageEnv thePackage,
            AdminShell.Submodel theSubmodel,
            AasxPluginMtpViewer.MtpViewerOptions theOptions,
            PluginEventStack eventStack)
        {
            this.thePackage    = thePackage;
            this.theSubmodel   = theSubmodel;
            this.theOptions    = theOptions;
            this.theEventStack = eventStack;

            this.theDefs = new DefinitionsMTP.ModuleTypePackage(new DefinitionsMTP());
        }
 public void Start(
     LogInstance log,
     AdminShellPackageEnv thePackage,
     AdminShell.Submodel theSubmodel,
     KnownSubmodelsOptions theOptions,
     PluginEventStack eventStack)
 {
     _log        = log;
     _package    = thePackage;
     _submodel   = theSubmodel;
     _options    = theOptions;
     _eventStack = eventStack;
 }
예제 #7
0
        public void Start(
            AdminShellPackageEnv package,
            AdminShell.Submodel sm,
            PlottingOptions options,
            PluginEventStack eventStack)
        {
            // set the context
            this.thePackage    = package;
            this.theSubmodel   = sm;
            this.theOptions    = options;
            this.theEventStack = eventStack;

            // ok, directly set contents
            SetContents();
        }
예제 #8
0
        public void Start(
            AdminShellPackageEnv package,
            AdminShell.Submodel sm,
            TechnicalDataOptions options,
            PluginEventStack eventStack)
        {
            // set the context
            this.thePackage    = package;
            this.theSubmodel   = sm;
            this.theOptions    = options;
            this.theEventStack = eventStack;

            // retrieve the Definitions
            this.theDefs = new DefinitionsZveiTechnicalData.SetOfDefs(new DefinitionsZveiTechnicalData());

            // ok, directly set contents
            SetContents();
        }
예제 #9
0
 public void SetEventStack(PluginEventStack es)
 {
     this.eventStack = es;
 }