資源簡介
僅供參考,青鳥影院售票系統,歡迎下載哦哦

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.xml;
using?System.IO;
namespace?AccpCinema
{
????public?partial?class?addMovie?:?Form
????{
????????private?frmMovie?myParent;
????????public?addMovie(frmMovie?fpareent)
????????{
????????????InitializeComponent();
????????????this.myParent?=?fpareent;
????????}
????????public?string?PicPath?{?get;?set;?}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????string?movie?=?textBox1.Text.Trim();
????????????if?(string.IsNullOrEmpty(movie))?{?MessageBox.Show(“輸入的電影不能為空“);?return;?}
????????????string?posters;
????????????try
????????????{
?????????????????posters?=?PicPath.Substring(PicPath.LastIndexOf(@“\“)?+?1);
????????????}
????????????catch?(Exception)
????????????{
????????????????MessageBox.Show(“請選擇一張圖片“);
????????????????return;
????????????}
????????????string?drictor?=?textBox2.Text.Trim();
????????????if?(string.IsNullOrEmpty(drictor))?{?MessageBox.Show(“輸入的導演不能為空“);?return;?}
????????????string?anctor?=?textBox3.Text.Trim();
????????????if?(string.IsNullOrEmpty(anctor))?{?MessageBox.Show(“輸入的演員不能為空“);?return;?}
????????????string?type?=?comboBox1.Text.Trim();
????????????if?(string.IsNullOrEmpty(type))?{?MessageBox.Show(“請選擇電影類型“);?return;?}
????????????string?Price?=?textBox7.Text.Trim();
????????????if?(string.IsNullOrEmpty(Price)){?MessageBox.Show(“請選擇電影類型“);?return;?}
????????????xmlDocument?xml?=?new?xmlDocument();
????????????string?path?=?@“..\..\images\ShowList.xml“;
????????????xml.Load(path);
????????????xmlElement?root?=?xml.DocumentElement;
????????????xmlElement?newNode?=?xml.CreateElement(“Movie“);
????????????xmlElement?name?=?xml.CreateElement(“Name“);
????????????name.InnerText?=?movie;?
????????????xmlElement?poster?=?xml.CreateElement(“Poster“);
????????????poster.InnerText?=?posters;
????????????try
????????????{
????????????????File.Copy(PicPath?@“..\..\images\“?+?PicPath.Substring(PicPath.LastIndexOf(@“\“)?+?1));
????????????}
????????????catch?(Exception)
????????????{
????????????????MessageBox.Show(“該圖片已存在!“);?return;
????????????}?
????????????xmlElement?drictor1?=?xml.CreateElement(“Director“);
????????????drictor1.InnerText?=?drictor;
????????????xmlElement?anctor1?=?xml.CreateElement(“Actor“);
????????????anctor1.InnerText?=?anctor;
????????????xmlElement?type1?=?xml.CreateElement(“Type“);
????????????switch?(type)
????????????{
????????????????case?“喜劇“:
????????????????????type1.InnerText?=?“Comedy“;
????????????????????break;
????????????????case?“戰爭“:
????????????????????type1.InnerText?=?“War“;
????????????????????break;
????????????????case?“愛情“:
????????????????????type1.InnerText?=?“Romance“;
????????????????????break;
????????????????case?“動作“:
????????????????????type1.InnerText?=?“Action“;
?????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????7134??2013-04-07?14:47??青鳥影院\AccpCinema\AccpCinema.csproj
?????文件????????478??2012-12-17?19:37??青鳥影院\AccpCinema\AccpCinema.csproj.user
?????文件???????4479??2013-04-07?14:57??青鳥影院\AccpCinema\addMovie.cs
?????文件??????10255??2013-04-07?14:33??青鳥影院\AccpCinema\addMovie.Designer.cs
?????文件???????6020??2013-04-07?14:33??青鳥影院\AccpCinema\addMovie.resx
?????文件?????403968??2013-04-07?14:56??青鳥影院\AccpCinema\bin\Debug\AccpCinema.exe
?????文件??????87552??2013-04-07?14:56??青鳥影院\AccpCinema\bin\Debug\AccpCinema.pdb
?????文件??????11608??2013-04-07?14:58??青鳥影院\AccpCinema\bin\Debug\AccpCinema.vshost.exe
?????文件????????490??2010-03-17?22:39??青鳥影院\AccpCinema\bin\Debug\AccpCinema.vshost.exe.manifest
?????文件??????12288??2013-01-14?12:17??青鳥影院\AccpCinema\bin\Debug\Models.dll
?????文件??????42496??2013-01-14?12:17??青鳥影院\AccpCinema\bin\Debug\Models.pdb
?????文件??????93696??2007-11-14?10:53??青鳥影院\AccpCinema\bin\Debug\SaleTicket.pdb
?????文件???????1215??2011-03-03?20:51??青鳥影院\AccpCinema\doc\ShowList.xm
?????文件????????303??2013-04-07?14:53??青鳥影院\AccpCinema\doc\soldTickets.bin
?????文件???????8672??2013-04-07?14:57??青鳥影院\AccpCinema\frmgaimi.cs
?????文件??????11161??2013-01-08?15:51??青鳥影院\AccpCinema\frmgaimi.Designer.cs
?????文件???????5817??2013-01-08?15:51??青鳥影院\AccpCinema\frmgaimi.resx
?????文件???????2403??2013-04-07?14:57??青鳥影院\AccpCinema\frmlogin.cs
?????文件???????4038??2013-04-07?14:44??青鳥影院\AccpCinema\frmlogin.Designer.cs
?????文件???????5817??2013-04-07?14:44??青鳥影院\AccpCinema\frmlogin.resx
?????文件???????3715??2013-01-13?10:34??青鳥影院\AccpCinema\frmMovie.cs
?????文件???????8513??2013-01-13?09:51??青鳥影院\AccpCinema\frmMovie.Designer.cs
?????文件???????6221??2013-01-13?09:51??青鳥影院\AccpCinema\frmMovie.resx
?????文件???????3172??2013-04-07?14:57??青鳥影院\AccpCinema\frmShowMovie.cs
?????文件???????4495??2013-04-07?14:56??青鳥影院\AccpCinema\frmShowMovie.Designer.cs
?????文件???????5817??2013-04-07?14:56??青鳥影院\AccpCinema\frmShowMovie.resx
?????文件????????138??2013-04-07?14:54??青鳥影院\AccpCinema\images\login.xm
?????文件???????1036??2013-04-07?14:57??青鳥影院\AccpCinema\images\ShowList.xm
?????文件?????154151??2012-12-22?19:27??青鳥影院\AccpCinema\images\泰囧.jpg
?????文件??????61122??2011-03-03?20:51??青鳥影院\AccpCinema\images\竊聽風云.jpg
............此處省略144個文件信息
- 上一篇:撲克紙牌識別報告
- 下一篇:基于SolidWorks的變壓器三維設計方法
評論
共有 條評論