コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (CalText1 != null)
            {
                CalText1.Dispose();
                CalText1 = null;
            }

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

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

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

            if (TitleImg != null)
            {
                TitleImg.Dispose();
                TitleImg = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (chartWeightAddBtn != null)
            {
                chartWeightAddBtn.Dispose();
                chartWeightAddBtn = null;
            }

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

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

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

            if (TitleImage != null)
            {
                TitleImage.Dispose();
                TitleImage = null;
            }
        }
コード例 #3
0
ファイル: SharedMenu.cs プロジェクト: Strawzer/Club-De-Sport
        public SharedMenu()
        {
            InitializeComponent();
            // UI
            leftBorderBtn = new Panel();
            //PanelMenu.Controls.Add(leftBorderBtn);
            Controls.Add(leftBorderBtn);
            OnSelectedMenu(HomeBtn);

            ActivateButton(HomeBtn, RGBColors.color1);
            HomeBtn.PerformClick();
        }
コード例 #4
0
        public WelcomPage()
        {
            InitializeComponent();
            var assembly = typeof(WelcomPage);

            getClientDetailsForMobile = null;
            logoImage.Source          = ImageSource.FromResource("MaxVonGrafKftMobile.Assets.logo_high_resolution_white-1.png", assembly);
            if (!App.Current.Properties.ContainsKey("CustomerId"))
            {
                App.Current.Properties.Add("CustomerId", 0);
            }

            var loginTap = new TapGestureRecognizer();

            loginTap.Tapped += async(s, e) =>
            {
                if ((int)App.Current.Properties["CustomerId"] == 0)
                {
                    await Navigation.PushAsync(new LoginPage());
                }
                else
                {
                    IsBusy = false;
                    if (!IsBusy)
                    {
                        IsBusy = true;
                        await HomeBtn.FadeTo(0, 100, Easing.SinInOut);

                        //await loginBtnFrame.FadeTo(0, 100, Easing.SinInOut);
                        try
                        {
                            if (Navigation.NavigationStack[Navigation.NavigationStack.Count - 1].GetType() != typeof(HomePage))
                            {
                                await Navigation.PushAsync(new HomePage());
                            }
                        }
                        finally
                        {
                            IsBusy = false;
                            await HomeBtn.FadeTo(1, 1000);

                            //await loginBtnFrame.FadeTo(1, 1000);
                        }
                    }
                }
            };
            //loginBtnFrame.GestureRecognizers.Add(loginTap);
            HomeBtn.GestureRecognizers.Add(loginTap);
        }
コード例 #5
0
    IEnumerator spawnCount(int money1, int money2, int money3)
    {
        AudioManager.PlaySound(AudioManager.Audio.rise01);
        for (int i = 1; i <= money1; ++i)
        {
            gameOverMenu.moneyTargetText1.text = i.ToString();
            yield return(new WaitForSeconds(0.015f));
        }

        AudioManager.PlaySound(AudioManager.Audio.rise02);
        for (int i = 1; i <= money2; ++i)
        {
            gameOverMenu.moneyTargetText2.text = i.ToString();
            yield return(new WaitForSeconds(0.015f));
        }

        AudioManager.PlaySound(AudioManager.Audio.rise03);
        for (int i = 1; i <= money3; ++i)
        {
            gameOverMenu.moneyTargetText3.text = i.ToString();
            yield return(new WaitForSeconds(0.015f));
        }

        AudioManager.PlaySound(AudioManager.Audio.rise04);
        int total = money1 + money2 + money3;

        for (int i = 1; i <= total; ++i)
        {
            gameOverMenu.moneyTotalText.text = i.ToString();
            yield return(new WaitForSeconds(0.015f));
        }

        Color32 gray = new Color32(255, 255, 255, 255);

        AdvertBtn.GetComponent <Button>().enabled = true;
        HomeBtn.GetComponent <Button>().enabled   = true;
        LevelBtn.GetComponent <Button>().enabled  = true;
        AdvertBtn.GetComponent <Image>().color    = gray;
        HomeBtn.GetComponent <Image>().color      = gray;
        LevelBtn.GetComponent <Image>().color     = gray;
    }
コード例 #6
0
        void ReleaseDesignerOutlets()
        {
            if (TitleImgView != null)
            {
                TitleImgView.Dispose();
                TitleImgView = null;
            }

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

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

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

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

            if (MainText != null)
            {
                MainText.Dispose();
                MainText = null;
            }
        }
コード例 #7
0
        private async void StartAnimation()
        {
            await HomeBtn.FadeTo(0, 50);

            await HomeBtn.FadeTo(1, 50);
        }
コード例 #8
0
        void ReleaseDesignerOutlets()
        {
            if (ActionTbox != null)
            {
                ActionTbox.Dispose();
                ActionTbox = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (UpBtn != null)
            {
                UpBtn.Dispose();
                UpBtn = null;
            }
        }
コード例 #9
0
        void ReleaseDesignerOutlets()
        {
            if (EnableDiarySw != null)
            {
                EnableDiarySw.Dispose();
                EnableDiarySw = null;
            }

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

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

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

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

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

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

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

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

            if (TimePicker != null)
            {
                TimePicker.Dispose();
                TimePicker = null;
            }
        }
コード例 #10
0
ファイル: MainForm.cs プロジェクト: Woldelig/Vurderingssystem
 // Setter "Hjem" til å være startsiden.
 private void MainForm_Load(object sender, EventArgs e)
 {
     HomeBtn.PerformClick();
 }