private void checkBox1_CheckedChanged(object sender, EventArgs e) { if (registrationControl != null) { registrationControl.model.warpStyle = ((CheckBox)sender).Checked ? TransformationStyleFactory.getTransformationStyle(1) : TransformationStyleFactory.getDefaultTransformationStyle(); updateWarpStyle(); } }
public static TransformationStyle getDefaultTransformationStyle() { return(TransformationStyleFactory.getTransformationStyle(0)); }