예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Rectangle r = RegionSelector.showDialog(sX.Value, sY.Value, sW.Value, sH.Value);

            sX.Value = r.X;
            sY.Value = r.Y;
            sW.Value = r.Width;
            sH.Value = r.Height;
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Rectangle r = RegionSelector.showDialog(tX.Value, tY.Value, tW.Value, tH.Value);

            tX.Value = r.X;
            tY.Value = r.Y;
            tW.Value = r.Width;
            tH.Value = r.Height;
        }