Exemplo n.º 1
0
        public Locator(SettingsWnd parent)
        {
            InitializeComponent();

            this.Font = Resource.MainFont;

            this.parent = parent;

            this.StartPosition = FormStartPosition.Manual;
            this.Left          = parent.Right - this.Width;
            this.Top           = parent.Bottom - this.Height;
        }
Exemplo n.º 2
0
        public Locator(SettingsWnd parent)
        {
            InitializeComponent();

            this.Font = Resource.MainFont;

            this.parent = parent;

            this.StartPosition = FormStartPosition.Manual;
            this.Left = parent.Right - this.Width;
            this.Top = parent.Bottom - this.Height;
        }
Exemplo n.º 3
0
		private void Archer_KeyDown(object sender, KeyEventArgs e)
		{
			e.Handled = true;
			switch (e.KeyCode)
			{
				case Keys.Escape:
					if (txtName.Focused)
					{
						txtName.Text = string.Empty;
						txtName.Visible = false;
					}
					else
						ShowHideWindow(false);
					break;

				case Keys.D:
					if (e.Control)
						DeleteArrow(null, null);
					break;

				case Keys.M:
					if (e.Control)
						ctmNotifyIcon.Show();
					break;

				case Keys.N:
					if (e.Control)
						newNewArrow(null, null);
					break;

				case Keys.R:
					if (e.Control)
						ShareArrow(null, null);
					break;

				case Keys.P:
					if (e.Control)
						OpenParentDir(null, null);
					break;

				case Keys.Enter:
					if (txtName.Focused)
					{
						txtName_Enter(null, null);
						txtName.Visible = false;
					}
					else if (e.Control)
						LaunchArrows(false, null); 
					else
						LaunchArrows(null, null);
					break;

				case Keys.V:	// Clear Name input box and focus next box with clipboard text.
					if (e.Alt)
					{
						cbName.Text = string.Empty;
						cbArg.Text = Clipboard.GetText();
						cbArg.Focus();
					}
					break;
				
				case Keys.F1:
					if (e.Control)
						OpenArcherStore(null, null);
					else
						OpenDocumentation(null, null);
					break;

				case Keys.F2:
					ShowEditor(null, null);
					break;

				case Keys.F3:
					lbCmd_Click(null, null);
					break;

				case Keys.F5:
					RefreshUI();
					break;

				case Keys.F6:
					lbName_Click(null, null);
					break;

				case Keys.S:
					if (e.Control)
					{
						if (settingsWnd == null || settingsWnd.IsDisposed)
							settingsWnd = new SettingsWnd();
						if (!settingsWnd.Visible)
							OpenSettings(null, null);
						else
						{
							settingsWnd.SaveSettings(null, null);
							settingsWnd.Close();
						}
					}
					break;
				
				case Keys.Q:
					if (e.Control)
					{
						this.Close();
					}
					break;
				
				default:
					e.Handled = false;
					break;
			}
		}
Exemplo n.º 4
0
		// Function window part
		private void OpenSettings(object sender, EventArgs e)
		{
			cbName.Focus();
			if (settingsWnd == null || settingsWnd.IsDisposed)
				settingsWnd = new SettingsWnd();
			settingsWnd.Show();
			settingsWnd.WindowState = FormWindowState.Normal;
			settingsWnd.Activate();
		}