private void button2_Click(object sender, EventArgs e) { ArrayList CollectInfoList = new ArrayList(); GetCollectInfoId get = new GetCollectInfoId(CollectInfoList); if (get.ShowDialog() == DialogResult.OK) { string CollectInfoListString = ""; foreach (string CollectInfoId in CollectInfoList) CollectInfoListString += CollectInfoId + ","; if (CollectInfoList.Count != 0) CollectInfoListString = CollectInfoListString.Substring(0, CollectInfoListString.Length - 1); this.kryptonDropButton1.Text = CollectInfoListString; } }
private void button1_Click(object sender, ComponentFactory.Krypton.Toolkit.ContextPositionMenuArgs e) { ArrayList CollectInfoList = new ArrayList(); GetCollectInfoId get = new GetCollectInfoId(CollectInfoList); //GetCollectID get = new GetCollectID(list, this.kryptonDropButton1.Text.Split(',')); if (get.ShowDialog() == DialogResult.OK) { string CollectInfoListString = ""; foreach (string CollectInfoId in CollectInfoList) CollectInfoListString += CollectInfoId + ","; if (CollectInfoList.Count != 0) CollectInfoListString = CollectInfoListString.Substring(0, CollectInfoListString.Length - 1); if (CollectInfoListString.Trim() != "") this.kryptonDropButton1.Text = CollectInfoListString; } }
public void ChoseCollect() { ArrayList CollectInfoList = new ArrayList(); GetCollectInfoId get = new GetCollectInfoId(CollectInfoList); //GetCollectID get = new GetCollectID(list, this.kryptonDropButton1.Text.Split(',')); if (get.ShowDialog() == DialogResult.OK) { string CollectInfoListString = ""; foreach (string CollectInfoId in CollectInfoList) CollectInfoListString += CollectInfoId + ","; if (CollectInfoList.Count != 0) CollectInfoListString = CollectInfoListString.Substring(0, CollectInfoListString.Length - 1); if (CollectInfoListString.Trim() != "") this.kryptonDropButton1.Text = CollectInfoListString; } }