Esempio n. 1
0
 private void tsmiCustom_Click(object sender, EventArgs e)
 {
     using (frmCustomTrackBounds frmCustomTrackBounds = new frmCustomTrackBounds()) {
         frmCustomTrackBounds.CustomBounds         = this.Bounds;
         frmCustomTrackBounds.CustomBoundsChanged += new EventHandler(
             (o, ea) => {
             this.Bounds = frmCustomTrackBounds.CustomBounds;
         });
         if (DialogResult.OK == frmCustomTrackBounds.ShowDialog(this))
         {
             // this.Bounds = frmCustomTrackBounds.CustomBounds;
         }
     }
 }
Esempio n. 2
0
 private void tsmiCustom_Click(object sender, EventArgs e)
 {
     using (frmCustomTrackBounds frmCustomTrackBounds = new frmCustomTrackBounds()) {
     frmCustomTrackBounds.CustomBounds = this.Bounds;
     frmCustomTrackBounds.CustomBoundsChanged += new EventHandler(
        (o, ea) => {
           this.Bounds = frmCustomTrackBounds.CustomBounds;
        });
     if (DialogResult.OK == frmCustomTrackBounds.ShowDialog(this)) {
        // this.Bounds = frmCustomTrackBounds.CustomBounds;
     }
      }
 }