Exemplo n.º 1
0
        public void ChengeOrientation(userSetting us)
        {
            int temp = this.Height;

            this.Height = this.Width;
            this.Width  = temp;

            us.orintation = !us.orintation;
            Refresh();
        }
Exemplo n.º 2
0
        public void ChengeSize(string size, userSetting us)
        {
            switch (size)
            {
            case "A4":
                if (us.orintation)
                {
                    this.Height = 1122;
                    this.Width  = 793;
                }
                else
                {
                    this.Height = 793;
                    this.Width  = 1122;
                }

                break;

            case "A5":
                if (us.orintation)
                {
                    this.Height = 793;
                    this.Width  = 529;
                }
                else
                {
                    this.Height = 529;
                    this.Width  = 793;
                }
                break;

            case "A3":
                if (us.orintation)
                {
                    this.Height = 1587;
                    this.Width  = 1096;
                }
                else
                {
                    this.Height = 1096;
                    this.Width  = 1587;
                }
                break;

            case "B4":
                if (us.orintation)
                {
                    this.Height = 1360;
                    this.Width  = 944;
                }
                else
                {
                    this.Height = 944;
                    this.Width  = 1360;
                }
                break;

            case "B5":
                if (us.orintation)
                {
                    this.Height = 944;
                    this.Width  = 680;
                }
                else
                {
                    this.Height = 680;
                    this.Width  = 944;
                }
                break;

            default:
                if (us.orintation)
                {
                    this.Height = 1122;
                    this.Width  = 793;
                }
                else
                {
                    this.Height = 793;
                    this.Width  = 1122;
                }
                break;
            }
            Refresh();
        }
Exemplo n.º 3
0
 public frmMain0()
 {
     InitializeComponent();
     UserSetting = new userSetting();
     drawArea1.Initialize(this);
 }