Example #1
0
        private void button11_Click(object sender, EventArgs e)
        {
            var msg1 = new UasMissionRequestList();

            MyShell.WriteLine("警告" + "Send UasMissionRequestList");
            _mMavLink.SendMessage(msg1);

            Thread.Sleep(500);
            MyShell.WriteLine("警告" + "Send UasMissionRequest");
            var msg2 = new UasMissionRequest {
                Seq = 0
            };

            _mMavLink.SendMessage(msg2);

            //var msg1 = new UasMissionItem {Seq = 1};
            //_mMavLink.SendMessage(msg1);
        }
Example #2
0
        static void Main()
        {
#if DEBUG
            MyShell.AllocConsole();
            MyShell.WriteLine("注意:启动程序...");

            MyShell.WriteLine("/tWritten by Oyi319");
            MyShell.WriteLine("/tBlog: http://blog.csdn.com/oyi319");
            MyShell.WriteLine("{0}:{1}", "警告", "这是一条警告信息。");
            MyShell.WriteLine("{0}:{1}", "错误", "这是一条错误信息!");
            MyShell.WriteLine("{0}:{1}", "注意", "这是一条需要的注意信息。");
            MyShell.WriteLine("");
#endif

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new MainForm());

#if DEBUG
            //MyShell.WriteLine("注意:2秒后关闭...");
            //Thread.Sleep(2000);
            MyShell.FreeConsole();
#endif
        }
Example #3
0
 private void WL(string msg, params object[] args)
 {
     MyShell.WriteLine(msg, args);
 }