Transform.Lib/Forms/DialogConfig.cs

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace YLScsDrawing.Forms
{
    public partial class DialogConfig : Form
    {
        public DialogConfig()
        {
            InitializeComponent();
        }

        int w, h;
        Color canvasColor = Color.Transparent;
        bool isBiline = false;

        public int CanvasWidth
        {
            set { w = value; }
            get { return w; }
        }

        public int CanvasHeight
        {
            set { h = value; }
            get { return h; }
        }

        public Color CanvasColor
        {
            set { canvasColor = value; }
            get { return canvasColor; }
        }

        public bool IsBilineInterpolation
        {
            set { isBiline = value; }
            get { return isBiline; }
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            lblCanvasColor.BackColor = canvasColor;
            rbInterpo.Checked = isBiline;
            textBoxH.Text = h.ToString();
            textBoxW.Text = w.ToString();
        }

        private void rbInterpo_CheckedChanged(object sender, EventArgs e)
        {
            isBiline = rbInterpo.Checked;
        }

        private void textBoxW_KeyPress(object sender, KeyPressEventArgs e)
后面还有 30 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。