Exemplo n.º 1
0
 private void pbMonitor_Click(object sender, EventArgs e)
 {
     try
     {
         int            ix = this.dgConfigs.CurrentCell.RowIndex;
         CFSDriveConfig dc = this.myDrives[ix];
         if (!dc.Mounted)
         {
             MessageBox.Show(this, "Drive is not mounted", "Error", MessageBoxButtons.OK);
             return;
         }
         wfCFSMonitor fmon = new wfCFSMonitor(dc);
         fmon.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message + ex.StackTrace, "Monitor Failed", MessageBoxButtons.OK);
     }
 }
Exemplo n.º 2
0
 private void pbMonitor_Click(object sender, EventArgs e)
 {
     try
     {
         int ix = this.dgConfigs.CurrentCell.RowIndex;
         CFSDriveConfig dc = this.myDrives[ix];
         if (!dc.Mounted)
         {
             MessageBox.Show(this, "Drive is not mounted", "Error", MessageBoxButtons.OK);
             return;
         }
         wfCFSMonitor fmon = new wfCFSMonitor(dc);
         fmon.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message + ex.StackTrace, "Monitor Failed", MessageBoxButtons.OK);
     }
 }