public LabelFNTFromHTTP()
        {
            m_time = 0;

            Color   = new CCColor3B(128, 128, 128);
            Opacity = 255;

            loading = new LoadingLabel();
            AddChild(loading);

            Schedule(step);

            ScheduleOnce((dt) =>
            {
                if (!loading.Visible)
                {
                    loading.RemoveFromParent();
                }
                else
                {
                    loading.StopAllActions();
                    loading.Scale = 1;
                    loading.Text  = "Loading Timeout";
                }
            },
                         5 // delay 5 seconds

                         );
        }
Ejemplo n.º 2
0
        private void buttonLogin_Click(object sender, EventArgs e)
        {
            var loadingLbl = new LoadingLabel(LabelConnectionStatus, 200, "Connecting");

            loadingLbl.Start();
            new classes.Api.InternetLogin.Connect("ebuka", "pass")
            .ConnectAsync().ContinueWith((result) =>
            {
                BeginInvoke((MethodInvoker) delegate
                {
                    loadingLbl.Stop();

                    LabelConnectionStatus.Text = result.Result
                            ? Resources.Connected
                            : Resources.Disconnected;
                });

                //user asynchronous thread sleeps for 10 seconds, to ensure that all preocesses required
                //to connect to the world internet are accomplished
                //i.e. the loading time
                if (result.Result)
                {
                    Thread.Sleep(10000);
                }

                Connected = result.Result;
            });
        }
Ejemplo n.º 3
0
        public void SaveToXml()
        {
            WindowTheme.SaveToXml(Xml, "Window");

            LoadingLabel.SaveToXml(Xml, "LoadingLabel");

            Xml.Save();
        }
Ejemplo n.º 4
0
        public Form1()
        {
            InitializeComponent();

            LoadingLabel.Hide();
            Number3Label.Hide();
            Number2Label.Hide();
            Number1Label.Hide();
            BeginLabel.Hide();
        }
Ejemplo n.º 5
0
        public override void OnEnter()
        {
            base.OnEnter();

            m_nImageOffset = 0;

            CCSize size = Layer.VisibleBoundsWorldspace.Size;

            var label = new LoadingLabel();

            label.Position = size.Center;
            AddChild(label, 10);

            ScheduleOnce(LoadImages, 1.0f);
        }
Ejemplo n.º 6
0
        public SwiperControl()
        {
            InitializeComponent();
            var panGesture = new PanGestureRecognizer();

            panGesture.PanUpdated += OnPanUpdated;
            this.GestureRecognizers.Add(panGesture);
            var picture = new Picture();

            image.Source = new UriImageSource()
            {
                Uri = picture.Uri
            };
            DescriptionLabel.Text = picture.Description;

            LoadingLabel.SetBinding(IsVisibleProperty, "IsLoading");
            LoadingLabel.BindingContext = image;
        }
        void ReleaseDesignerOutlets()
        {
            if (GreenCImg != null)
            {
                GreenCImg.Dispose();
                GreenCImg = null;
            }

            if (IsSchnitzelLabel != null)
            {
                IsSchnitzelLabel.Dispose();
                IsSchnitzelLabel = null;
            }

            if (LoadingIndicator != null)
            {
                LoadingIndicator.Dispose();
                LoadingIndicator = null;
            }

            if (LoadingLabel != null)
            {
                LoadingLabel.Dispose();
                LoadingLabel = null;
            }

            if (MainImgView != null)
            {
                MainImgView.Dispose();
                MainImgView = null;
            }

            if (RedXImg != null)
            {
                RedXImg.Dispose();
                RedXImg = null;
            }

            if (SelectImgLabel != null)
            {
                SelectImgLabel.Dispose();
                SelectImgLabel = null;
            }
        }
Ejemplo n.º 8
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //start button is hidden once clicked
            StartButton.Hide();

            //loading sign along with the numbers appear
            LoadingLabel.Show();
            Number3Label.Show();
            Refresh();
            Thread.Sleep(1000);
            Number2Label.Show();
            Refresh();
            Thread.Sleep(1000);
            Number1Label.Show();
            Refresh();
            Thread.Sleep(1000);

            //hide numbers and show "begin!"
            Number3Label.Hide();
            Number2Label.Hide();
            Number1Label.Hide();
            BeginLabel.Show();
        }