Exemplo n.º 1
0
		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");
			}
		}
Exemplo n.º 2
0
		private void GetPassword()
		{
			if (m_password == null)
			{
				m_password = new Password();
				m_password.PassUpdateMain += new Password.PassCallBackMain(PasswordReturn);
				m_password.Activate();
				m_password.Show();
			}
		}