Example #1
0
        public MainForm()
        {
            InitializeComponent();

            formCheatSheet = new FormCheatSheet();
            formAbout      = new About();

            timer          = new Timer();
            timer.Interval = 1000;
            timer.Tick    += timer_tick;
            timer.Start();

            UpdatePreview();
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            // si se lo comio el gc, hacemos otro
            if (formCheatSheet.IsDisposed)
            {
                formCheatSheet = new FormCheatSheet();
            }

            // solo mostramos el form si esta oculto
            if (!formCheatSheet.Visible)
            {
                formCheatSheet.Show();
                formCheatSheet.DesktopLocation = new Point(DesktopBounds.Right + 10, DesktopLocation.Y);
            }
        }