Example #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="hliForm">The HLIForm instance that uses this internal form.</param>
        public HliInternalForm(HliForm hliForm)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.hliForm = hliForm;

            // Create the handlers used by other threads in an Invoke call.
            this.closeHandler             = new CloseDelegate(HandleClose);
            this.showAndContinueHandler   = new ShowAndContinueDelegate(HandleShowAndContinue);
            this.setStopButtonTextHandler = new SetStopButtonTextDelegate(HandleSetStopButtonText);
            this.setTextHandler           = new SetTextDelegate(HandleSetText);

            lock (hliForm.LockObject)
            {
                this.isAvailable = true;
            }
        }
Example #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="hliForm">The HLIForm instance that uses this internal form.</param>
        public HliInternalForm(HliForm hliForm)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            this.hliForm = hliForm;

            // Create the handlers used by other threads in an Invoke call.
            this.closeHandler = new CloseDelegate(HandleClose);
            this.showAndContinueHandler = new ShowAndContinueDelegate(HandleShowAndContinue);
            this.setStopButtonTextHandler = new SetStopButtonTextDelegate(HandleSetStopButtonText);
            this.setTextHandler = new SetTextDelegate(HandleSetText);

            lock(hliForm.LockObject)
            {
                this.isAvailable = true;
            }
        }