Esempio n. 1
0
 public FrmSettings(TomatoClock clock, FrmClock frmClock)
 {
     InitializeComponent();
     this.clock    = clock;
     this.frmClock = frmClock;
     settings      = Properties.Settings.Default;
 }
Esempio n. 2
0
 public FrmClock(TomatoClock clock)
 {
     InitializeComponent();
     this.clock        = clock;
     AllowTransparency = true;
     TransparencyKey   = BackColor;
     settings          = Properties.Settings.Default;
     HideFlowWindow    = settings.HideFlowWindow;
     HideNotifyIcon    = settings.HideNotifyIcon;
 }
Esempio n. 3
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            Properties.Settings s     = Properties.Settings.Default;
            TomatoClock         clock = new TomatoClock(s.TomatoTime, s.BreakTime, s.LongBreakTime, s.ClockCountToLongBreak);

            clock.start();

            // FrmClock.downloadBackGround(0, 10);
            // Application.Run(new FrmNotice(clock));
            Application.Run(new FrmClock(clock));
        }
Esempio n. 4
0
        public FrmNotice(TomatoClock clock)
        {
            InitializeComponent();
            this.clock = clock;

            Helper.setTransparent(panelMain, this);
            Helper.fullScreen(this);

            try
            {
                string bgFile = File.Exists(backgroundFile) ? backgroundFile : "bg.jpg";
                this.BackgroundImage = Image.FromFile(bgFile);
            }
            catch { }
        }