コード例 #1
0
        private void Pic_MouseDown(object sender, MouseEventArgs e)
        {
            MouseIsDown = true;
            MouseRect   = new Rectangle(e.X, e.Y, 0, 0);
            Rectangle rec = new Rectangle(0, 0,
                                          Math.Min(PContainer.ClientRectangle.Width, Pic.ClientRectangle.Width),
                                          Math.Min(PContainer.ClientRectangle.Height, Pic.ClientRectangle.Height));

            Cursor.Clip = PContainer.RectangleToScreen(rec);
        }
コード例 #2
0
 private void Inference_Tracer_Load(object sender, EventArgs e)
 {
     Core_Ref.VariablesPB  = PBTracing;
     Core_Ref.LBFiredRules = LBFiredRules;
     Core_Ref.G            = PContainer.CreateGraphics();
     if (Core_Ref.VariablesCount == 0)
     {
         Core_Ref.LoadVariablesData();
     }
     Core_Ref.InitilizeInferenceDrawing();
     MainForm.RunInferenceTracer = true;
 }