/// @brief コンストラクタ public AreaSelectForm(int bound_width, int bound_height, int screen_x, int screen_y, int width, int height) { //--------------------------------------------------------------- // DO NOT DELETE THIS!!! InitializeComponent(); //--------------------------------------------------------------- movable_and_resizable_ = new MovableAndResizable(this, bound_width, bound_height); // オリジナルの値を保持しておく original_x_ = screen_x; original_y_ = screen_y; original_width_ = width; original_height_ = height; // HACK!: 一応ここでも更新するが信頼できない Location = new Point(original_x_, original_y_); Size = new Size(original_width_, original_height_); // 初期化 clipping_x_ = screen_x; clipping_y_ = screen_y; clipping_width_ = width; clipping_height_ = height; }
//------------------------------------------------------------------- //------------------------------------------------------------------- // メソッド //------------------------------------------------------------------- /// @brief コンストラクタ public PreviewControl(int bound_width, int bound_height, int index_in_layout_parameter_binding_source, data.LayoutParameter layout_parameter) { InitializeComponent(); // メンバの設定 layout_parameter_ = layout_parameter; IndexInLayoutParameterBindingSource = index_in_layout_parameter_binding_source; movable_and_resizable_ = new MovableAndResizable(this, bound_width, bound_height); }