示例#1
0
        public MainForm(Engine engine)
        {
            InitializeComponent();

            Text = App.GetProductName() + " " + App.GetVersionString(false);
            #if DEBUG
            Text += Strings.DebugSuffix;
            #endif
            Icon = Properties.Resources.App;

            _engine = engine;
            _engine.Invoker = this;
            _engine.Hook += EngineHook;

            _tray = new NotifyIcon();
            _tray.MouseClick += TrayClick;
            _tray.Text = this.Text;
            _tray.Icon = this.Icon;
            _tray.ContextMenu = mnuTray;

            _previewer = new MciAudio();

            lnkMainNapLen.Bounds = txtMainNapLen.Bounds;
            lnkMainCoreLen.Bounds = txtMainCoreLen.Bounds;
            cboMainTestMethod.SelectedIndex = 0;

            imlImages.Images.Add(Properties.Resources.Open);
            imlImages.Images.Add(Properties.Resources.Play);
            imlImages.Images.Add(Properties.Resources.Stop);

            RefreshSettings();
        }
示例#2
0
        public Sounder(Engine engine)
        {
            _engine = engine;
            _engine.Hook += EngineHook;

            _fadeInTimer = new Timer(FadeInGranMsec);
            _fadeInTimer.AutoReset = true;
            _fadeInTimer.Elapsed += FadeInTimer_Elapsed;

            _warning = new MciAudio();
            _warning.Repeat = true;
            _alarm = new MciAudio();
            _alarm.Repeat = true;
        }
示例#3
0
 public MciNotifyWindow(MciAudio owner)
 {
     _owner = owner;
 }