public SettingsTabUserControl(int width, int height, IConsoleServices consoleServices)
            : this()
        {
            this.Width           = width;
            this.Height          = height;
            this.consoleServices = consoleServices;
            this.scStatus        = 0;
            this.isScanning      = false;

            musicLibraryName.Text           = getPref("libraryname");
            musicFolderInput.Text           = getPref("audiodir");
            musicLibraryStats.Text          = "";
            playlistFolderInput.Text        = getPref("playlistdir");
            progressLabel.Text              = "";
            progressInformation.Text        = "";
            rescanOptionsList.SelectedIndex = 0;

            snUsername.Text = getPref("sn_email");
            snPassword.Text = getPref("sn_password_sha") != "" ? snPasswordPlaceholder : "";
            snStatsOptions.SelectedIndex = 1;

            String pref = getPref("sn_sync");

            pref = getPref("sn_disable_stats");
            snStatsOptions.SelectedIndex = Convert.ToInt16(pref == "" ? "0" : pref);

            PollSCTimer_Tick(new Object(), new EventArgs());
            updateCheckTimer_Tick(new Object(), new EventArgs());

            updateLibraryStats();

            jsonRequest(new string[] { "pref", "wizardDone", "1" });
        }
Example #2
0
 public SettingsTabUserControl(int width, int height, IConsoleServices consoleServices)
     : this()
 {
     this.Width           = width;
     this.Height          = height;
     this.consoleServices = consoleServices;
 }
Example #3
0
        public HomeServerTabExtender(int width, int height, IConsoleServices consoleServices)
        {
            this.consoleServices = consoleServices;

            tabControl = new MainTabUserControl(width, height, consoleServices);

            //Additional setup code here
        }