public static DBDiagnosticSystem getDBDiagnosticSystem()
 {
     if (dbDiagnosticSystem == null)
     {
         dbDiagnosticSystem = new DBDiagnosticSystem();
     }
     return(dbDiagnosticSystem);
 }
Ejemplo n.º 2
0
        public Form1()
        {
            InitializeComponent();
            DBDiagnosticSystem db = DBDiagnosticSystem.getDBDiagnosticSystem();

            db.test();
            List <Image> i = new List <Image>();
            Image        r = new Bitmap("C:\\Users\\mixail5428\\Pictures\\2.PNG");

            i.Add(r);
            r = new Bitmap("C:\\Users\\mixail5428\\Downloads\\Dishonored_Warriors_2_Emily_Kaldwin_Head_533189_3840x2400.jpg");
            i.Add(r);

            Question        q  = new Question("кукареку", null, i);
            List <Question> qe = new List <Question>();

            qe.Add(q);
            db.addNewTest(new Theme("testNameTheme", qe));
        }