/// <summary> /// Initialize the editor. /// </summary> public void Init() { Player = new GotaSoundIO.Sound.Playback.StreamPlayer(); Icon = Properties.Resources.War; tree.Nodes.RemoveAt(0); tree.Nodes.Add("root", "Wave Archive", 5, 5); UpdateNodes(); tree.Nodes[0].Expand(); FormClosing += new FormClosingEventHandler(WAClosing); soundPlayerLabel.Text = "Sound Player Deluxe™"; kermalisPlayButton.Click += new EventHandler(PlayClick); kermalisPauseButton.Click += new EventHandler(PauseClick); kermalisStopButton.Click += new EventHandler(StopClick); kermalisVolumeSlider.ValueChanged += new EventHandler(VolumeChanged); kermalisLoopBox.CheckedChanged += new EventHandler(LoopChanged); kermalisPosition.MouseUp += new MouseEventHandler(PositionMouseUp); kermalisPosition.MouseDown += new MouseEventHandler(PositionMouseDown); tree.KeyPress += new KeyPressEventHandler(KeyPress); Timer.Tick += PositionTick; Timer.Interval = 10; Timer.Start(); }