Skip to content

Commit

Permalink
random
Browse files Browse the repository at this point in the history
  • Loading branch information
rounk-ctrl committed May 10, 2023
1 parent cf76825 commit 22f0f31
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 52 deletions.
40 changes: 20 additions & 20 deletions QEMUWF/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion QEMUWF/Form1.resx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAG
AQAAAk1TRnQBSQFMAwEBAAEYAQABGAEAARABAAEQAQAE/wEFAQAI/wFCAU0BdgcAAXYDAAEoAwABQAMA
AQAAAk1TRnQBSQFMAwEBAAEgAQABIAEAARABAAEQAQAE/wEFAQAI/wFCAU0BdgcAAXYDAAEoAwABQAMA
ARADAAEBAQABBAYAAQIYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAA4ADAAH/AgAB/wMA
Av8BAAH/AwAB/wEAAf8BAAL/AgAD//8A/wADAAFCAU0BPgcAAT4DAAEoAwABQAMAARADAAEBAQABAQUA
AYAXAAP/AQAB/AE/BgAB/AE/BgAB/AE/BgAB/AE/BgAB/AE/BgAB/AE/HgAB/AE/BgAB/AE/BgAB/AE/
Expand Down
64 changes: 33 additions & 31 deletions QEMUWF/Form3.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions QEMUWF/Form3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,13 @@ private void cretNew_CheckedChanged(object sender, EventArgs e)
if (cretNew.Checked)
{
comboBox6.Enabled = true;
button2.Enabled = true;
}
else
{
comboBox6.Enabled = false;
button2.Enabled = false;
}
}

private void button1_Click_1(object sender, EventArgs e)
Expand Down Expand Up @@ -135,5 +139,18 @@ private void Form3_Shown(object sender, EventArgs e)
Core.SetStaticControls(trackBar1, trackBar2, comboBox1, comboBox2, comboBox4, tabControl1, numericUpDown1);
comboBox6.SelectedIndex = 0;
}

private void button2_Click(object sender, EventArgs e)
{
SaveFileDialog sv = new SaveFileDialog();
sv.Title = "Please choose a location for the new virtual hard disk file";
sv.DefaultExt = ".qcow2";
sv.Filter =
"QEMU Copy On Write 2 (*.qcow2)|*.qcow2|QEMU Copy On Write (*.qcow)|*.qcow|Microsoft Virtual Hard Disk (*.vhd)|*.vhd|Microsoft Virtual Hard Disk Extended (*.vhdx)|*.vhdx|Raw disk (*.raw)|*.raw|Raw disk (*.img)|*.img|All files (*.*)|*.*";
if (sv.ShowDialog() == DialogResult.OK)
{
textBox3.Text = sv.FileName;
}
}
}
}

0 comments on commit 22f0f31

Please sign in to comment.