Example #1
0
 public void Show()
 {
     XGrid.OpacityMask = this.Resources["OpenBrush"] as LinearGradientBrush;
     _stb            = this.Resources["OpenBoard"] as Storyboard;
     _stb.Completed += (s, e) =>
     {
         if (_stb == null)
         {
             return;
         }
         _stb.Remove();
         _stb = null;
         XGrid.OpacityMask = null;
         _mainWindow.StateSwitch(State.Setting);
     };
     _stb.Begin();
 }
Example #2
0
 public void LoadLeftImage()
 {
     Image2.Source      = Image1.Source;
     Image1.OpacityMask = this.Resources["OpenBrush"] as LinearGradientBrush;
     Image1.Source      = new BitmapImage(new Uri(_imagePathList[_current + 1], UriKind.RelativeOrAbsolute));
     _stb            = this.Resources["OpenBoard"] as Storyboard;
     _stb.Completed += (s, e) =>
     {
         if (_stb == null)
         {
             return;
         }
         _stb.Remove();
         _stb = null;
         Image1.OpacityMask = null;
         _current++;
         _mainWindow.StateSwitch(State.Normal);
         _mainWindow.CheckButton();
     };
     _stb.Begin();
 }