Exemple #1
0
        /// <summary>
        /// Sets the title caption of the menu
        /// </summary>
        /// <param name="title">caption to set</param>
        public void SetTitle(String title)
        {
            Title = title;

            if (scannerCommon != null)
            {
                Widget widget = scannerCommon.GetRootWidget().Finder.FindChild("ContextMenuTitle");
                if (widget != null)
                {
                    widget.SetText(title);
                }
            }
        }
        /// <summary>
        /// Performs initialization
        /// </summary>
        /// <param name="arg">Startup arguments</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg arg)
        {
            startupArg        = arg;
            PanelClass        = startupArg.PanelClass;
            startupCommandArg = startupArg.Arg;

            scannerCommon = new ScannerCommon(this);

            if (!scannerCommon.Initialize(startupArg))
            {
                Log.Debug("Could not initialize form " + Name);
                return(false);
            }

            rootWidget = scannerCommon.GetRootWidget();
            onInitialize();
            return(true);
        }
Exemple #3
0
        /// <summary>
        /// Initialize the class
        /// </summary>
        /// <param name="arg">startup arg</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg arg)
        {
            Log.Debug();

            PanelClass = arg.PanelClass;
            startupCommandArg = arg.Arg;
            startupArg = arg;

            _scannerHelper = new ScannerHelper(this, startupArg);
            scannerCommon = new ScannerCommon(this);

            if (!scannerCommon.Initialize(startupArg))
            {
                Log.Debug("Could not initialize form " + Name);
                return false;
            }

            rootWidget = scannerCommon.GetRootWidget();
            return true;
        }
Exemple #4
0
        /// <summary>
        /// Call this in the Initialize function of the Alphabet scanner
        /// </summary>
        /// <param name="startupArg">startup arguments</param>
        /// <returns>true on success</returns>
        public bool Initialize(StartupArg startupArg)
        {
            PanelClass = startupArg.PanelClass;

            _scannerCommon = new ScannerCommon(_scannerPanel);
            _scannerHelper = new ScannerHelper(_scannerPanel, startupArg);

            if (!_scannerCommon.Initialize(startupArg))
            {
                Log.Debug("Could not initialize form " + _form.Name);
                return false;
            }

            _rootWidget = _scannerCommon.GetRootWidget();

            return true;
        }
Exemple #5
0
        /// <summary>
        /// Initializes the class
        /// </summary>
        /// <param name="startupArg">startup parameter</param>
        /// <returns></returns>
        public bool Initialize(StartupArg startupArg)
        {
            Log.Debug();
            PanelClass = startupArg.PanelClass;
            startupCommandArg = startupArg.Arg;
            this.startupArg = startupArg;

            _scannerHelper = new ScannerHelper(this, startupArg);
            scannerCommon = new ScannerCommon(this);

            if (!scannerCommon.Initialize(startupArg))
            {
                return false;
            }

            rootWidget = scannerCommon.GetRootWidget();
            return true;
        }
 /// <summary>
 /// Initializes state variables
 /// </summary>
 public void Initialize()
 {
     _rootWidget = _scannerCommon.GetRootWidget();
 }