示例#1
0
 public Form1()
 {
     InitializeComponent();
     timer = new Timer();
     timer.Interval = 100;
     timer.Tick += TimerOnTick;
     timer.Start();
     dragger = new WindowDragEffect(this);
     dragger.AddIgnoredType(pictureBox1.GetType());
     dragger.AddIgnoredType(button1.GetType());
     dragger.AddIgnoredType(scaleFactor_txt.GetType());
     dragger.ApplyDragging(this);
     dragger.DragStart += () => this.Opacity = 0.8;
     dragger.DragEnd += () => this.Opacity = 1.0;
 }
示例#2
0
 public AreaSelector()
 {
     InitializeComponent();
     var dragger = new WindowDragEffect(this);
     dragger.ApplyDragging(this);
 }