示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            int with = 0;

            touch = new FreeTouch(this);
            dataGridView1.Rows.Add(Table.ROW_COUNT);
            //调整控件宽度
            for (int i = 0; i < Table.COLUMN_COUNT; i++)
            {
                with += dataGridView1.Columns[i].Width;
            }
            dataGridView1.Width = with + dataGridView1.RowHeadersWidth + 10;
            Width       = dataGridView1.Width + 13;
            label1.Text = "";
        }
示例#2
0
 public ControlsLocateForm(Form1 form1)
 {
     InitializeComponent();
     this.form1 = form1;
     touch      = form1.GetFreeTouch();
 }
示例#3
0
 public SetPointForm(Form1 form1)
 {
     InitializeComponent();
     this.form1 = form1;
     touch      = form1.GetFreeTouch();
 }