PerformIntoCurrentWindow() private method

private PerformIntoCurrentWindow ( PwEntry pe ) : bool
pe PwEntry
return bool
Exemplo n.º 1
0
        private static void OnAutoType(object sender, EventArgs e)
        {
            ToolStripMenuItem tsmi = (sender as ToolStripMenuItem);

            Debug.Assert(tsmi != null); if (tsmi == null)
            {
                return;
            }
            PwEntry pe = (tsmi.Tag as PwEntry);

            Debug.Assert(pe != null); if (pe == null)
            {
                return;
            }

            try
            {
                AutoType.PerformIntoCurrentWindow(pe,
                                                  Program.MainForm.DocumentManager.SafeFindContainerOf(pe));
            }
            catch (Exception ex)
            {
                MessageService.ShowWarning(ex);
            }
        }
Exemplo n.º 2
0
        private static void OnAutoType(object sender, EventArgs e)
        {
            ToolStripMenuItem tsmi = sender as ToolStripMenuItem;

            Debug.Assert(tsmi != null); if (tsmi == null)
            {
                return;
            }
            PwEntry pe = tsmi.Tag as PwEntry;

            Debug.Assert(pe != null); if (pe == null)
            {
                return;
            }

            try { AutoType.PerformIntoCurrentWindow(pe); }
            catch (Exception ex)
            {
                MessageService.ShowWarning(ex);
            }
        }