Esempio n. 1
0
        public void main()
        {
            if (!System.IO.File.Exists(@"count.txt"))
            {
                System.IO.File.Create(@"count.txt");
            }
            string fileCount = System.IO.File.ReadAllText(@"count.txt");

            Int32.TryParse(fileCount, out count);

            IconHandler.GetIcon(count.ToString());
            countLabel.Text = count.ToString();
        }
Esempio n. 2
0
 private void updateIcon()
 {
     notifyIconMain.Icon           = IconHandler.GetIcon(count.ToString());
     notifyIconMain.Text           = count.ToString();
     notifyIconMain.BalloonTipText = count.ToString();
 }