Пример #1
0
 private void refreshRequestMethod(RenameSelectSingl rss = null)
 {
     if(onRefreshRequest != null)
     {
         onRefreshRequest(this, new EventArgs(), rss);
     }
 }
Пример #2
0
 //在当前单元的下面添加一个新的重命名单元
 private void addBtn_Click(object sender, RoutedEventArgs e)
 {
     if(IsLoaded)
     {
         StackPanel par = this.Parent as StackPanel;
         if(par != null)
         {
             if(par.Children.Count == 1)
             {
                 (par.Children[0] as RenameSelectSingl).deleteBtn.IsEnabled = true;
             }
             RenameSelectSingl rss = new RenameSelectSingl();
             rss.deleteBtn.IsEnabled = true;
             par.Children.Insert(par.Children.IndexOf(this) + 1, rss);
             resetUpDownBtn(par);
             refreshRequestMethod(rss);
         }
     }
 }