WindowsFormsApplication6/Form1.cs

(开头部分) 31KB

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

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

namespace MATPaint
{
    public partial class Form1 : Form
    {
        // for Pattern Status SAVE/Open functionality
        // to BE DONE....
        enum FileStatus { New, Open};
        FileStatus currentFile = FileStatus.New;
        bool isChanged = false;
        string matrixFileName = null;

        public Form1()
        {
            InitializeComponent();
        }
        public Form1(string matrixFileNameARG) {
            InitializeComponent();
            matrixFileName = matrixFileNameARG;
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.Location = Properties.Settings.Default.appLocation;
            this.WindowState = Properties.Settings.Default.appState;
            this.Size = Properties.Settings.Default.appSize;
            num_Col.Value = Properties.Settings.Default.MatCols;
            num_Row.Value = Properties.Settings.Default.MatRows;
            recent1toolStripMenuItem.Text = Properties.Settings.Default.Recent1;
            recent2toolStripMenuItem.Text = Properties.Settings.Default.Recent2;
            recent3toolStripMenuItem.Text = Properties.Settings.Default.Recent3;
            bt_RotataClock.Enabled = false;
            bt_RotateAnticlock.Enabled = false;
            if (matrixFileName != null)
            {
                OpenMatrix(matrixFileName);
                currentFile = FileStatus.Open;
                isChanged = false;
            }
            else
            {
                currentFile = FileStatus.New;
                NewMatrix();
            }
            UpdateMatrixCellSize();

            // Tooltip 
            System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip();
            ToolTip1.SetToolTip(this.num_Col, "Select the Width");
            ToolTip1.SetToolTip(this.num_Row, "Select the Height");
            ToolTip1.SetToolTip(this.cmbx_Grid, "Select the size of the block");
            ToolTip1.SetToolTip(this.bt_MatrixCreate, "To create and display the matrix of provided parameters");
后面还有 679 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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