Esempio n. 1
0
        public void Loginck()
        {
            System.Windows.Application.Current.MainWindow.UpdateLayout();
            Login_Page currentPage = (System.Windows.Application.Current.MainWindow.Content) as Login_Page;
            string     a           = currentPage.IDtext.Text;

            //string[] lines = File.ReadAllLines(@"C:\Users\bit-user\Desktop\Process_Page_Copy\Process_Page\save\TitleList.txt");
            //foreach (string show in lines)
            //{
            //    int count = 0;
            //    string[] Flines = File.ReadAllLines(@"C:\Users\bit-user\Desktop\Process_Page_Copy\Process_Page\save\" + show);
            //    foreach (string Fshow in Flines)
            //    {
            FileInfo fileInfo = new FileInfo(@"C:\Users\bit\Desktop\Process_Page (4)\Process_Page\DrInfo\" + currentPage.IDtext.Text + "(" + currentPage.PasswordBox.Password + ")" + ".txt");

            if (fileInfo.Exists)
            {
                string[] lines = File.ReadAllLines(@"C:\Users\bit\Desktop\Process_Page (4)\Process_Page\DrInfo\" + currentPage.IDtext.Text + "(" + currentPage.PasswordBox.Password + ")" + ".txt");
                foreach (string show in lines)
                {
                    logDr_name = show;
                    break;
                }
                PatientInfo_Page page = new PatientInfo_Page();
                System.Windows.Application.Current.MainWindow.Content = page;
            }
            else
            {
                ExecuteRunDialog(0);
                return;
            }
        }
Esempio n. 2
0
        private void logout(object obj)
        {
            Login_Page page = new Login_Page();

            System.Windows.Application.Current.MainWindow.Content = page;
        }
Esempio n. 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Login_Page page = new Login_Page();

            System.Windows.Application.Current.MainWindow.Content = page;
        }