Exemple #1
0
        public static DriveInfo smethod_4(DataSize dataSize_1)
        {
            FrmSelectDrive frmSelectDrive = new FrmSelectDrive(dataSize_1);

            if (frmSelectDrive.ShowDialog() == DialogResult.OK)
            {
                return(frmSelectDrive.driveInfo_0);
            }
            return((DriveInfo)null);
        }
        private void cmdPrepareSd_Click(object sender, EventArgs e)
        {
            FrmSelectDrive frmSelectDrive = new FrmSelectDrive(new DataSize(5000000UL));

            if (frmSelectDrive.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            GClass94.smethod_9(frmSelectDrive.driveInfo_0);
            GClass94.smethod_10(frmSelectDrive.driveInfo_0);
        }
 private void method_0(bool bool_0)
 {
     this.lstDrives.Items.Clear();
     foreach (DriveInfo driveInfo in FrmSelectDrive.smethod_0(bool_0))
     {
         if (driveInfo.IsReady)
         {
             this.lstDrives.BeginEdit();
             this.lstDrives.Items.Add(new ListViewDataItem(driveInfo.Name)
             {
                 Image             = (Image)Class123.icnDisk,
                 Tag               = (object)driveInfo,
                 ImageAlignment    = ContentAlignment.TopCenter,
                 TextAlignment     = ContentAlignment.BottomCenter,
                 TextImageRelation = TextImageRelation.ImageAboveText
             });
             this.lstDrives.EndEdit();
         }
     }
 }