Ejemplo n.º 1
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     View.Item_Window tmp = new View.Item_Window();
     tmp.AddElement    += Item_AddElement;
     tmp.WindowClosing += Item_Closing;
     tmp.GetList       += Item_GetList;
     this.Enabled       = false;
     tmp.Show();
 }
Ejemplo n.º 2
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var          tmp  = new Wrapper();
            ListViewItem item = listView_Catalog.SelectedItems[0];

            selectedIndex = listView_Catalog.SelectedIndices[0];
            tmp.Artist    = item.Tag as string[];
            tmp.Title     = item.SubItems[1].Text;
            tmp.Album     = item.SubItems[2].Text;
            tmp.Genre     = item.SubItems[3].Tag as string[];
            tmp.Duration  = item.SubItems[4].Text;
            tmp.File      = item.SubItems[5].Tag as string;
            int id = FindEntry(tmp);

            View.Item_Window window = new View.Item_Window(tmp, id);
            window.EditElement   += Item_EditElement;
            window.WindowClosing += Item_Closing;
            window.GetList       += Item_GetList;
            this.Enabled          = false;
            window.Show();
        }