//=============================================== // method //=============================================== public unsafe void run(string[] args) { sGApp lApp = GManager.Instance().getData().app; int argc = 0; lApp.app = new QApplication(ref argc, null); QLabel lLabel = new QLabel(); lLabel.Text = "Bonjour tout le monde"; lLabel.Alignment = AlignmentFlag.AlignCenter; QVBoxLayout lMainLayout = new QVBoxLayout(); lMainLayout.AddWidget(lLabel); QWidget lWindow = new QWidget(); lWindow.Layout = lMainLayout; lWindow.Resize(lApp.win_width, lApp.win_height); lWindow.WindowTitle = lApp.app_name; lWindow.Show(); QApplication.Exec(); }
//=============================================== // method //=============================================== public SQLiteCommand open() { sGApp lApp = GManager.Instance().getData().app; SQLiteConnection lCon = new SQLiteConnection("Data Source=" + lApp.sqlite_db_path); lCon.Open(); SQLiteCommand lCmd = new SQLiteCommand(lCon); return(lCmd); }
//=============================================== // method //=============================================== public void run(string[] args) { sGApp lApp = GManager.Instance().getData().app; CvInvoke.NamedWindow(lApp.app_name); Mat lImg = new Mat(lApp.win_height, lApp.win_width, DepthType.Cv8U, 3); lImg.SetTo(lApp.win_bg_color.MCvScalar); CvInvoke.PutText(lImg, "Bonjour tout le monde", new System.Drawing.Point(10, 80), FontFace.HersheyComplex, 1.0, lApp.win_fg_color.MCvScalar); CvInvoke.Imshow(lApp.app_name, lImg); CvInvoke.WaitKey(0); CvInvoke.DestroyAllWindows(); }