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(); }
private void updateIcon() { notifyIconMain.Icon = IconHandler.GetIcon(count.ToString()); notifyIconMain.Text = count.ToString(); notifyIconMain.BalloonTipText = count.ToString(); }