Beispiel #1
0
        public void MakeLayerTransForm(bool isTranslateFormTopMostFlag, bool isProcessTransFlag)
        {
            if (MyLayerTransForm == null)
            {
                MyLayerTransForm = new TransFormLayer();

                MyLayerTransForm.Name          = "TransFormLayer";
                MyLayerTransForm.StartPosition = FormStartPosition.Manual;
                MyLayerTransForm.Location      = new Point(20, Screen.PrimaryScreen.Bounds.Height - 300);
                MyLayerTransForm.setTopMostFlag(isTranslateFormTopMostFlag);
                MyLayerTransForm.Show();
                MyLayerTransForm.UpdateTransform();
            }
            else
            {
                Util.ShowLog("Active layer");
                MyLayerTransForm.setTopMostFlag(isTranslateFormTopMostFlag);
                MyLayerTransForm.Activate();
                MyLayerTransForm.Show();
                MyLayerTransForm.UpdateTransform();
            }


            if (isProcessTransFlag == false)
            {
                MyLayerTransForm.disableOverHitLayer();
                MyLayerTransForm.setVisibleBackground();
            }
            else
            {
                MyLayerTransForm.setOverHitLayer();
                MyLayerTransForm.setInvisibleBackground();
            }
        }