public void ClearSegments() { if (_segmentslist.Count > 0) { if (Microsoft.MediaCenter.Hosting.AddInHost.Current.MediaCenterEnvironment.Dialog("Are you shure you want to clear cut list?", "Cut List not empty", (DialogButtons)12, 0, true) == DialogResult.Yes) { _segmentslist.Clear(); _listchanged = true; } } }
public VideoItems() { m_Choice = new Choice(); List = new ArrayListDataSet(); string junk = "test"; //workaround to add list without crashing //this is a known issue - if you bind an empty list to a choice, it crashes. List.Add(junk); m_Choice.Options = List; List.Clear(); }
private void LoadSamples(string CategoryID) { DataTableReader readerSample = new DataTableReader(dataSet.Tables["Sample"]); Samples.Clear(); DataRow[] rowCollection = GetSelectedDataRows(dataSet.Tables["Sample"], "CategoryID='" + CategoryID + "'"); foreach (DataRow row in rowCollection) { // Uncomment this line to write out the rows... // WriteDebugMessage("LoadSamples.Row: " + row["SampleName"].ToString()); Samples.Source.Add(row["SampleName"].ToString()); } WriteDebugMessage("LoadSamples"); }