private void Next_Click(object sender, EventArgs e)
        {
            switch (j)
            {
            case 0:
                switch (which_t)
                {
                case "Folder":
                    var extensions = new List <string> {
                        ".swm", ".wim", ".esd"
                    };
                    string[] files = Directory.GetFiles(Path.Text, "*.*", SearchOption.AllDirectories).Where(f => extensions.IndexOf(System.IO.Path.GetExtension(f)) >= 0).ToArray();
                    if (files.Length == 0)
                    {
                        MessageBox.Show("It isn't an official Windows iso!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                    else
                    {
                        IntegrateOS.Moving.Form(this, new IntegrateOS.Select_Image_File(files, Location));
                    }
                    break;

                case "DVD":
                    IntegrateOS.Moving.Form(this, new IntegrateOS.Extract_iso(Location)); break;

                default:
                    IntegrateOS.Temporary_I.var = which_t.ToLower();
                    IntegrateOS.Moving.Form(this, new Select_Windows_Edition(Location));
                    break;
                }

                break;

            case 1:
                IntegrateOS.Tools_location.Mount.path_to_mount = which_t;
                Moving.Form(this, new Select_Windows_Edition(Location, 2));
                break;

            case 2:
                Tools_location.Conversion.convert_path_type = which_t;
                Tools_location.Conversion.convert_path      = Path.Text;
                Moving.Form(this, new Select_Windows_Edition(Location, 1));
                break;


            case 3:
                IntegrateOS.Tools_location.Conversion.to_convert_path      = Path.Text;
                IntegrateOS.Tools_location.Conversion.to_convert_part_type = which_t;
                IntegrateOS.Tools_location.Conversion.conversion_code      = Conversion_Code.SelectedIndex;
                if (textBox1 != null && which_t == "SWM")
                {
                    IntegrateOS.Tools_location.Conversion.swm_partition_type = float.Parse(textBox1.Text);
                }
                Moving.Form(this, new Convert_windows_type(Location));

                break;
            }
        }
Exemple #2
0
 private void Linux_Installation_Click(object sender, EventArgs e)
 {
     if (tools_t == 0)
     {
         Moving.Form(this, new IntegrateOS.Select_installation(Location, 4));
     }
     else
     {
         Moving.Form(this, new IntegrateOS.Select_tools_type(Location, 1));
     }
 }
Exemple #3
0
 private void XShown(object sender, EventArgs e)
 {
     x.Start();
     while (x.IsAlive)
     {
         Application.DoEvents();
     }
     if (x.IsAlive == false)
     {
         var dialog = MetroFramework.MetroMessageBox.Show(this, "Conversion completed!", "Conversion complete", MessageBoxButtons.OK, MessageBoxIcon.Information, IntegrateOS_var.color_t);
         if (dialog == DialogResult.OK)
         {
             Moving.Form(this, new Basic_tools(Location));
         }
     }
 }
        private void CheckEnter(object sender, System.Windows.Forms.KeyPressEventArgs e)
        {
            if (e.KeyChar == (char)13)
            {
                string s = textBox1.Text;
                textBox1.Clear();
                richTextBox1.AppendText("IntegrateOS@Beta> " + s + "\n");
                switch (s)
                {
                case "help":
                    richTextBox1.AppendText("\nThe commands are:\n");
                    richTextBox1.AppendText("\nhelp - you see the available commands");
                    richTextBox1.AppendText("\nexit - you will leave the form\n");
                    break;

                case "exit":
                    Moving.Form(this, new Basic_tools(Location));
                    break;

                case "clear":
                    richTextBox1.Clear();
                    break;

                default:
                    List <string> list = new List <string>();

                    System.Threading.Thread t = new System.Threading.Thread(() =>
                    {
                        CMD_Process_Class x = new CMD_Process_Class();
                        x.Process_CMD(s);
                        list = x.Get();
                        x.Dispose();
                    });
                    t.Start();
                    while (t.IsAlive == true)
                    {
                    }
                    for (int i = 0; i < list.Count; i++)
                    {
                        richTextBox1.AppendText(list[i]);
                    }
                    break;
                }
            }
        }
        private void Back_Click(object sender, EventArgs e)
        {
            switch (j)
            {
            case 0:
                Moving.Form(this, new Selection_os(Location)); break;

            case 3:
                Moving.Form(this, new Select_installation(Location, 2)); break;

            case 4:
                Moving.Form(this, new Selection_os(Location)); break;

            default:
                Moving.Form(this, new Basic_tools(Location));
                break;
            }
        }
Exemple #6
0
        private void Timer1_Tick(object sender, EventArgs e)
        {
            Progress_Bar.Minimum   = 0;
            Progress_Bar.Maximum   = 100;
            Progress_Bar.Enabled   = true;
            Progress_Timer.Enabled = true;
            string extractTo = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName());

            Directory.CreateDirectory(extractTo);
            if (Progress_Bar.Value == 0)
            {
                string s = IntegrateOS.Temporary_I.locatie;
                ExtractISO(s, extractTo);
                Progress_Bar.Value   = 100;
                Progress_Number.Text = Progress_Bar.Value.ToString() + " %";
                Progress_Number.Refresh();
                Progress_Timer.Stop();
            }
            if (Progress_Bar.Value == 100)
            {
                var extensions = new List <string> {
                    ".swm", ".wim", ".esd"
                };
                string[] files = Directory.GetFiles(extractTo, "*.*", SearchOption.AllDirectories)
                                 .Where(f => extensions.IndexOf(Path.GetExtension(f)) >= 0).ToArray();
                if (files.Length == 0)
                {
                    MessageBox.Show("It isn't an official Windows iso!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    Progress_Timer.Enabled = false;
                    Progress_Timer.Stop();
                    Moving.Form(this, new Select_installation(Location));
                }
                else
                {
                    Moving.Form(this, new Select_Image_File(files, Location));
                }
            }
        }
Exemple #7
0
        private void metroButton3_Click(object sender, EventArgs e)
        {
            bool   quick_format = false;
            string com2         = this.comboBox2.GetItemText(this.comboBox2.SelectedItem);
            string com3         = this.comboBox3.Text;

            if (com2 == "Fast")
            {
                quick_format = true;
            }
            string com4 = this.comboBox4.GetItemText(this.comboBox4.SelectedItem);
            string com1 = this.comboBox1.Text;
            int    t    = 4096;

            if (com4 == "8 KB")
            {
                t = 8192;
            }
            if (com4 == "16 KB")
            {
                t = 16384;
            }
            if (com4 == "32 KB")
            {
                t = 32768;
            }
            if (com4 == "64 KB")
            {
                t = 65536;
            }
            if (textBox1.Text.Length < 0)
            {
                textBox1.Text = "Local Disk";
            }

            Moving.Form(this, new Format(Location, com1, textBox1.Text, t, com3, quick_format));
        }
Exemple #8
0
 private void Format_Load(object sender, EventArgs e)
 {
     this.StyleManager   = IntegrateOS.Themes.Generate(IntegrateOS.IntegrateOS_var.color, IntegrateOS.IntegrateOS_var.theme);
     Message_Label.Theme = IntegrateOS.IntegrateOS_var.theme;
     temp = new Thread(() =>
     {
         if (FormatDrive(format_t, partition_name_type, format_type_fileSystem, format_type_quickformat, format_type_cluster) == true)
         {
             Invoke(new Action(() =>
             {
                 temp.Abort();
                 Moving.Form(this, new Windows_Installation(punct));
             }));
         }
         else
         {
             Invoke(new Action(() => { temp.Abort(); }));
         }
     })
     {
         IsBackground = true
     };
     temp.Start();
 }
Exemple #9
0
 public void Wcommandmode_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Command_Prompt(Location));
 }
