• 大小: 848KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-05-19
  • 语言: C#
  • 标签: C#  弹球  源码  

资源简介

基于C#的弹球软件,过程很简单,模仿手机内存清理功能。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
//using System.Drawing.
using System.Drawing.Text;

namespace MyCalculator
{
    public partial class ball : Form
    {
        public ball()
        {
            InitializeComponent();
            lineCenterX = (this.Width / 2);
            lineCenterY = (this.Height - 120);
            
       
            //this.toolStripStatusLabel1.Text=
            //x1 = 0; y1 = this.Height - 50;
            //x2 = this.pictureBox1.Location.X; y2 = this.pictureBox1.Location.Y;
            //x3 = this.pictureBox1.Location.X + 20; y3 = this.pictureBox1.Location.Y;
            //x4 = this.Width - 10; y4 = this.Height - 50;
            //Graphics g = this.CreateGraphics();
            //g.DrawBezier(new System.Drawing.Pen(Color.Blue 4) x1 y1 x2 y2 x3 y3 x4 y4);
         }
        
//      static public float x1x2x3x4y1y2y3y4;//曲线定义数据

        static public int mouseX mouseY;// 鼠标数据定义

        static public int mouseX_P mouseY_P;//鼠标相对位置

        static public int chickX chickYchicknumber;//  鼠标点击坐标点击次数

        static public bool chick_P;//是否点击

        static public int ballX ballY;//球的中心坐标

        static public float lineCenterX lineCenterY;//线的中点坐标

        static public int p_left p_right p_up  x y;

        static public float KXYB;//斜率


        private void ball_Load(object sender EventArgs e)
        {
            
        }

        public void paintline(float x10 float y10 float x20 float y20)//原始画画函数
                {
                    System.Threading.Thread.CurrentThread.Priority = System.Threading.ThreadPriority.Highest;
                    Pen blackPen = new Pen(Color.Blue 3);
                    Graphics e = this.CreateGraphics();
                    e.DrawLine(blackPen x10 y10 x20 y20);
                    
                      
                }


        private void ball_enter_chickdown(object sender MouseEventArgs e)//鼠标按下
        {
            chick_P = true;
            chickX = e.X;
            chickY = e.Y;
            chicknumber++;
            if (chicknumber % 2 == 0)
            {
                this.pictureBox1.Image = global::MyCalculator.Properties.Resources.Aqua_Ball;
            }
            else if (chicknumber%2==1)
         
            {
                this.pictureBox1.Image = global::MyCalculator.Properties.Resources.Aqua_Ball_Red;
            }
        }

        private void mouseEnter_news(object sender MouseEventArgs e)//鼠标进入后的坐标信息赋值相对信息,改变图片位置
        {

            toolStripStatusLabel1.Text = (“鼠标坐标(“+(pictureBox1.Location.X+e.X).ToString() + ““ +(pictureBox1.Location.Y+e.Y).ToString()+“)“ );
            mouseX = pictureBox1.Location.X + e.X;
            mouseY = pict

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-12-24 10:31  防手机内存 源代码\
     目录           0  2013-12-24 10:31  防手机内存 源代码\弹球\
     目录           0  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\
     文件        1020  2013-12-09 10:51  防手机内存 源代码\弹球\MyCalculator.sln
     文件       55808  2013-12-24 11:52  防手机内存 源代码\弹球\MyCalculator.suo
     文件       10678  2013-12-01 20:43  防手机内存 源代码\弹球\MyCalculator\ball.cs
     文件        5708  2013-12-01 20:40  防手机内存 源代码\弹球\MyCalculator\ball.Designer.cs
     文件        6385  2013-12-01 20:40  防手机内存 源代码\弹球\MyCalculator\ball.resx
     目录           0  2013-12-24 10:31  防手机内存 源代码\弹球\MyCalculator\bin\
     目录           0  2013-12-24 11:53  防手机内存 源代码\弹球\MyCalculator\bin\Debug\
     文件      238592  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\bin\Debug\MyCalculator.exe
     目录           0  2013-12-13 09:16  防手机内存 源代码\弹球\MyCalculator\bin\Release\
     文件        4627  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\MyCalculator.csproj
     目录           0  2013-12-24 10:31  防手机内存 源代码\弹球\MyCalculator\obj\
     目录           0  2013-12-24 10:31  防手机内存 源代码\弹球\MyCalculator\obj\x86\
     目录           0  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\
     文件       17255  2013-11-27 11:13  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        7720  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件       15196  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\GenerateResource.read.1.tlog
     文件       18794  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\GenerateResource.write.1.tlog
     文件         180  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.ball.resources
     文件         180  2013-12-13 09:15  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.calcu.resources
     文件        4776  2013-12-13 09:15  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.CheckSystem.resources
     文件       11524  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.csproj.FileListAbsolute.txt
     文件      238592  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.exe
     文件         180  2013-12-13 09:15  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.jianshi.resources
     文件         180  2013-12-13 09:15  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.log.resources
     文件      101888  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.pdb
     文件      224082  2013-12-24 11:46  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.Properties.Resources.resources
     文件         180  2013-11-25 22:28  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\MyCalculator.验证窗口.resources
     文件       15156  2013-11-27 19:44  防手机内存 源代码\弹球\MyCalculator\obj\x86\Debug\ResolveAssemblyReference.cache
............此处省略21个文件信息

评论

共有 条评论