public FrmSettings(TomatoClock clock, FrmClock frmClock) { InitializeComponent(); this.clock = clock; this.frmClock = frmClock; settings = Properties.Settings.Default; }
public FrmClock(TomatoClock clock) { InitializeComponent(); this.clock = clock; AllowTransparency = true; TransparencyKey = BackColor; settings = Properties.Settings.Default; HideFlowWindow = settings.HideFlowWindow; HideNotifyIcon = settings.HideNotifyIcon; }
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)); }
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 { } }