Esempio n. 1
0
        private void BunifuToggleSwitch1_OnValuechange(object sender, EventArgs e)
        {
            BunifuToggleSwitch s = (BunifuToggleSwitch)sender;

            MdlLoadingSetting.waitForm.Show();
            if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(s.Value, true, false)))
            {
                bookingStatus = "1";
            }
            else
            {
                bookingStatus = "0";
            }

            populateBookings();
            MdlLoadingSetting.waitForm.Close();
        }
Esempio n. 2
0
        private void BunifuToggleSwitch1_OnValuechange(object sender, EventArgs e)
        {
            BunifuToggleSwitch b = (BunifuToggleSwitch)sender;

            if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(b.Value, true, false)))
            {
                employeeStatus = "";
            }
            else
            {
                employeeStatus = "where status = 'Active'";
            }

            if (firstLoad == false)
            {
                MdlEmpManagement.populateEmployeeList(BunifuDataGridView1, employeeStatus);
            }
        }
Esempio n. 3
0
        private void BunifuToggleSwitch1_OnValuechange(object sender, EventArgs e)
        {
            BunifuToggleSwitch b = (BunifuToggleSwitch)sender;

            if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(b.Value, true, false)))
            {
                isPhoneID                   = true;
                PictureBox1.Image           = My.Resources.Resources.cellphoneTap;
                PictureBox1.BackColor       = Color.FromArgb(192, 64, 0);
                reassignCardTitleLabel.Text = "Scan the phone that will be assigned to " + firstName + " " + lastName;
            }
            else
            {
                PictureBox1.Image           = My.Resources.Resources.tapCard;
                PictureBox1.BackColor       = Color.Teal;
                reassignCardTitleLabel.Text = "Scan the card that will be assigned to " + firstName + " " + lastName;
                isPhoneID = false;
            }
        }
Esempio n. 4
0
        private void bunifutoggleswitch1_onvaluechange(object sender, EventArgs e)
        {
            BunifuToggleSwitch b = (BunifuToggleSwitch)sender;

            if (Conversions.ToBoolean(Operators.ConditionalCompareObjectEqual(b.Value, true, false)))
            {
                typeUnitPanel.Visible   = true;
                selectUnitPanel.Visible = false;
                Label2.Hide();
                gradeAndComodityLabe.Hide();
            }
            else
            {
                typeUnitPanel.Visible   = false;
                selectUnitPanel.Visible = true;
                Label2.Show();
                gradeAndComodityLabe.Show();
            }
        }