91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 645KB
    文件類型: .7z
    金幣: 1
    下載: 0 次
    發布日期: 2021-05-22
  • 語言: C#
  • 標簽: 計算器??

資源簡介

以前在上傳過的,但是有許多bug,所以修正了放多問題,功能方面+,-,*,/,都沒有問題了,而且除0也沒有問題的。界面和windows的稍差一些。

資源截圖

代碼片段和文件信息

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;

namespace?Cal
{
????public?partial?class?Form1?:?Form
????{
????????//全局變量
????????double?a?=?0;//保存結果
????????double?b?=?0;//保存中間變量
????????bool?c?=?false;//設置文本控件中值
????????string?d;//運算符的保存
????????bool?f?=?false;//設置退格鍵的作用
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
???????????/*?//窗體大小不能更改(已直接在窗體屬性里面更改)
????????????MinimumSize?=?new?Size(252?275);//窗口最小尺寸
????????????MaximumSize?=?new?Size(252?275);//窗口最大尺寸*/

????????????//啟動時窗體在屏幕中間
????????????this.Left?=?(Screen.PrimaryScreen.WorkingArea.Width?-?252)?/?2;?
????????????this.Top?=?(Screen.PrimaryScreen.WorkingArea.Height?-?275)?/?2;

????????????textBox1.Text?=?“0“;
????????????c?=?true;
????????}

????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(c?==?true)//如果文件控件中沒有值的話
????????????{
????????????????textBox1.Text?=?““;//初始化
????????????????c?=?false;//更改變量c
????????????}
????????????if?(f?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????f?=?false;
????????????}
????????????textBox1.Text?+=?“1“;
????????}

????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????if?(c?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????c?=?false;
????????????}
????????????if?(f?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????f?=?false;
????????????}
????????????textBox1.Text?+=?“2“;
????????}

????????private?void?button3_Click(object?sender?EventArgs?e)
????????{
????????????if?(c?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????c?=?false;
????????????}
????????????if?(f?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????f?=?false;
????????????}
????????????textBox1.Text?+=?“3“;
????????}

????????private?void?button4_Click(object?sender?EventArgs?e)
????????{
????????????if?(c?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????c?=?false;
????????????}
????????????if?(f?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????f?=?false;
????????????}
????????????textBox1.Text?+=?“4“;
????????}

????????private?void?button5_Click(object?sender?EventArgs?e)
????????{
????????????if?(c?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????c?=?false;
????????????}
????????????if?(f?==?true)
????????????{
????????????????textBox1.Text?=?““;
????????????????f?=?false;
????????????}
????????????textBox1.Text?+=?“5“;
????????}

????????private?void?button6_Click(object?sender?EventArgs?e)
????????{
????????????if?(c?==?true)
????????????{
????????????????t

評論

共有 條評論