Пример #1
0
        /// <summary>
        /// Initializes the Basic Form
        /// </summary>
        private void InitBasic()
        {
            //initialize everything
            basicform = new BasicForm(pptController);
            // set it to "initialized but hidden"
            isBasicHidden           = MsoTriState.msoTrue;
            basicform.ShowInTaskbar = false;

            //TEST FIXME TODO -- also initialize cornerform
            // fix : this should be in a separate method
            cornerform = new CornerForm(basicform);
        }
Пример #2
0
 public Detector()
 {
     InitializeComponent();
     picture = new BasicForm();
     picture.parent_window = this;
     picture.Visible = false;
     dataGridView1.Rows.Add(23);
     for (int i = 0; i < 24; i++)
         this.dataGridView1[0, i].Value = Convert.ToString(i + 1);
     for (int i = 0; i < 24; i++)
         this.dataGridView1[1, i].Value = "";
     for (int i = 0; i < 24; i++)
         this.dataGridView1[2, i].Value = "";
     for (int i = 0; i < 24; i++)
         this.dataGridView1[3, i].Value = "";
     for (int i = 0; i < 24; i++)
         this.dataGridView1[4, i].Value = "";
     for (int i = 0; i < 24; i++)
         this.dataGridView1[6, i].Value = "";
     for (int i = 0; i < 24; i++)
     {
         this.dataGridView1.Rows[i].Cells[5].Value = "注射";
     }
 }
Пример #3
0
 /// <summary>
 /// Checks whether the input fPoint is "on" the passed shape, with error SHAPEMARGIN (should we pass in margin?)
 /// </summary>
 /// <param name="curPoint">a fPoint with the x and y values in PowerPoint coordinates</param>
 /// <param name="shape">the PowerPoint shape. May be rotated (but not yet flipped)/</param>
 /// <returns>true if the point and shape coincide, false else</returns>
 internal bool pointOnShape(BasicForm.fPoint curPoint, PowerPoint.Shape shape)
 {
     BasicForm.fPoint p = BasicForm.rotatePointWithShape(curPoint, shape);
     return(shape.Left - SHAPEMARGIN < p.x && p.x < shape.Width + shape.Left + SHAPEMARGIN &&
            shape.Top - SHAPEMARGIN < p.y && p.y < shape.Top + shape.Height + SHAPEMARGIN);
 }
Пример #4
0
 private void button4_Click(object sender, EventArgs e)
 {
     if (picture.IsDisposed)
     {
         picture = new BasicForm();
         picture.parent_window = this;
         picture.Visible = false;
     }
     picture.Left = this.Left + this.Size.Width;
     picture.Top  = this.Top;
     ;
     if (picture.Visible == false)
     {
         picture.Visible = true;
         set_hide_picture();
     }
     else
     {
         picture.Visible = false;
         set_show_picture();
     }
 }