Ejemplo n.º 1
0
        /// <summary>
        /// 构造函数初始化调整操作窗口在屏幕上的位置
        /// </summary>
        public dataCollectForm(optForm opt, createProForm1 c1, createProForm2 c2)
        {
            InitializeComponent();

            this.home = opt;
            this.c1   = c1;
            this.c2   = c2;

            //调整位置
            int w = Screen.GetWorkingArea(this).Width;
            int h = Screen.GetWorkingArea(this).Height;

            this.Left = w - this.Width;
            this.Top  = (h - this.Height) / 2;

            this.refereeData.Text = "主裁判:       第一助理裁判:        第二助理裁判:         第四官员:           ";

            this.number.Width              = this.dataGridView1.Size.Width / 7;
            this.timeOfEvent.Width         = this.dataGridView1.Size.Width / 7;
            this.coordinateOfReferee.Width = this.dataGridView1.Size.Width / 7;
            this.eventOfGame.Width         = this.dataGridView1.Size.Width * 25 / 70;
            this.coordinateOfEvent.Width   = this.dataGridView1.Size.Width / 7;

            this.pictureBox1.ContextMenuStrip = this.contextMenuStrip1;

            this.g = pictureBox1.CreateGraphics();

            //不显示横向滚动条
            this.HorizontalScroll.Maximum = 0;
            this.AutoScroll             = false;
            this.VerticalScroll.Visible = false;
            this.AutoScroll             = true;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// btn1点击开始新建项目
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            createProForm1 newForm = new createProForm1(this);

            newForm.StartPosition = FormStartPosition.CenterScreen;
            this.Hide();
            newForm.Show();
        }
Ejemplo n.º 3
0
 public createProForm2(createProForm1 front, optForm opt)
 {
     InitializeComponent();
     this.last = front;
     this.home = opt;
 }