Example #1
0
        public override sealed void SetStandardValues()
        {
            SoundOutDeviceID          = "-0";
            DisableNotificationInGame = true;
            ShowMagicArrowBelowCursor = true;
            WaveSourceBits            = 16;
            SampleRate = -1;
            var language = Languages.FirstOrDefault(x => x.Code == Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName);

            Language          = language == null ? "en" : language.Code;
            Notification      = NotificationType.Top;
            ApplicationDesign = new ApplicationDesign();
            ApplicationDesign.SetStandard();
            NotificationShowTime        = 5000;
            RememberTrackImportPlaylist = false;
            PlaylistToImportTrack       = null;
            LoadAlbumCoverFromInternet  = true;
            DownloadAlbumCoverQuality   = ImageQuality.Maximum;
            SaveCoverLocal     = false;
            TrimTrackname      = true;
            ShowArtistAndTitle = true;
            SoundOutMode       = CSCore.SoundOut.WasapiOut.IsSupportedOnCurrentPlatform ? SoundOutMode.WASAPI : SoundOutMode.DirectSound;
            Latency            = 100;
            IsCrossfadeEnabled = false;
            CrossfadeDuration  = 4;
            UseThinHeaders     = true;
            MinimizeToTray     = false;
            ShowNotificationIfMinimizeToTray = true;
            Downloader               = new DownloadManager();
            TabControlTransition     = TransitionType.Left;
            ShowProgressInTaskbar    = true;
            AppCommunicationSettings = new AppCommunicationSettings();
            AppCommunicationSettings.SetStandard();
        }
Example #2
0
        public UserWindow()
        {
            InitializeComponent();
            ApplicationDesign.btnSubMenuObject = btnChangePw;
            object o = (object)btnChangePw;

            ApplicationDesign.SetSubButtonDesign(ref o);
        }
Example #3
0
        private void btnEditPermition_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);
            PermissionWindows permissionWindows = new PermissionWindows();

            permissionWindows.TopLevel        = false;
            permissionWindows.FormBorderStyle = FormBorderStyle.None;

            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(permissionWindows);
            permissionWindows.Show();
        }
Example #4
0
        private void btnCreateUser_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);
            CreateUser frmCreateUser = new CreateUser();

            frmCreateUser.TopLevel        = false;
            frmCreateUser.FormBorderStyle = FormBorderStyle.None;

            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmCreateUser);
            frmCreateUser.Show();
        }
Example #5
0
        private void btnChangePw_Click(object sender, EventArgs e)
        {
            ApplicationDesign.SetSubButtonDesign(ref sender);

            ChangePasswoerd frmChangePasswoerd = new ChangePasswoerd();

            frmChangePasswoerd.TopLevel        = false;
            frmChangePasswoerd.FormBorderStyle = FormBorderStyle.None;

            pnlWindow.Controls.Clear();
            pnlWindow.Controls.Add(frmChangePasswoerd);
            frmChangePasswoerd.Show();
        }
Example #6
0
        public override sealed void SetStandardValues()
        {
            SoundOutDeviceID          = SoundOutManager.DefaultDevicePlaceholder;
            DisableNotificationInGame = true;
            ShowMagicArrowBelowCursor = true;
            WaveSourceBits            = 16;
            SampleRate = -1;
            var language = Languages.FirstOrDefault(x => x.Code == Thread.CurrentThread.CurrentCulture.TwoLetterISOLanguageName);

            Language          = language == null ? "zh" : language.Code;
            Notification      = NotificationType.Top;
            ApplicationDesign = new ApplicationDesign();
            ApplicationDesign.SetStandard();
            NotificationShowTime        = 5000;
            RememberTrackImportPlaylist = false;
            PlaylistToImportTrack       = null;
            LoadAlbumCoverFromInternet  = true;
            DownloadAlbumCoverQuality   = ImageQuality.Maximum;
            SaveCoverLocal     = true;
            TrimTrackname      = true;
            ShowArtistAndTitle = true;
            SoundOutMode       = WasapiOut.IsSupportedOnCurrentPlatform ? SoundOutMode.WASAPI : SoundOutMode.DirectSound;
            Latency            = 100;
            IsCrossfadeEnabled = false;
            CrossfadeDuration  = 4;
            UseThinHeaders     = true;
            MinimizeToTray     = false;
            ShowNotificationIfMinimizeToTray = true;
            Downloader            = new DownloadManager();
            TabControlTransition  = TransitionType.Left;
            ShowProgressInTaskbar = true;
            DownloadSettings      = new DownloadSettings();
            DownloadSettings.SetDefault();
            CheckForAnyListenUpdates = true;
            CheckForYoutubeDlUpdates = true;
            Passwords       = new List <PasswordEntry>();
            FileNameFormat  = 1;
            DownloadBitrate = 1;
            LastUpdateTime  = DateTime.MinValue;
            DownLrc         = false;
            UseXunlei       = true;
        }