PerformIntoCurrentWindow() 개인적인 메소드

private PerformIntoCurrentWindow ( PwEntry pe ) : bool
pe PwEntry
리턴 bool
예제 #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);
            }
        }
예제 #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);
            }
        }