• R/O
  • SSH
  • HTTPS

listwi: Commit


Commit MetaInfo

Revision60 (tree)
Time2010-05-26 20:27:42
Authorazyobuzin

Log Message

(empty log message)

Change Summary

Incremental Difference

--- Testing/りすにんぐついったー/Settings/SettingsXml.cs (revision 59)
+++ Testing/りすにんぐついったー/Settings/SettingsXml.cs (revision 60)
@@ -16,12 +16,14 @@
1616 private SettingsXml() { }
1717
1818 #region 設定項目
19- public uint interval = 60u;
20- public string template ="listening: %0 / %1 #TwitMusic";
19+ public uint interval = 60u;
20+ public string template ="listening: {0} / {1} #TwitMusic";
2121 public string accessToken;
2222 public string accessTokenSecret;
23- public Rectangle bouds =new Rectangle(Screen.PrimaryScreen.WorkingArea.Location, new Size(364, 156));
23+ public Rectangle bouds =new Rectangle(new Point(50,50), new Size(364, 156));
2424 public bool auto = true;
25+ public Point messender_location = new Point(50, 50);
26+ public bool messender_post = true;
2527 #endregion
2628
2729 private static SettingsXml instance;
--- Testing/りすにんぐついったー/Forms/ListeningMessender.cs (revision 59)
+++ Testing/りすにんぐついったー/Forms/ListeningMessender.cs (revision 60)
@@ -36,7 +36,14 @@
3636
3737 private void sendBtn_Click(object sender, EventArgs e)
3838 {
39- //これから実装
39+ SendToIM.sendToIM("listwi", textBox1.Text, textBox2.Text, 1);//ここで固まる
4040 }
41+
42+ //インスタンスを作成せずログを表示させるメソッド
43+ private static ListeningMessender f = new ListeningMessender();
44+ public static void ShowForm()
45+ {
46+ f.Show();//これから本格的に実装
47+ }
4148 }
4249 }
--- Testing/りすにんぐついったー/Forms/MainForm.Designer.cs (revision 59)
+++ Testing/りすにんぐついったー/Forms/MainForm.Designer.cs (revision 60)
@@ -46,6 +46,7 @@
4646 this.tweetBox = new System.Windows.Forms.TextBox();
4747 this.OneSecTimer = new System.Windows.Forms.Timer(this.components);
4848 this.charcount = new System.Windows.Forms.Label();
49+ this.listeningMessenderMToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
4950 this.mainContextMenu.SuspendLayout();
5051 this.SuspendLayout();
5152 //
@@ -65,16 +66,17 @@
6566 this.自動投稿PToolStripMenuItem,
6667 this.toolStripSeparator2,
6768 this.つぶやきログLToolStripMenuItem,
69+ this.listeningMessenderMToolStripMenuItem,
6870 this.toolStripSeparator3,
6971 this.終了XToolStripMenuItem});
7072 this.mainContextMenu.Name = "mainContextMenu";
71- this.mainContextMenu.Size = new System.Drawing.Size(194, 154);
73+ this.mainContextMenu.Size = new System.Drawing.Size(211, 198);
7274 //
7375 // メイン画面を表示VToolStripMenuItem
7476 //
7577 this.メイン画面を表示VToolStripMenuItem.Font = new System.Drawing.Font("メイリオ", 9F, System.Drawing.FontStyle.Bold);
7678 this.メイン画面を表示VToolStripMenuItem.Name = "メイン画面を表示VToolStripMenuItem";
77- this.メイン画面を表示VToolStripMenuItem.Size = new System.Drawing.Size(193, 22);
79+ this.メイン画面を表示VToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
7880 this.メイン画面を表示VToolStripMenuItem.Text = "メイン画面を表示(&V)";
7981 this.メイン画面を表示VToolStripMenuItem.Click += new System.EventHandler(this.メイン画面を表示VToolStripMenuItem_Click);
8082 //
@@ -81,7 +83,7 @@
8183 // 設定SToolStripMenuItem
8284 //
8385 this.設定SToolStripMenuItem.Name = "設定SToolStripMenuItem";
84- this.設定SToolStripMenuItem.Size = new System.Drawing.Size(193, 22);
86+ this.設定SToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
8587 this.設定SToolStripMenuItem.Text = "設定(&S)";
8688 this.設定SToolStripMenuItem.Click += new System.EventHandler(this.設定SToolStripMenuItem_Click);
8789 //
@@ -88,13 +90,13 @@
8890 // toolStripSeparator1
8991 //
9092 this.toolStripSeparator1.Name = "toolStripSeparator1";
91- this.toolStripSeparator1.Size = new System.Drawing.Size(190, 6);
93+ this.toolStripSeparator1.Size = new System.Drawing.Size(207, 6);
9294 //
9395 // 今すぐ投稿NToolStripMenuItem
9496 //
9597 this.今すぐ投稿NToolStripMenuItem.Enabled = false;
9698 this.今すぐ投稿NToolStripMenuItem.Name = "今すぐ投稿NToolStripMenuItem";
97- this.今すぐ投稿NToolStripMenuItem.Size = new System.Drawing.Size(193, 22);
99+ this.今すぐ投稿NToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
98100 this.今すぐ投稿NToolStripMenuItem.Text = "今すぐ投稿(&N)";
99101 this.今すぐ投稿NToolStripMenuItem.Click += new System.EventHandler(this.postBtn_Click);
100102 //
@@ -102,7 +104,7 @@
102104 //
103105 this.自動投稿PToolStripMenuItem.CheckOnClick = true;
104106 this.自動投稿PToolStripMenuItem.Name = "自動投稿PToolStripMenuItem";
105- this.自動投稿PToolStripMenuItem.Size = new System.Drawing.Size(193, 22);
107+ this.自動投稿PToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
106108 this.自動投稿PToolStripMenuItem.Text = "自動投稿(&P)";
107109 this.自動投稿PToolStripMenuItem.CheckedChanged += new System.EventHandler(this.自動投稿PToolStripMenuItem_CheckedChanged);
108110 //
@@ -109,12 +111,12 @@
109111 // toolStripSeparator2
110112 //
111113 this.toolStripSeparator2.Name = "toolStripSeparator2";
112- this.toolStripSeparator2.Size = new System.Drawing.Size(190, 6);
114+ this.toolStripSeparator2.Size = new System.Drawing.Size(207, 6);
113115 //
114116 // つぶやきログLToolStripMenuItem
115117 //
116118 this.つぶやきログLToolStripMenuItem.Name = "つぶやきログLToolStripMenuItem";
117- this.つぶやきログLToolStripMenuItem.Size = new System.Drawing.Size(193, 22);
119+ this.つぶやきログLToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
118120 this.つぶやきログLToolStripMenuItem.Text = "つぶやきログ(&L)";
119121 this.つぶやきログLToolStripMenuItem.Click += new System.EventHandler(this.つぶやきログLToolStripMenuItem_Click);
120122 //
@@ -121,12 +123,12 @@
121123 // toolStripSeparator3
122124 //
123125 this.toolStripSeparator3.Name = "toolStripSeparator3";
124- this.toolStripSeparator3.Size = new System.Drawing.Size(190, 6);
126+ this.toolStripSeparator3.Size = new System.Drawing.Size(207, 6);
125127 //
126128 // 終了XToolStripMenuItem
127129 //
128130 this.終了XToolStripMenuItem.Name = "終了XToolStripMenuItem";
129- this.終了XToolStripMenuItem.Size = new System.Drawing.Size(193, 22);
131+ this.終了XToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
130132 this.終了XToolStripMenuItem.Text = "終了(&X)";
131133 this.終了XToolStripMenuItem.Click += new System.EventHandler(this.終了XToolStripMenuItem_Click);
132134 //
@@ -191,6 +193,13 @@
191193 this.charcount.Text = "残り140文字";
192194 this.charcount.TextAlign = System.Drawing.ContentAlignment.BottomRight;
193195 //
196+ // listeningMessenderMToolStripMenuItem
197+ //
198+ this.listeningMessenderMToolStripMenuItem.Name = "listeningMessenderMToolStripMenuItem";
199+ this.listeningMessenderMToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
200+ this.listeningMessenderMToolStripMenuItem.Text = "ListeningMessender(&M)";
201+ this.listeningMessenderMToolStripMenuItem.Click += new System.EventHandler(this.listeningMessenderMToolStripMenuItem_Click);
202+ //
194203 // MainForm
195204 //
196205 this.AcceptButton = this.postBtn;
@@ -235,6 +244,7 @@
235244 private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
236245 private System.Windows.Forms.ToolStripMenuItem つぶやきログLToolStripMenuItem;
237246 private System.Windows.Forms.Label charcount;
247+ private System.Windows.Forms.ToolStripMenuItem listeningMessenderMToolStripMenuItem;
238248
239249 }
240250 }
--- Testing/りすにんぐついったー/Forms/MainForm.cs (revision 59)
+++ Testing/りすにんぐついったー/Forms/MainForm.cs (revision 60)
@@ -342,5 +342,10 @@
342342 {
343343 LogForm.ShowForm();
344344 }
345+
346+ private void listeningMessenderMToolStripMenuItem_Click(object sender, EventArgs e)
347+ {
348+ ListeningMessender.ShowForm();
349+ }
345350 }
346351 }
--- Testing/りすにんぐついったー/Program.cs (revision 59)
+++ Testing/りすにんぐついったー/Program.cs (revision 60)
@@ -26,6 +26,7 @@
2626 }
2727
2828 public static TwitterConnectionOAuth twitterConnection;
29+ public static MainForm m_form;//これから使用予定
2930
3031 public static void ShowWiki(string name)
3132 {
Show on old repository browser