Exemple #10
0
 private void Tools_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Basic_tools(this.Location));
 }
Exemple #11
0
 private void Select_installation_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new IntegrateOS.Select_installation(Location, 1));
 }
Exemple #12
0
 private void Advanced_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Advanced_Settings(Location));
 }
Exemple #13
0
 private void Linux_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new license(Location, "linux", metroLabel11.Text));
 }
Exemple #14
0
 private void Windows_PE_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Not_Ready(Location));
 }
Exemple #15
0
 private void Integrate_License_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new license(Location, "ios", metroLabel6.Text));
 }
Exemple #16
0
 private void Convert_Windows_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new IntegrateOS.Select_installation(Location, 2));
 }
Exemple #17
0
 private void metroButton4_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new IntegrateOS.Select_Partition(Location));
 }
Exemple #18
0
 private void Compress_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Not_Ready(Location)); ///Code 5
 }
Exemple #19
0
 private void Back_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Menu(IntegrateOS.Temporary_I.version, this.Location));
 }
Exemple #20
0
 private void DiscUtils_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new license(Location, "disc", metroLabel9.Text));
 }
Exemple #21
0
 private void Back_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Select_tools_type(Location, os));
 }
Exemple #22
0
 private void Back_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Licenses(this.Location));
 }
Exemple #23
0
 private void button1_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Menu("IntegrateOS Full Version: v0.2.8.5_betaC1", Location));
 }
Exemple #24
0
 private void MetroFramework_License_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new license(Location, "metro", metroLabel8.Text));
 }
Exemple #25
0
 private void button4_Click(object sender, EventArgs e)
 {
     IntegrateOS.Temporary_I.locatie = checkedListBox1.Items[checkedListBox1.SelectedIndex].ToString();
     Moving.Form(this, new IntegrateOS.Select_Windows_Edition(Location));
 }
Exemple #26
0
 private void Microsoft_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new license(Location, "microsoft", metroLabel10.Text));
 }
Exemple #27
0
 private void Tools_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Selection_os(Location, 1));
 }
Exemple #28
0
 private void Back_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Settings_Menu(Location));
 }
Exemple #29
0
 private void Themes_Click(object sender, EventArgs e)
 {
     Moving.Form(this, new Settings(Location));
 }