Example #1
0
        private void Resize(HDD hdd)
        {
            Process P = new Process();

            P.StartInfo.FileName = Filepath2Binary;
            String args = "modifymedium " + hdd.UUID + " --resize " + Int32.Parse(DesiredSize.Text);

            P.StartInfo.Arguments       = args;
            P.StartInfo.UseShellExecute = false;

            P.Start();
            P.WaitForExit();
            P.Close();
        }
Example #2
0
        private void Compact(HDD hdd)
        {
            Process P = new Process();

            P.StartInfo.FileName = Filepath2Binary;
            String args = "modifymedium " + hdd.UUID + " --compact";

            P.StartInfo.Arguments       = args;
            P.StartInfo.UseShellExecute = false;

            P.Start();
            P.WaitForExit();
            P.Close();
        }