Beispiel #1
0
 public static DefaultForm CreateForm(fromclose ss)
 {
     _fromclose = ss;
     if (_danli == null)
     {
         _danli = new DefaultForm();
     }
     return(_danli);
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            LoginUser User = new LoginUser();

            if (User.SelectUser(textBox2.Text.Trim(), textBox1.Text.Trim(), comboBox1.Text.Trim()))
            {
                //登录信息正确
                //登陆成功后判断该店是不是又过了一天,如果是就将DPNumber再踩修改为一
                dpbll.UpdateDay(DateTime.Now.Day);
                DefaultForm _default2 = DefaultForm.CreateForm(fromclose);
                _default2.Text = FilterClass.DianPu1.UserName;
                //SendInfo from = SendInfo.CreateForm();
                //from.Show();
                //from.Hide();
                _default2.Show();

                this.Hide();
            }
            else
            {
                MessageBox.Show("信息错误");
            }
        }