平常可能接触比较多的就是记账理财类的软件,用的比较多的就是记录一些日常开支类的,其实用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.Threading.Tasks;
using
System.Windows.Forms;
namespace
理财小狗
{
public
partial
class
Form功能选择 : Form
{
public
Form功能选择()
{
InitializeComponent();
}
bool
f =
false
;
private
void
Form功能选择_Paint(
object
sender, PaintEventArgs e)
{
Bitmap b =
new
Bitmap(100, 200);
Graphics g = Graphics.FromImage(b);
g.DrawString(
"温"
,
new
Font(
"隶书"
, 20, FontStyle.Bold), Brushes.Red,
new
Point(5, 5));
g.DrawString(
"馨"
,
new
Font(
"隶书"
, 20, FontStyle.Bold), Brushes.Blue,
new
Point(30, 30));
g.DrawString(
"提"
,
new
Font(
"隶书"
, 20, FontStyle.Bold), Brushes.Yellow,
new
Point(5, 55));
g.DrawString(
"示"
,
new
Font(
"隶书"
, 20, FontStyle.Bold), Brushes.Violet,
new
Point(30, 80));
g.DrawString(
"!"
,
new
Font(
"行书"
, 20, FontStyle.Bold), Brushes.Black,
new
Point(5, 105));
pictureBox1.Image = b;
}
private
void
button1_Click(
object
sender, EventArgs e)
{
Form新建账目 f5 =
new
Form新建账目();
f5.Show();
f =
true
;
this
.Close();
}
private
void
button6_Click(
object
sender, EventArgs e)
{
Test._f.Close();
}
private
void
button2_Click(
object
sender, EventArgs e)
{
Form每日清单 f1 =
new
Form每日清单();
f1.Show();
f =
true
;
this
.Close();
}
private
void
button3_Click(
object
sender, EventArgs e)
{
Form每月结算 f2 =
new
Form每月结算();
f2.Show();
f =
true
;
this
.Close();
}
private
void
button4_Click(
object
sender, EventArgs e)
{
Form当日消费情况 f3 =
new
Form当日消费情况();
f3.Show();
f =
true
;
this
.Close();
}
private
void
button5_Click(
object
sender, EventArgs e)
{
Form改密 f4 =
new
Form改密();
f4.Show();
f =
true
;
this
.Close();
}
private
void
Form功能选择_FormClosed(
object
sender, FormClosedEventArgs e)
{
if
(f)
{
return
;
}
else
{
Test._f.Close();
}
}
}
}