Exemplo n.º 1
0
 static void HideOrShow(DX.UIElement u)
 {
     if (PSB.border.Visble)
     {
         PSB.border.Visble    = false;
         PSB.ellipse.Visble   = false;
         PSB.play.Visble      = false;
         PSB.Sharp.Visble     = false;
         PSB.Site.Visble      = false;
         PSB.progressA.Visble = false;
         PSB.progressB.Visble = false;
         PSB.progressC.Visble = false;
         PSB.sharpback.Visble = false;
         PSB.siteback.Visble  = false;
     }
     else
     {
         PSB.border.Visble    = true;
         PSB.ellipse.Visble   = true;
         PSB.play.Visble      = true;
         PSB.Sharp.Visble     = true;
         PSB.Site.Visble      = true;
         PSB.progressA.Visble = true;
         PSB.progressB.Visble = true;
         PSB.progressC.Visble = true;
         PSB.sharpback.Visble = true;
         PSB.siteback.Visble  = true;
     }
 }
Exemplo n.º 2
0
 static void PlayOrPause(DX.UIElement u)
 {
     if (me.CurrentState == MediaElementState.Playing)
     {
         PSB.play.Text = ((char)0xe102).ToString();
         me.Pause();
     }
     else
     {
         PSB.play.Text = ((char)0xe103).ToString();
         me.Play();
     }
     ThreadManage.UpdateUI = true;
 }
Exemplo n.º 3
0
        static void SelectChanged(DX.UIElement u)
        {
            ListBox lb    = u as ListBox;
            int     index = lb.SelectedIndex;

            if (index < 1)
            {
                return;
            }
            for (int ss = 0; ss < sp.Data.Count; ss++)
            {
                (sp.Data[ss] as IDisposable).Dispose();
            }
            sp.Data.Clear();
            SetNav(nav_index);
        }
Exemplo n.º 4
0
 static void Click(DX.UIElement u)
 {
     if (u == TextBar[0])
     {
         if (part < 1)
         {
             return;
         }
         else
         {
             part--;
         }
     }
     else
     {
         part++;
     }
     TextBar[1].Text = (part + 1).ToString();
     if (nav_index == 13)
     {
         if (over)
         {
             return;
         }
         for (int ss = 0; ss < sp.Data.Count; ss++)
         {
             (sp.Data[ss] as IDisposable).Dispose();
         }
         sp.Data.Clear();
         FindMore();
     }
     else
     {
         for (int ss = 0; ss < sp.Data.Count; ss++)
         {
             (sp.Data[ss] as IDisposable).Dispose();
         }
         sp.Data.Clear();
         SetNav(nav_index);
     }
 }
Exemplo n.º 5
0
 static void ShowAbout(DX.UIElement u)
 {
     if (about == null)
     {
         CreateAbout(Parent);
         ReDockAbout(margin);
         ThreadManage.UpdateUI = true;
     }
     else if (about.Visble)
     {
         about.Visble   = false;
         declare.Visble = false;
     }
     else
     {
         ReDockAbout(margin);
         about.Visble          = true;
         declare.Visble        = true;
         ThreadManage.UpdateUI = true;
     }
 }
Exemplo n.º 6
0
 static void ProgressChange(DX.UIElement u)
 {
     X = DX_Input.Position.X;
     Jump();
 }
Exemplo n.º 7
0
 static void PointerLeave(DX.UIElement u, Vector2 dot)
 {
     (u as TextBlock).SurfaceBrush = BrushManage.GetRadia_A();
     ThreadManage.UpdateUI         = true;
 }