本文整理汇总了C#中PlayList.Create方法的典型用法代码示例。如果您正苦于以下问题:C# PlayList.Create方法的具体用法?C# PlayList.Create怎么用?C# PlayList.Create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PlayList
的用法示例。
在下文中一共展示了PlayList.Create方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: addToPlButton_Click
private void addToPlButton_Click(object sender, EventArgs e)
{
try
{
string plName = PlBox.Text;
Int32 selectedRowCount =
plContentGrid.Rows.GetRowCount(DataGridViewElementStates.Selected);
int[] row = new int[selectedRowCount];
for (int i = 0; i < selectedRowCount; ++i)
{
row[i] = plContentGrid.SelectedRows[i].Index;
}
PlayList pl;
for (int i = 0; i < selectedRowCount; ++i)
{
pl = new PlayList(plName, Album.GetAlbumId(_pelems[row[i]].AlbumName),
Artist.CheckArtist(_pelems[row[i]].ArtistName),
TrackList.GetTrackId(_pelems[row[i]].TrackName));
pl.Create();
}
MessageBox.Show("Done!^_^", "TheResult");
}
catch
{
MessageBox.Show("Something bad has happened =(", "Whoops!");
}
}
示例2: createPlButton_Click
private void createPlButton_Click(object sender, EventArgs e)
{
try
{
string plname = plBox.Text;
if (plname != "")
{
Album tempal = Album.GetAlbumID("TestAlbum");
Artist tempar = Artist.CheckArtist("TestBand");
TrackList temptr = TrackList.GetTrackID("Test1");
PlayList pl = new PlayList(plname, tempal, tempar, temptr);
pl.Create();
}
MainForm.Instance().ChangeControl(new AddMusicSub());
}
catch
{
MessageBox.Show("Something bad has happened =(", "Whoops!");
}
}