private void Logo_MouseDown(object sender, MouseButtonEventArgs e)
 {
     if (CICOpen)
     {
         closeCIC();
     }
     else
     {
         if (CreateModsOpen)
         {
             closeCreateMods(100);
         }
         if (UtilitiesOpen)
         {
             closeUtilities(100);
         }
         if (TaskPaneOpen)
         {
             closeTaskPane(100);
         }
         CICOpen     = true;
         Logo.Source = (ImageSource)Logo.FindResource("LogoOnImage");
         if (SearchBox.Text.Trim() != string.Empty)
         {
             SearchOpen = true;
             searchPanel.BeginDoubleAnimation(WidthProperty, 300, 200);
         }
         CICPanel.BeginDoubleAnimation(WidthProperty, 650, 300);
     }
 }
Exemple #2
0
 public FlexMusicControl([Import("wispManager")] WispManagerInterface wispManager)
 {
     this.wispManager = wispManager;
     InitializeComponent();
     LogoShrinkAnimation = Logo.FindResource("Logo_ShrinkBPM") as Storyboard;
     Storyboard.SetTarget(Logo, LogoShrinkAnimation);
 }
 private void closeCIC(int duration = 300)
 {
     CICOpen     = false;
     Logo.Source = (ImageSource)Logo.FindResource("LogoOffImage");
     if (SearchOpen)
     {
         closeSearch(duration / 3);
     }
     if (AdvancedOpen)
     {
         closeAdvancedSettings(duration / 3);
     }
     if (ToolInfoPanelOpen)
     {
         closeToolInfo();
     }
     if (PathsPanelOpen)
     {
         closeGamePaths();
     }
     CICPanel.BeginDoubleAnimation(WidthProperty, 0, duration);
 }