Exemple #1
0
        public void Awake(GObject go)
        {
            if (go == null)
            {
                return;
            }

            GObject = go;

            if (string.IsNullOrWhiteSpace(Name))
            {
                Name = Id.ToString();
            }

            self = (GComponent)go;

            self.Add(this);

            var com = go.asCom;

            if (com != null)
            {
                login2RegisterController = com.GetControllerAt(0);
                bgBtn        = bgBtn.Create(com.GetChildAt(0));
                frameReg     = WindowFrame1.Create(com.GetChildAt(1));
                ConfirmBtn   = Button.Create(com.GetChildAt(2));
                RegAccIn     = (GTextInput)com.GetChildAt(3);
                n83          = (GTextField)com.GetChildAt(4);
                n84          = (GImage)com.GetChildAt(5);
                n86          = (GGroup)com.GetChildAt(6);
                RegPWIn      = (GTextInput)com.GetChildAt(7);
                n88          = (GTextField)com.GetChildAt(8);
                n89          = (GImage)com.GetChildAt(9);
                n91          = (GGroup)com.GetChildAt(10);
                RegConfirmIn = (GTextInput)com.GetChildAt(11);
                n93          = (GTextField)com.GetChildAt(12);
                n94          = (GImage)com.GetChildAt(13);
                n96          = (GGroup)com.GetChildAt(14);
                Register     = (GGroup)com.GetChildAt(15);
                Login        = (GGroup)com.GetChildAt(16);
                frameLogin   = WindowFrame1.Create(com.GetChildAt(17));
                n80          = (GGroup)com.GetChildAt(18);
                pwIn         = (GTextInput)com.GetChildAt(19);
                n78          = (GImage)com.GetChildAt(20);
                n77          = (GTextField)com.GetChildAt(21);
                loginBtn     = Button.Create(com.GetChildAt(22));
                n53          = (GGroup)com.GetChildAt(23);
                accIn        = (GTextInput)com.GetChildAt(24);
                n51          = (GImage)com.GetChildAt(25);
                n50          = (GTextField)com.GetChildAt(26);
                regBtn       = Button.Create(com.GetChildAt(27));
            }
        }
Exemple #2
0
        public override void Dispose()
        {
            if (IsDisposed)
            {
                return;
            }

            base.Dispose();

            self.Remove();
            self = null;
            login2RegisterController = null;
            bgBtn.Dispose();
            bgBtn = null;
            frameReg.Dispose();
            frameReg = null;
            ConfirmBtn.Dispose();
            ConfirmBtn   = null;
            RegAccIn     = null;
            n83          = null;
            n84          = null;
            n86          = null;
            RegPWIn      = null;
            n88          = null;
            n89          = null;
            n91          = null;
            RegConfirmIn = null;
            n93          = null;
            n94          = null;
            n96          = null;
            Register     = null;
            Login        = null;
            frameLogin.Dispose();
            frameLogin = null;
            n80        = null;
            pwIn       = null;
            n78        = null;
            n77        = null;
            loginBtn.Dispose();
            loginBtn = null;
            n53      = null;
            accIn    = null;
            n51      = null;
            n50      = null;
            regBtn.Dispose();
            regBtn = null;
        }