Changeset 10887 for lang/csharp
- Timestamp:
- 05/01/08 19:23:29 (7 months ago)
- Location:
- lang/csharp/tw4wm/wm6test1
- Files:
-
- 4 added
- 4 modified
-
Form1.Designer.cs (modified) (9 diffs)
-
Form1.cs (modified) (3 diffs)
-
Properties/AssemblyInfo.cs (modified) (1 diff)
-
Setting.cs (added)
-
loginForm.Designer.cs (added)
-
loginForm.cs (added)
-
loginForm.resx (added)
-
wm6test1.csproj (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/csharp/tw4wm/wm6test1/Form1.Designer.cs
r10210 r10887 30 30 private void InitializeComponent() 31 31 { 32 System.Windows.Forms.ListViewItem listViewItem 3= new System.Windows.Forms.ListViewItem();32 System.Windows.Forms.ListViewItem listViewItem1 = new System.Windows.Forms.ListViewItem(); 33 33 this.mainMenu1 = new System.Windows.Forms.MainMenu(); 34 34 this.menuItem1 = new System.Windows.Forms.MenuItem(); … … 79 79 this.lstMain.Columns.Add(this.chDate); 80 80 this.lstMain.FullRowSelect = true; 81 listViewItem 3.Text = "0";82 listViewItem 3.SubItems.Add("1");83 listViewItem 3.SubItems.Add("2");84 listViewItem 3.SubItems.Add("3");85 this.lstMain.Items.Add(listViewItem 3);86 this.lstMain.Location = new System.Drawing.Point(0, 143);81 listViewItem1.Text = "0"; 82 listViewItem1.SubItems.Add("1"); 83 listViewItem1.SubItems.Add("2"); 84 listViewItem1.SubItems.Add("3"); 85 this.lstMain.Items.Add(listViewItem1); 86 this.lstMain.Location = new System.Drawing.Point(0, 96); 87 87 this.lstMain.Name = "lstMain"; 88 this.lstMain.Size = new System.Drawing.Size(240, 1 51);88 this.lstMain.Size = new System.Drawing.Size(240, 172); 89 89 this.lstMain.TabIndex = 11; 90 90 this.lstMain.View = System.Windows.Forms.View.Details; … … 114 114 this.tabControl1.Controls.Add(this.tabPage3); 115 115 this.tabControl1.Dock = System.Windows.Forms.DockStyle.None; 116 this.tabControl1.Location = new System.Drawing.Point(0, 121);116 this.tabControl1.Location = new System.Drawing.Point(0, 76); 117 117 this.tabControl1.Name = "tabControl1"; 118 118 this.tabControl1.SelectedIndex = 0; … … 145 145 this.txtMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 146 146 | System.Windows.Forms.AnchorStyles.Right))); 147 this.txtMessage.Location = new System.Drawing.Point(1, 68); 147 this.txtMessage.BorderStyle = System.Windows.Forms.BorderStyle.None; 148 this.txtMessage.Location = new System.Drawing.Point(0, 40); 148 149 this.txtMessage.Multiline = true; 149 150 this.txtMessage.Name = "txtMessage"; 150 151 this.txtMessage.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 151 this.txtMessage.Size = new System.Drawing.Size(237, 50);152 this.txtMessage.Size = new System.Drawing.Size(237, 33); 152 153 this.txtMessage.TabIndex = 14; 153 154 // … … 155 156 // 156 157 this.lblDate.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 157 this.lblDate.Location = new System.Drawing.Point(12 5, 51);158 this.lblDate.Location = new System.Drawing.Point(127, 23); 158 159 this.lblDate.Name = "lblDate"; 159 this.lblDate.Size = new System.Drawing.Size(11 6, 14);160 this.lblDate.Size = new System.Drawing.Size(110, 15); 160 161 this.lblDate.TextAlign = System.Drawing.ContentAlignment.TopRight; 161 162 // 162 163 // lblName 163 164 // 164 this.lblName.Location = new System.Drawing.Point(3, 51);165 this.lblName.Location = new System.Drawing.Point(3, 24); 165 166 this.lblName.Name = "lblName"; 166 167 this.lblName.Size = new System.Drawing.Size(118, 14); … … 170 171 this.txtSendMessage.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 171 172 | System.Windows.Forms.AnchorStyles.Right))); 172 this.txtSendMessage.Location = new System.Drawing.Point( 1, 28);173 this.txtSendMessage.Location = new System.Drawing.Point(0, 0); 173 174 this.txtSendMessage.Name = "txtSendMessage"; 174 this.txtSendMessage.Size = new System.Drawing.Size(18 1, 21);175 this.txtSendMessage.Size = new System.Drawing.Size(183, 21); 175 176 this.txtSendMessage.TabIndex = 19; 176 177 // … … 178 179 // 179 180 this.btPost.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 180 this.btPost.Location = new System.Drawing.Point(18 6, 28);181 this.btPost.Location = new System.Drawing.Point(189, 0); 181 182 this.btPost.Name = "btPost"; 182 183 this.btPost.Size = new System.Drawing.Size(51, 20); … … 190 191 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; 191 192 this.AutoScroll = true; 192 this.ClientSize = new System.Drawing.Size(240, 2 94);193 this.ClientSize = new System.Drawing.Size(240, 268); 193 194 this.Controls.Add(this.btPost); 194 195 this.Controls.Add(this.txtSendMessage); … … 199 200 this.Controls.Add(this.lstMain); 200 201 this.KeyPreview = true; 201 this.Location = new System.Drawing.Point(0, 0);202 202 this.Menu = this.mainMenu1; 203 203 this.Name = "Form1"; 204 204 this.Text = "Twitter for WM"; 205 this.WindowState = System.Windows.Forms.FormWindowState.Maximized;206 205 this.Activated += new System.EventHandler(this.Form1_Activated); 206 this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing); 207 207 this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown); 208 208 this.tabControl1.ResumeLayout(false); -
lang/csharp/tw4wm/wm6test1/Form1.cs
r10210 r10887 6 6 using System.Text; 7 7 using System.Windows.Forms; 8 using System.IO; 9 using System.Diagnostics; 10 using System.Xml.Serialization; 8 11 9 12 namespace wm6test1 … … 15 18 private String m_passwd; 16 19 private Twitter tw; 17 private Form2loginForm = null;20 private loginForm loginForm = null; 18 21 public Form1() 19 22 { … … 102 105 this.Activated -= new EventHandler(Form1_Activated); 103 106 //�ȍ~������������e 104 loginForm = new Form2(this); 105 loginForm.Show(); 106 this.Hide(); 107 //��user�̐ݒ��@�C�����Ȃ��A�����͓ǂݍ��݂Ɏ��s�����ꍇ�A 108 //loginForm��� 109 bool userLoadFlag = false; 110 111 try 112 { 113 XmlSerializer serializer = 114 new XmlSerializer(typeof(Setting)); 115 TextReader reader = new StreamReader("setting.txt"); 116 117 Setting set = new Setting(); 118 set = (Setting)serializer.Deserialize(reader); 119 reader.Close(); 120 121 SetAuth(set.user, set.password); 122 userLoadFlag = true; 123 } 124 catch (IOException ioe) 125 { 126 Debug.WriteLine(ioe.StackTrace); 127 } 128 129 if (userLoadFlag) 130 { 131 MyRefresh(); 132 } 133 else 134 { 135 loginForm = new loginForm(this); 136 loginForm.Show(); 137 this.Hide(); 138 } 107 139 } 140 141 private void Form1_Closing(object sender, CancelEventArgs e) 142 { 143 144 } 145 108 146 } 109 147 } -
lang/csharp/tw4wm/wm6test1/Properties/AssemblyInfo.cs
r10857 r10887 6 6 // set of attributes. Change these attribute values to modify the information 7 7 // associated with an assembly. 8 [assembly: AssemblyTitle(" wm6test1")]8 [assembly: AssemblyTitle("tw4wm")] 9 9 [assembly: AssemblyDescription("")] 10 10 [assembly: AssemblyConfiguration("")] 11 11 [assembly: AssemblyCompany("")] 12 [assembly: AssemblyProduct(" wm6test1")]12 [assembly: AssemblyProduct("tw4wm")] 13 13 [assembly: AssemblyCopyright("Copyright © 2008")] 14 14 [assembly: AssemblyTrademark("")] -
lang/csharp/tw4wm/wm6test1/wm6test1.csproj
r10210 r10887 31 31 <WarningLevel>4</WarningLevel> 32 32 <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> 33 <DocumentationFile> 34 </DocumentationFile> 33 35 </PropertyGroup> 34 36 <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> … … 53 55 </ItemGroup> 54 56 <ItemGroup> 57 <Compile Include="Setting.cs" /> 55 58 <Compile Include="Form1.cs"> 56 59 <SubType>Form</SubType> … … 59 62 <DependentUpon>Form1.cs</DependentUpon> 60 63 </Compile> 61 <Compile Include=" Form2.cs">64 <Compile Include="loginForm.cs"> 62 65 <SubType>Form</SubType> 63 66 </Compile> 64 <Compile Include=" Form2.Designer.cs">65 <DependentUpon> Form2.cs</DependentUpon>67 <Compile Include="loginForm.Designer.cs"> 68 <DependentUpon>loginForm.cs</DependentUpon> 66 69 </Compile> 67 70 <Compile Include="Program.cs" /> … … 71 74 <DependentUpon>Form1.cs</DependentUpon> 72 75 </EmbeddedResource> 73 <EmbeddedResource Include=" Form2.resx">76 <EmbeddedResource Include="loginForm.resx"> 74 77 <SubType>Designer</SubType> 75 <DependentUpon> Form2.cs</DependentUpon>78 <DependentUpon>loginForm.cs</DependentUpon> 76 79 </EmbeddedResource> 77 80 <EmbeddedResource Include="Properties\Resources.resx">
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)