示例#1
0
 public static FileWritter Signin(string UsersEmail, string password)
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new FileWritter(UsersEmail, password);
     }
     return(uniqueInstance);
 }
示例#2
0
 public static FileWritter CreateUser(string UsersEmail, string password, string yournames, gender getGender)
 {
     if (uniqueInstance == null)
     {
         uniqueInstance = new FileWritter(UsersEmail, password, yournames, getGender);
     }
     return(uniqueInstance);
 }
示例#3
0
 private void signinButton_Click(object sender, EventArgs e)
 {
     if ((!string.IsNullOrEmpty(EmailTextBox.Text)) && (!string.IsNullOrEmpty(PasswordTextBox.Text)))
     {
         Libary.UsersEmail = EmailTextBox.Text;
         FileWritter.Signin(EmailTextBox.Text, PasswordTextBox.Text);
         addusercontrol(Libary, panel1);
         Libary.GetallPdfs();
     }
     else
     {
         MessageBox.Show("Please Some fields are still Empty, Fill them all", "Empty Field");
     }
 }
示例#4
0
 private void signupButton_Click(object sender, EventArgs e)
 {
     if ((!string.IsNullOrEmpty(EmailTextBox.Text)) && (!string.IsNullOrEmpty(PasswordTextBox.Text)) &&
         (!string.IsNullOrEmpty(FirstnameTextBox1.Text)) && (!string.IsNullOrEmpty(LastnameTextBox2.Text)))
     {
         Libary.UsersEmail = EmailTextBox.Text;
         FileWritter.CreateUser(EmailTextBox.Text,
                                PasswordTextBox.Text, FirstnameTextBox1.Text + " " + LastnameTextBox2.Text, (gender)numericUpDown1.Value);
         addusercontrol(Libary, panel1);
     }
     else
     {
         MessageBox.Show("Please Some fields are still Empty, Fill them all", "Empty Field");
     }
 }