Beispiel #1
0
        public static void RefreshData()
        {
            try
            {
                var TextDataLoader = new TextDataLoader(SMPaths.GetAppDataFile(settingsFileName));
                var txtData        = TextDataLoader.Data;
                if (txtData.StartsWith("{"))
                {
                    jdata = JValue.Parse(txtData);
                }
                else
                {
                    // direct detection mode
                    if (System.IO.File.Exists(taskbarFile))
                    {
                        defaultMode = 1;

                        defaultTextColor = "#FF55EA0F";
                        defaultFillColor = "#FFE6E6E6";
                    }
                }
            }
            catch (Exception)
            {
            }
        }
        public MainWindow()
        {
            InitializeComponent();
            this.ShowInTaskbar = false;

            var smbginfoFile = JSettings.AppDataFile;//SMPaths.GetAppDataFile("smbginfo.txt");

            TextDataLoader = new TextDataLoader(smbginfoFile);
        }
Beispiel #3
0
        public TaskbarWindow()
        {
            InitializeComponent();
            this.ShowInTaskbar = false;

            var smbginfoFile = JSettings.AppDataFile; //SMPaths.GetAppDataFile("smtaskbarinfo.txt");

            TextDataLoader = new TextDataLoader(smbginfoFile);

            this.lblDisplayText.FontSize = JSettings.Fontsize;
        }