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(); }
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); }