Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Forget ss = new Forget();

            ss.Show();
        }
        public LstmCell CopyOnNext()
        {
            var result = new LstmCell(Input.Length, Output.Length, Sigmoid, Tanh);

            result.OutputFromPreviousLayer = Output.Copy();
            result.ForgetFromPreviousLayer = Forget.Copy();
            return(result);
        }
Esempio n. 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Forget obj = new Forget();

        obj.username = tb1.Text;
        obj.password = tb2.Text;

        obj.iseql(obj);
    }
Esempio n. 4
0
        public async void Login(object sender, EventArgs e)
        {
            Firstlight.TranslationY  = -20;
            Secondlight.TranslationY = -20;
            Clock.TranslationY       = -20;
            View.TranslationY        = -20;
            LoginButton.TranslationY = -20;
            Forget.TranslationY      = -20;
            Firstlight.Opacity       = 0;
            Secondlight.Opacity      = 0;
            Clock.Opacity            = 0;
            View.Opacity             = 0;
            LoginButton.Opacity      = 0;
            Forget.Opacity           = 0;
            Firstlight.FadeTo(1, 100);

            await Firstlight.TranslateTo(0, 0, 300);

            Secondlight.FadeTo(1, 100);

            await Secondlight.TranslateTo(0, 0, 300);

            Clock.FadeTo(1, 100);

            await Clock.TranslateTo(0, 0, 300);

            View.FadeTo(1, 100);

            await View.TranslateTo(0, 0, 300);

            LoginButton.FadeTo(1, 100);

            await LoginButton.TranslateTo(0, 0, 300);

            Forget.FadeTo(1, 100);

            await Forget.TranslateTo(0, 0, 300);



            //try
            //{

            //    _googleManager.Logout();
            //    _googleManager.Login(OnLoginComplete);

            //}
            //catch (Exception x)
            //{

            //    await DisplayAlert("Authentication Failed", "Your Authentication Attempt Failed. Please try again..", "Ok");
            //}
        }
        public ActionResult AddToI(int id)
        {
            projectNum = (int)(HttpContext.Session["Number"]);
            Unsorted un = db.Unsorteds.Find(id);
            var newForget = new Forget
            {
                ProjectID = projectNum,
                Name = un.Name
            };

            db.Forgets.Add(newForget);
            db.Entry(un).State = EntityState.Deleted;
            db.SaveChanges();
            return PartialView("Unsorted", db.Unsorteds.Where(x => x.ProjectID == projectNum));
        }
Esempio n. 6
0
    public void iseql(Forget obj)
    {
        string          username       = obj.username;
        string          password       = obj.password;
        string          str_provider   = "Provider=Microsoft.Jet.OLEDB.4.0;";
        string          str_source     = "Data Source=C:\\Users\\Administrator\\Desktop\\w4\\data\\users.mdb";
        string          str_connection = str_provider + str_source;
        string          str_sql        = "UPDATE [user] set [password] = '" + password + "' WHERE [usersname]='" + username + "'";
        OleDbConnection cnn            = new OleDbConnection(str_connection);

        cnn.Open();
        OleDbCommand cmd = new OleDbCommand(str_sql, cnn);

        cmd.ExecuteNonQuery();
        cnn.Close();
    }
 public int ForgetPassword([FromBody] Forget data)
 {
     return(obj.ForgetPassword(data));
 }