Exemplo n.º 1
0
 private void Form2_Load(object sender, EventArgs e)
 {
     skine sk1 = new skine(this);
     sk1._controlbox = false;
     sk1.Panel_Move_Dark2 = Properties.Settings.Default.panelMoveColorDark;
     sk1.Panel_Move_light2 = Properties.Settings.Default.panelMoveColorLight;
     sk1.Border_LR_Dark2 = sk1.Panel_Move_Dark2;
     sk1.Border_LR_light2 = sk1.Panel_Move_Dark2;
     sk1.Border_Top_Dark2 = sk1.Panel_Move_Dark2;
     sk1.Border_Top_light2 = sk1.Panel_Move_Dark2;
     sk1.Border_Bottom_Dark2 = sk1.Panel_Move_Dark2;
     sk1.Border_Bottom_light2 = sk1.Panel_Move_Dark2;
     
     sk1.TextColor = Color.Yellow;
     
     FillViwe();
     FillCombo();
    
 }
Exemplo n.º 2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            Regis();
            
            loadSettings();
            LoadSettPraysTimer();
            panel_list.Hide();
            sk = new skine(this);

            loadSettingFormColor();
            sk.TextColor = Color.Yellow;

            effectFormDrop();
            //effectForm();

            if (setrnd.Checked)
            {
                setrnd.BackgroundImage = Reso.Activ;
            }
            else
            {
                setrnd.BackgroundImage = Reso.noActiv;

            }

            
                
            //pict.SendToBack();
            
            
            
           // panel_list.Hide();
           

            if (list_show == false)
            {

                
               
                p1.Width = this.ClientRectangle.Width - sk.Border_Size2 * 2;
                p1.Left = this.ClientRectangle.Left + 3;
                this.Left = this.Left - 6;
                
                panel_Control.Width = ClientRectangle.Width - sk.Border_Size2 * 2;
                panel_Control.Left = this.ClientRectangle.Left + 3;
                p1.Height = this.ClientRectangle.Height - 5 - panel_Control.Height - sk.Panel_Move_Size2 - (sk.Border_Size2 * 2);
                


            }
            else
            {

               
                p1.Width = this.ClientRectangle.Width - panel_list.Width - (sk.Border_Size2 * 2);
                panel_Control.Width = this.ClientRectangle.Width - panel_list.Width - 11;
                p1.Height = this.ClientRectangle.Height - panel_Control.Height - (sk.Border_Size2 * 2) - sk.Panel_Move_Size2;
            }

            System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(
                    @Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) +
                    @"\F_Player\albumes\");
            // path_albumes = dir;
            if (dir.Exists == false)
            {
                dir.Create();
            }
            System.IO.FileInfo f = new System.IO.FileInfo(@dir + @"albumes.xml");
            if (f.Exists == false)
            {
                
               // f.Create();
                string[] myTasks = {"<?xml version='1.0' encoding='utf-8' ?>",
                                           "<albumes></albumes>"
                };
                System.IO.File.WriteAllLines(@dir+@"albumes.xml", myTasks);
                //System.IO.File.
              
            }
            doc.Load(@dir +@"albumes.xml");
            XmlNode albumesnd = doc["albumes"];
            XmlNode alnd = albumesnd.FirstChild;
            while (alnd != null)
            {
                alc.Items.Add(alnd.Name);
                alnd = alnd.NextSibling;
            }
        }