Esempio n. 1
0
 /// <summary>
 /// 删除按钮按下的时候
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button2_Click(object sender, RoutedEventArgs e)
 {
     XAributeData.Remove((XAributeDataItem)Xaribute.SelectedItem);
 }
Esempio n. 2
0
 /// <summary>
 /// 添加属性的按钮事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     XAributeData.Add(new XAributeDataItem(System.Windows.Forms.Application.StartupPath + "//Icon//int.jpg", "newXaribute" + GetNumID()));
 }