コード例 #1
0
ファイル: Filters.xaml.cs プロジェクト: ninjawerk/Safire2
        public Filters()
        {
            InitializeComponent();

            SupportSkinner.SetSkin(this);
            InvalidateVisual();
        }
コード例 #2
0
ファイル: File_Types.xaml.cs プロジェクト: ninjawerk/Safire2
        public File_Types()
        {
            InitializeComponent();
            SupportSkinner.SetSkin(this);
            InvalidateVisual();

            foreach (var v in pan.Children)
            {
                if (v.GetType() == typeof(CheckBox))
                {
                    var c = v as CheckBox;
                    var f = new AF_FileAssociator(c.Content.ToString());

                    //var t = FileAssociation.GetExecFileAssociatedToExtension(c.Content.ToString());
                    c.Checked   += c_Checked;
                    c.Unchecked += c_Unchecked;
                    if (Main.MyPath() + "\\Safire 2.0.exe" == f.Executable.Path)
                    {
                        c.IsChecked = true;
                    }
                    else
                    {
                        c.IsChecked = false;
                    }
                }
            }
        }
コード例 #3
0
ファイル: Cross_fade.xaml.cs プロジェクト: ninjawerk/Safire2
        public Cross_fade()
        {
            InitializeComponent();

            SupportSkinner.SetSkin(this);
            InvalidateVisual();
        }
コード例 #4
0
 public Background()
 {
     InitializeComponent();
     img.Source = Bitmap.GetImage("dbak.ee");
     SupportSkinner.SetSkin(this);
     InvalidateVisual();
 }
コード例 #5
0
ファイル: UserRequest.xaml.cs プロジェクト: ninjawerk/Safire2
 public UserRequest()
 {
     this.InitializeComponent();
     SupportSkinner.SetSkin(this);
     SupportSkinner.OnSkinChanged += SupportSkinner_OnSkinChanged;
     // Insert code required on object creation below this point.
 }
コード例 #6
0
ファイル: Play_Screen.xaml.cs プロジェクト: ninjawerk/Safire2
        public Play_Screen()
        {
            InitializeComponent();

            SupportSkinner.SetSkin(this);
            InvalidateVisual();
        }
コード例 #7
0
ファイル: Advanced.xaml.cs プロジェクト: ninjawerk/Safire2
        public Advanced()
        {
            InitializeComponent();
            ManagementObjectSearcher searcher
                = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");

            if (lfps != null)
            {
                lfps.Text = "(" + cfps.Value.ToString() + ") FPS";
            }

            string graphicsCard = string.Empty;

            foreach (ManagementObject mo in searcher.Get())
            {
                foreach (PropertyData property in mo.Properties)
                {
                    if (property.Name == "Description")
                    {
                        graphicsCard = property.Value.ToString();
                    }
                }
            }
            details.Text = "Graphics Card : " + graphicsCard
                           + "\n" + "DirectX Version : " + GetDirectxMajorVersion() + "\n";
            details.Text += "Max. Texture Size: " + RenderCapability.MaxHardwareTextureSize.Width + "x" + RenderCapability.MaxHardwareTextureSize.Height + "px.\n";

            string rc = "Rendering Capability: " + ((RenderCapability.Tier == 0) ? "Okay" : (RenderCapability.Tier == 1) ? "Good" : "Excellent");

            details.Text += rc + "\n";
            SupportSkinner.SetSkin(this);
            InvalidateVisual();
        }
コード例 #8
0
ファイル: TrackMenu.xaml.cs プロジェクト: ninjawerk/Safire2
        public TrackMenu()
        {
            SupportSkinner.SetSkin(this);
            InitializeComponent();

            SupportSkinner.SetSkin(this);
            SupportSkinner.OnSkinChanged += SupportSkinner_OnSkinChanged;
        }
コード例 #9
0
ファイル: Fingerprint.xaml.cs プロジェクト: ninjawerk/Safire2
        public FingerPrint()
        {
            SupportSkinner.SetSkin(this);
            InitializeComponent();


            SupportSkinner.SetSkin(this);
            SupportSkinner.OnSkinChanged += SupportSkinner_OnSkinChanged;
        }
コード例 #10
0
ファイル: Scrobbler.xaml.cs プロジェクト: ninjawerk/Safire2
 public Scrobbler()
 {
     InitializeComponent();
     SupportSkinner.SetSkin(this);
     InvalidateVisual();
     LastFm.MySessionChanged += LastFm_MySessionChanged;
     usr.Text   = "Username: "******"Real name: " + LastFm.GetRealName();
 }
