Beispiel #1
0
    private void d(cv A_0, MessageStruct A_1)
    {
        A_0.q = true;
        A_0.t.Clear();
        byte num = A_1.Value <byte>("paletteCount");

        if (num == 0xff)
        {
            A_0.r = true;
            A_0.s = A_1.Value <int>("palette");
        }
        else
        {
            A_0.r = false;
            MessageStruct struct2 = A_1.Struct("palettes");
            for (int i = 0; i < num; i++)
            {
                bo item = new bo {
                    a = struct2.Struct(i).Value <int>("palette"),
                    b = struct2.Struct(i).Value <byte>("offset"),
                    c = struct2.Struct(i).Value <byte>("length")
                };
                A_0.t.Add(item);
            }
        }
    }
Beispiel #2
0
        protected void AdmnRgstr_Click(object sender, EventArgs e)
        {
            bo ob1 = new bo();

            ob1.FName      = frstName.Text;
            ob1.LName      = lastName.Text;
            ob1.Age        = int.Parse(Age.Text);
            ob1.Gender     = DropDownList2.Text;
            ob1.Contact    = long.Parse(contactNo.Text);
            ob1.Uname      = UserId.Text;
            ob1.Upwd       = password.Text;
            ob1.UserType   = UserType.Text;
            ob1.SkillSet   = SkillSet.Text;
            ob1.IsActive   = true;
            ob1.ApprovedBy = "Admin";
            ob1.ApprovedOn = DateTime.Now;
            bal sba1 = new bal();

            dt = sba1.AddBALRecord(ob1);
            if (dt > 0)
            {
                frstName.Text = lastName.Text = Age.Text = DropDownList2.Text = contactNo.Text = SkillSet.Text = UserId.Text = password.Text = UserType.Text = "";
                lblMsg.Text   = "Record Added Successfully";
            }
            else
            {
                lblMsg.Text = "Try Again";
            }
        }
 internal PaletteData(bo A_0)
 {
     this.a = A_0;
 }
Beispiel #4
0
        static void Main(string[] args)
        {
            bo func = (string x, int y) => x.Length > y;

            Console.WriteLine(func("io", 2)); //j = 25
        }