예제 #1
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (!TabVisualize)
         {
             List <PartitionInfo> _partInfo = new List <PartitionInfo>();
             this.CopyPartitionInfoList.ForEach(_cpi => _partInfo.Add(_cpi.PartitionInfo));
             ClusterDatails cd = new ClusterDatails(_partInfo, (int)((Button)sender).Tag);
             cd.ShowDialog();
         }
         else
         {
             if (NewStructuringEventHandler != null)
             {
                 CopyPartitionInfo temp = CopyPartitionInfoList[(int)((Button)sender).Tag];
                 NewStructuringEventHandler(this, new NewStructuringEventArgs(temp.PartitionInfo));
             }
         }
     }
     catch (Exception _ex)
     {
         GeneralTools.Tools.WriteToLog(_ex);
     }
 }
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (!TabVisualize)
         {
             List<PartitionInfo> _partInfo = new List<PartitionInfo>();
             this.CopyPartitionInfoList.ForEach(_cpi => _partInfo.Add(_cpi.PartitionInfo));
             ClusterDatails cd = new ClusterDatails(_partInfo, (int)((Button)sender).Tag);
             cd.ShowDialog();
         }
         else
         {
             if (NewStructuringEventHandler != null)
             {
                 CopyPartitionInfo temp = CopyPartitionInfoList[(int)((Button)sender).Tag];
                 NewStructuringEventHandler(this, new NewStructuringEventArgs(temp.PartitionInfo));
             }
         }
     }
     catch (Exception _ex)
     {
         GeneralTools.Tools.WriteToLog(_ex);
     }
 }