예제 #1
0
 private void languajeselector_Load(object sender, EventArgs e)
 {
     this.Location = new Point(1, 1);
     if (GR3_UiF.Properties.Settings.Default.lenguaje != "")
     {
         this.ShowInTaskbar = false;
         this.Visible       = false;
         this.Opacity       = 0;
         Selector_de_modo selec = new Selector_de_modo();
         selec.Show();
     }
     else
     {
         if (File.Exists("Downloadlog.gr3a"))
         {
             File.Delete("Downloadlog.gr3a");
         }
         if (Directory.Exists("portraits"))
         {
             foreach (var a in Directory.GetFiles(@"portraits/"))
             {
                 File.Delete(a);
             }
         }
         else
         {
             Directory.CreateDirectory("portraits");
         }
     }
 }
예제 #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            if (lenguaje.Length > 0)
            {
                GR3_UiF.Properties.Settings.Default.lenguaje = lenguaje;
                GR3_UiF.Properties.Settings.Default.Save();
            }
            else
            {
                GR3_UiF.Properties.Settings.Default.lenguaje = "eng";
                GR3_UiF.Properties.Settings.Default.Save();
            }

            this.ShowInTaskbar = false;
            this.Visible       = false;
            this.Opacity       = 0;
            string aa      = "";
            var    elarray = 0;

            aa = "";
            if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\downloadlog.gr3"))
            {
                aa = File.ReadAllText(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) + @"\downloadlog.gr3");
            }
            if (aa.Length > 20)
            {
                elarray = aa.Split('$').Length;
            }



            if (elarray > 1)
            {
                Selector_de_modo selec = new Selector_de_modo();
                selec.Show();
            }
            else
            {
                Form1 selec = new Form1();
                selec.Show();
            }
        }