Exemplo n.º 1
0
        public void Dispose()
        {
            timer.Stop();
            if (factorCalculateThread != null)
            {
                factorCalculateThread.Abort();
                factorCalculateThread = null;
            }
            int num = list.Count;

            for (int i = num - 1; i >= 0; i--)
            {
                Dispose(i);
            }
            GraphPanel.ResetCounter();
        }
Exemplo n.º 2
0
        void init()
        {
            Settings settings = Settings.GetInstance();

            settings.LoadSettings();
            ItemCombiner.ApplySettings();
            WavPlayer.ApplySettings();
            Form1.ApplySettings();

            wp = new WavPlayer(this);
            wp.PlayReachedBy += new WavPlayer.ProcessEventHandler(this.ReportReceived);
            this.KeyPreview   = true;

            ItemCombiner.SetWavPlayer(wp);
            GraphPanel.SetFont(defaultFont);
            ItemSet.SetWavPlayer(wp);
            ItemSet.SetForm(this);
            ControlPanel.SetFont(defaultFont);
            ControlPanel.SetWavPlayer(wp);

            cp = new ControlPanel();
            baseTablePanel.Controls.Add(cp, 1, 1);
        }