예제 #1
0
 public void StartWindowTitleEditing(GuiWindowInfo window)
 {
     if (window == null)
     {
         throw new ArgumentNullException("process");
     }
     this.m_window      = window;
     this.Text          = string.Format("Edit title ({0}: {1})", window.ProcessId, window.ProcessName);
     this.txtTitle.Text = window.Title;
     this.TopMost       = true;
     this.Show();
     this.BringToFront();
 }
예제 #2
0
        private void Helper_KeyPressed(object sender, KeyPressedEventArgs e)
        {
            GuiWindowInfo window = this.winApiHelper.Value.GetWindowUnderMouse();

            if (window == null)
            {
                return;
            }

            var setTitleForm = new EditWindowTitleForm();

            setTitleForm.StartWindowTitleEditing(window);
        }