private void CmdSoundAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            SoundEditorView form = new SoundEditorView();

            if (form.ShowDialog(this) == DialogResult.OK)
            {
                this.ListObjects();
            }
        }
        private void CmdSoundEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (grdAreasView.SelectedRowsCount <= 0)
            {
                MessageBox.Show("No sound has been selected from list.", Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            try
            {
                int[] selRows = grdAreasView.GetSelectedRows();
                Sound sound   = grdAreasView.GetRow(selRows[0]) as Sound;

                SoundEditorView form = new SoundEditorView(sound);
                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    this.ListObjects();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }