{"id":283,"date":"2012-03-13T19:21:13","date_gmt":"2012-03-13T11:21:13","guid":{"rendered":"http:\/\/tangochen.com\/?p=283"},"modified":"2012-03-13T19:21:13","modified_gmt":"2012-03-13T11:21:13","slug":"ubuntu%e4%b8%8bmono%e7%9a%84message-show","status":"publish","type":"post","link":"http:\/\/tangochen.com\/blog\/?p=283","title":{"rendered":"Ubuntu\u4e0bMono Develop\u7684Message.Show();"},"content":{"rendered":"<p>\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48..\u5728Ubuntu\u4e0b\u7684Mono Develop\u4e0d\u652f\u6301\u6700\u57fa\u672c\u9700\u6c42\u7684Message.Show()..<br \/>\n\u5728\u7f51\u4e0a\u627e\u5230\u8fd9\u6837\u7684\u65b9\u6cd5&#8230;\u7b97\u662f\u89e3\u51b3\u4e86:<\/p>\n<p>public static void ShowMsg(Gtk.Window parent_window, DialogFlags flags, MessageType msgtype, ButtonsType btntype, string msg)<br \/>\n{<br \/>\nMessageDialog md = new MessageDialog (parent_window, flags, msgtype, btntype, msg);<br \/>\nmd.Run ();<br \/>\nmd.Destroy();<br \/>\n}<\/p>\n<p>public static void ShowMsg(string msg)<br \/>\n{<br \/>\nMessageDialog md = new MessageDialog (null, DialogFlags.Modal, MessageType.Other, ButtonsType.Ok, msg);<br \/>\nmd.Run ();<br \/>\nmd.Destroy();<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48..\u5728Ubuntu\u4e0b\u7684Mono Develop\u4e0d\u652f\u6301\u6700\u57fa\u672c\u9700\u6c42\u7684Message.Show().. \u5728\u7f51\u4e0a\u627e\u5230\u8fd9\u6837\u7684\u65b9\u6cd5&#8230;\u7b97\u662f\u89e3\u51b3\u4e86: public static void ShowMsg(Gtk.Window parent_window, DialogFlags flags, MessageType msgtype, ButtonsType btntype, string msg) { MessageDialog md = new MessageDialog (parent_window, flags, msgtype, btntype, msg); md.Run (); md.Destroy(); } public static void ShowMsg(string msg) { MessageDialog md = &hellip; <a href=\"http:\/\/tangochen.com\/blog\/?p=283\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[8,12],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-tech","tag-csharp","tag-ubuntu"],"_links":{"self":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=283"}],"version-history":[{"count":0,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/283\/revisions"}],"wp:attachment":[{"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/tangochen.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}