コード例 #11
0
        public Updates()
        {
            InitializeComponent();

            SupportSkinner.SetSkin(this);
            InvalidateVisual();
            Definition cdef = Util.BinaryDeSerializeObject <Definition>(CoreMain.MyPath() + @"\myDef.bin");

            if (cdef != null)
            {
                currentVersion.Text = "Current version details:\nVersion: \t" + cdef.Version + "\nReleased on:" +
                                      cdef.ReleasedDateTime.ToShortDateString();
            }
        }
コード例 #12
0
ファイル: Themes.xaml.cs プロジェクト: ninjawerk/Safire2
 private void baseselected(object sender, System.Windows.RoutedEventArgs e)
 {
     for (int i = 0; i < accentColors.Children.Count; i++)
     {
         if (baseColors.Children[i] == sender)
         {
             var currentAccent = ThemeManager.Accents.ElementAt(Settings.Default.AccentIndex);
             var currentTheme  = ThemeManager.AppThemes.ElementAt(i);
             var mw            = Application.Current.MainWindow as MainWindow;
             if (mw != null)
             {
                 ThemeManager.ChangeAppStyle(mw, currentAccent, currentTheme);
             }
             SupportSkinner.TriggerSkinChanges(Settings.Default.BaseIndex, i);
             break;
         }
     }
 }
コード例 #13
0
ファイル: Welcome.xaml.cs プロジェクト: ninjawerk/Safire2
        public Welcome()
        {
            SupportSkinner.SetSkin(this);
            InitializeComponent();
            ManagementObjectCollection mbsList = null;
            var mbs = new ManagementObjectSearcher("Select * From Win32_processor");

            mbsList = mbs.Get();

            foreach (ManagementObject mo in mbsList)
            {
                devid = mo["ProcessorID"].ToString();
            }

            //betaKey.Text = new string(betaKey.Text.Reverse().ToArray());
            nextControls.FadeIn();
            //devID.Text = devid;
            SupportSkinner.SetSkin(this);
            SupportSkinner.OnSkinChanged += SupportSkinner_OnSkinChanged;
        }
コード例 #14
0
        public SettingsWindow()
        {
            SupportSkinner.SetSkin(this);
            InitializeComponent();


            TreeViewItem item = new TreeViewItem();

            item.Header      = "Appearance";
            item.ItemsSource = new string[] { "Themes", "Background", "Advanced" };


            TreeViewItem item1 = new TreeViewItem();

            item1.Header      = "Player";
            item1.ItemsSource = new string[] { "Library", "Plugins", "Play Screen", "Updates" };

            TreeViewItem item2 = new TreeViewItem();

            item2.Header      = "Audio";
            item2.ItemsSource = new string[] { "General", "Crossfade", "Volume", };

            TreeViewItem item3 = new TreeViewItem();

            item3.Header      = "Services";
            item3.ItemsSource = new string[] { "Scrobbler", "Media Content", "Top Charts" };


            tVw.Items.Add(item);
            tVw.Items.Add(item1);
            tVw.Items.Add(item2);
            tVw.Items.Add(item3);

            SupportSkinner.SetSkin(this);
            SupportSkinner.OnSkinChanged += SupportSkinner_OnSkinChanged;
        }
コード例 #15
0
 void SupportSkinner_OnSkinChanged()
 {
     SupportSkinner.SetSkin(this);
 }
コード例 #16
0
ファイル: Library.xaml.cs プロジェクト: ninjawerk/Safire2
 public Library()
 {
     InitializeComponent();
     SupportSkinner.SetSkin(this);
     InvalidateVisual();
 }
コード例 #17
0
 public Media_Content()
 {
     InitializeComponent();
     SupportSkinner.SetSkin(this);
     InvalidateVisual();
 }
コード例 #18
0
 public Psycho_Acoustics()
 {
     InitializeComponent();
     SupportSkinner.SetSkin(this);
     InvalidateVisual();
 }
コード例 #19
0
 protected override void OnInitialized(EventArgs e)
 {
     SupportSkinner.SetSkin(this);
     base.OnInitialized(e);
     SupportSkinner.OnSkinChanged += SupportSkinner_OnSkinChanged;
 }