private void PasswordReturn(object sender) { if (mu_doc.ApplyPassword(m_password.xaml_Password.Password)) { m_currpassword = m_password.xaml_Password.Password; m_password.Close(); m_password = null; xaml_OpenProgressGrid.Visibility = System.Windows.Visibility.Visible; xaml_openfilestatus.Text = "Opening File"; StartViewer(); } else { xaml_OpenProgressGrid.Visibility = System.Windows.Visibility.Collapsed; ShowMessage(NotifyType_t.MESS_STATUS, "Password Incorrect"); } }
private void GetPassword() { if (m_password == null) { m_password = new Password(); m_password.PassUpdateMain += new Password.PassCallBackMain(PasswordReturn); m_password.Activate(); m_password.Show(); } }