Changeset 4
- Timestamp:
- Nov 4, 2004, 3:32:07 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFace.prjx
r1 r4 1 <Project name="MacFace" description="" newfilesearch="None" enableviewstate="True" version="1.1" projecttype="C#">1 <Project name="MacFace" standardNamespace="NewProject" description="" newfilesearch="None" enableviewstate="True" version="1.1" projecttype="C#"> 2 2 <Contents> 3 3 <File name=".\MainForm.cs" subtype="Code" buildaction="Compile" dependson="" data="" /> … … 5 5 <File name=".\PropertyList.cs" subtype="Code" buildaction="Compile" dependson="" data="" /> 6 6 <File name=".\AlphaForm.cs" subtype="Code" buildaction="Compile" dependson="" data="" /> 7 <File name=".\MyForm.CreatedForm.resources" subtype="Code" buildaction="EmbedAsResource" dependson="" data="" /> 8 <File name=".\MacFace.MainForm.resources" subtype="Code" buildaction="EmbedAsResource" dependson="" data="" /> 7 9 </Contents> 8 10 <References /> 9 11 <DeploymentInformation target="" script="" strategy="File" /> 10 12 <Configuration runwithwarnings="False" name="Debug"> 11 <CodeGeneration runtime="MsNet" compiler="Csc" warninglevel="4" includedebuginformation="True" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" target="Exe" definesymbols="" generatexmldocumentation="False" win32Icon="" />13 <CodeGeneration runtime="MsNet" compiler="Csc" compilerversion="" warninglevel="4" nowarn="" includedebuginformation="True" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" target="Exe" definesymbols="" generatexmldocumentation="False" win32Icon="" noconfig="False" nostdlib="False" /> 12 14 <Execution commandlineparameters="" consolepause="False" /> 13 <Output directory=".\bin\Debug" assembly="MacFace" executeScript="" executeBeforeBuild="" executeAfterBuild="" />15 <Output directory=".\bin\Debug" assembly="MacFace" executeScript="" executeBeforeBuild="" executeAfterBuild="" executeBeforeBuildArguments="" executeAfterBuildArguments="" /> 14 16 </Configuration> 15 17 <Configurations active="Debug"> 16 18 <Configuration runwithwarnings="False" name="Debug"> 17 <CodeGeneration runtime="MsNet" compiler="Csc" warninglevel="4" includedebuginformation="True" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" target="Exe" definesymbols="" generatexmldocumentation="False" win32Icon="" />19 <CodeGeneration runtime="MsNet" compiler="Csc" compilerversion="" warninglevel="4" nowarn="" includedebuginformation="True" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" target="Exe" definesymbols="" generatexmldocumentation="False" win32Icon="" noconfig="False" nostdlib="False" /> 18 20 <Execution commandlineparameters="" consolepause="False" /> 19 <Output directory=".\bin\Debug" assembly="MacFace" executeScript="" executeBeforeBuild="" executeAfterBuild="" />21 <Output directory=".\bin\Debug" assembly="MacFace" executeScript="" executeBeforeBuild="" executeAfterBuild="" executeBeforeBuildArguments="" executeAfterBuildArguments="" /> 20 22 </Configuration> 21 23 <Configuration runwithwarnings="False" name="Release"> 22 <CodeGeneration runtime="MsNet" compiler="Csc" warninglevel="4" includedebuginformation="True" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" target="WinExe" definesymbols="" generatexmldocumentation="False" win32Icon="" />24 <CodeGeneration runtime="MsNet" compiler="Csc" compilerversion="" warninglevel="4" nowarn="" includedebuginformation="True" optimize="True" unsafecodeallowed="False" generateoverflowchecks="True" mainclass="" target="WinExe" definesymbols="" generatexmldocumentation="False" win32Icon="" noconfig="False" nostdlib="False" /> 23 25 <Execution commandlineparameters="" consolepause="False" /> 24 <Output directory=".\bin\Release" assembly="MacFace" executeScript="" executeBeforeBuild="" executeAfterBuild="" />26 <Output directory=".\bin\Release" assembly="MacFace" executeScript="" executeBeforeBuild="" executeAfterBuild="" executeBeforeBuildArguments="" executeAfterBuildArguments="" /> 25 27 </Configuration> 26 28 </Configurations> -
trunk/MainForm.cs
r1 r4 10 10 using System.Threading; 11 11 12 namespace MacFace 12 namespace MacFace 13 13 { 14 14 class MainForm : Misuzilla.Windows.Forms.AlphaForm 15 // class MainForm : System.Windows.Forms.Form 15 16 { 17 private System.Windows.Forms.ContextMenu contextMenu1; 18 private System.Windows.Forms.MenuItem menuItem1; 16 19 private Hashtable _property; 17 20 private ArrayList _parts; … … 21 24 { 22 25 InitializeComponent(); 23 // this.Load += new EventHandler(this.Form1_Load); 26 this.TransparentMouseMessage = false; 27 this.MoveAtFormDrag = true; 28 24 29 _facePath = Path.Combine(Application.StartupPath,"default.mcface"); 25 30 _property = PropertyList.load(Path.Combine(_facePath,"faceDef.plist")); … … 28 33 (new Thread(new ThreadStart(CountProcessorUsage))).Start(); 29 34 } 30 35 31 36 // THIS METHOD IS MAINTAINED BY THE FORM DESIGNER 32 37 // DO NOT EDIT IT MANUALLY! YOUR CHANGES ARE LIKELY TO BE LOST 33 void InitializeComponent() 34 { 38 void InitializeComponent() { 39 this.menuItem1 = new System.Windows.Forms.MenuItem(); 40 this.contextMenu1 = new System.Windows.Forms.ContextMenu(); 35 41 // 36 // Set up generated class MainForm42 // menuItem1 37 43 // 38 this.SuspendLayout(); 39 this.Name = "MainForm"; 40 this.Text = "This is my form"; 41 this.Size = new System.Drawing.Size(300, 300); 42 this.ResumeLayout(false); 43 this.ShowInTaskbar = false; 44 this.TopMost = true; 45 this.FormBorderStyle = FormBorderStyle.None; 44 this.menuItem1.Index = 0; 45 this.menuItem1.Shortcut = System.Windows.Forms.Shortcut.CtrlQ; 46 this.menuItem1.Text = "終了"; 47 this.menuItem1.Click += new System.EventHandler(this.doQuit); 48 // 49 // contextMenu1 50 // 51 this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { 52 this.menuItem1}); 53 // 54 // MainForm 55 // 56 this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); 57 this.ClientSize = new System.Drawing.Size(120, 101); 58 this.ContextMenu = this.contextMenu1; 59 this.ControlBox = false; 46 60 this.MaximizeBox = false; 47 61 this.MinimizeBox = false; 48 this.ControlBox = false; 49 this.TransparentMouseMessage = false; 50 this.MoveAtFormDrag = true; 51 this.Visible = true; 62 this.Name = "MainForm"; 52 63 this.Opacity = 0.75F; 64 this.ShowInTaskbar = false; 65 this.Text = "MacFace For Windows"; 66 this.TopMost = true; 53 67 } 54 68 … … 87 101 } 88 102 89 // OÌp^[Ư¶ÈçXVµÈ¢B103 // Õp^[ƓȂXVȂB 90 104 if (prevUsage/10 != usage/10) { 91 105 ArrayList patterns = (ArrayList)_property["pattern"]; … … 111 125 112 126 } 127 void doQuit(object sender, System.EventArgs e) 128 { 129 Application.Exit(); 130 } 131 113 132 } 114 133 }
Note: See TracChangeset
for help on using the changeset viewer.