Exemplo n.º 1
0
        /// <summary>
        /// 释放工具
        /// </summary>
        public void ReleaseCommond()
        {
            LogoutEvent();

            if (textCtrl != null)
            {
                textCtrl.Dispose();
            }
            mapControl.IMGS_WorkStation_SelectTool("GIS_TOOL_MAP_MOVE_HOSOFT");
        }
Exemplo n.º 2
0
 /// <summary>
 /// 终止命令
 /// </summary>
 public void ReleaseCommond()
 {
     if (mapControl != null)
     {
         LogoutEvent();
         mapControl.CurrentTool  = currTool;
         mapControl.MousePointer = esriControlsMousePointer.esriPointerDefault;
     }
     if (textCtr != null)
     {
         textCtr.Dispose();
     }
     textCtr = null;
     isMove  = false;
 }
Exemplo n.º 3
0
        void ReleaseDesignerOutlets()
        {
            if (AmountInput != null)
            {
                AmountInput.Dispose();
                AmountInput = null;
            }

            if (SignMessageButton != null)
            {
                SignMessageButton.Dispose();
                SignMessageButton = null;
            }

            if (SignTransactionButton != null)
            {
                SignTransactionButton.Dispose();
                SignTransactionButton = null;
            }

            if (TextInput != null)
            {
                TextInput.Dispose();
                TextInput = null;
            }

            if (ToAddressInput != null)
            {
                ToAddressInput.Dispose();
                ToAddressInput = null;
            }
        }
Exemplo n.º 4
0
    public static string Show(string title, string message, string iconPath)
    {
        bool shouldRestartKeyInput = RawKeyInput.IsRunning;

        RawKeyInput.Stop();

        var input = new TextInput(title, message, iconPath);

        input.textInput.Focus();

        string result = "";

        if (input.ShowDialog() == DialogResult.OK)
        {
            result = input.textInput.Text;
        }

        input.Dispose();
        if (shouldRestartKeyInput)
        {
            RawKeyInput.Start(true);
        }

        return(result);
    }
        public void Dispose()
        {
            TextInput?.Dispose();
            FirstCharacter?.Dispose();
            StringLength?.Dispose();
            StringLengthLabel?.Dispose();
            FirstCharacterLabel?.Dispose();

            TimeOnPage?.Dispose();
            TimeOnPageLabel?.Dispose();
        }
Exemplo n.º 6
0
        public override void OnExit(GameTime gameTime)
        {
            KeyboardEventDispatcher.OnKeyPressed -= KeyboardEventDispatcher_OnKeyPressed;

            bFinish.OnButtonPress -= bFinish_OnButtonPress;
            tInput.OnTextChanged  -= tInput_OnTextChanged;

            tInput.Dispose();
            wr.Dispose();
            txtLogin.Dispose();
            wUsername.Dispose();
            bFinish.Dispose();
        }
Exemplo n.º 7
0
        /// <summary>
        /// 释放工具命令
        /// </summary>
        public void ReleaseCommond()
        {
            if (textCtrl != null)
            {
                gmapControl.Controls.Remove(textCtrl);
                textCtrl.Dispose();
                textCtrl = null;
            }
            if (gmapControl != null)
            {
                gmapControl.SetCursor(Cursors.Default);
                gmapControl.MouseDown -= gmapControl_MouseDown;
                gmapControl.KeyDown   -= gmapControl_KeyDown;
            }

            Utils.bPublishEvent = true;
        }
Exemplo n.º 8
0
        /// <summary>
        /// 释放命令
        /// </summary>
        public void ReleaseCommond()
        {
            if (element != null)
            {
                element.HightLight(false);
            }
            if (gmapControl != null)
            {
                gmapControl.MouseDown     -= gmapControl_MouseDown;
                gmapControl.MouseUp       -= gmapControl_MouseUp;
                gmapControl.MouseMove     -= gmapControl_MouseMove;
                gmapControl.DoubleClick   -= gmapControl_DoubleClick;
                gmapControl.OnMarkerLeave -= gmapControl_OnMarkerLeave;
                gmapControl.OnMarkerEnter -= gmapControl_OnMarkerEnter;
                gmapControl.KeyDown       -= gmapControl_KeyDown;
            }
            if (textCtrl != null)
            {
                textCtrl.Dispose();
            }

            Utils.bPublishEvent = true;
        }
Exemplo n.º 9
0
 protected override void DisposeOther()
 {
     base.DisposeOther();
     TextInput.Dispose();
 }
Exemplo n.º 10
0
 public override void Dispose()
 {
     _select.Dispose();
     _input.Dispose();
     RenderEvents.RenderTick -= _renderer;
 }