Esempio n. 1
0
        //对话框载入
        private void SeatForm_Load(object sender, EventArgs e)
        {
            BathClass.change_input_en();
            year.Text  = m_date.Year.ToString();
            month.Text = m_date.Month.ToString().PadLeft(2, '0');

            current_box = year;
        }
Esempio n. 2
0
        //对话框载入
        private void PayForm_Load(object sender, EventArgs e)
        {
            dao = new DAO(LogIn.connectionString);
            BathClass.change_input_en();
            watch = MConvert <bool> .ToTypeOrDefault(LogIn.options.启用结账监控, false);

            moneyPayable.Text = m_money.ToString();
            changes.Text      = (-m_money).ToString();
            now = BathClass.Now(LogIn.connectionString);
        }
Esempio n. 3
0
        //对话框载入
        private void LogIn_Load(object sender, EventArgs e)
        {
            BathClass.change_input_en();
            //form_load_func();

            //Thread td = new Thread(new ThreadStart(form_load));
            //td.IsBackground = true;
            //td.Start();

            form_load_func();
        }
Esempio n. 4
0
        //对话框载入
        private void PayForm_Load(object sender, EventArgs e)
        {
            BathClass.change_input_en();
            watch             = BathClass.ToBool(db.Options.FirstOrDefault().启用结账监控);
            m_money           = BathClass.get_rooms_expenses(db, m_Seats, LogIn.connectionString);
            moneyPayable.Text = m_money.ToString();
            changes.Text      = (-m_money).ToString();

            for (int i = 0; i < m_Seats.Count; i++)
            {
                if (m_keeps[i])
                {
                    continue;
                }
                m_Seats_Real.Add(m_Seats[i]);
            }
            //money_real = BathClass.get_seats_expenses(m_Seats_Real, LogIn.connectionString);
        }
Esempio n. 5
0
 private void id_Enter(object sender, EventArgs e)
 {
     BathClass.change_input_en();
 }
Esempio n. 6
0
 private void TextMsgStart_Enter(object sender, EventArgs e)
 {
     BathClass.change_input_en();
 }
Esempio n. 7
0
 private void box_Enter(object sender, EventArgs e)
 {
     BathClass.change_input_en();
     current_box = sender as Control;
 }
Esempio n. 8
0
 private void seatBox_Enter(object sender, EventArgs e)
 {
     BathClass.change_input_en();
     rBtnSeat.Checked = true;
 }