コード例 #1
0
 private void annoSettingsButton_Click(object sender, RoutedEventArgs e)
 {
     if (AnnoTierStatic.Selected != null)
     {
         AnnoTierSettingsWindow window = new AnnoTierSettingsWindow();
         window.DataContext           = AnnoTierStatic.Selected;
         window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         window.ShowDialog();
         updateAnnoInfo(AnnoTierStatic.Selected);
         AnnoTierStatic.Selected.AnnoList.HasChanged = true;
     }
 }
コード例 #2
0
 private void annoSettingsButton_Click(object sender, RoutedEventArgs e)
 {
     if (AnnoTierStatic.Selected != null)
     {
         AnnoTierSettingsWindow window = new AnnoTierSettingsWindow();
         window.DataContext           = AnnoTierStatic.Selected;
         window.WindowStartupLocation = WindowStartupLocation.CenterScreen;
         window.ShowDialog();
         control.annoTierControl.UpdateRowHeight(AnnoTierStatic.Selected, AnnoTierStatic.Selected.FixedSize);
         if (control.annoTierControl.Height < AnnoTierStatic.Selected.FixedSize)
         {
             control.annoTierControl.Height = AnnoTierStatic.Selected.FixedSize;
         }
         updateAnnoInfo(AnnoTierStatic.Selected);
         AnnoTierStatic.Selected.AnnoList.HasChanged = true;
     }
 }