private static Control CreateControlInstance()
        {
            CanvasSizeControl canvasSizeCtrl = new CanvasSizeControl();

            canvasSizeCtrl.Size        = new Size(170, 100);
            canvasSizeCtrl.MinimumSize = canvasSizeCtrl.Size;

            return(canvasSizeCtrl);
        }
        /*
         * OnUnsubscribeControlEvents
         */

        protected override void OnUnsubscribeControlEvents(Control control)
        {
            base.OnUnsubscribeControlEvents(control);

            CanvasSizeControl canvasSizeCtrl = (CanvasSizeControl)control;

            canvasSizeCtrl.ApplySettings  -= _canvasSizeCtrl_ApplySettings;
            canvasSizeCtrl.CancelSettings -= _canvasSizeCtrl_CancelSettings;
        }
		private static Control CreateControlInstance()
		{
			CanvasSizeControl canvasSizeCtrl = new CanvasSizeControl();
			canvasSizeCtrl.Size = new Size(170, 100);
			canvasSizeCtrl.MinimumSize = canvasSizeCtrl.Size;

			return canvasSizeCtrl;
		}