private void setup()
 {
     countPictures = 0;
     countPictures = 2;
     curentWraper = wraper.Horizontal;
     curentBase = DataBaseModel.getInstance();
 }
Beispiel #2
0
 public static DataBaseModel getInstance()
 {
     if (objectBase == null)
      {
         objectBase = new DataBaseModel(DataBaseModel._connectString);
      }
     return objectBase;
 }
Beispiel #3
0
 // private pic[] _containerPics;
 // private links[] _containerLinks;
 //  private string[] _containerNamePics;
 public static DataBaseModel getInstance()
 {
     if (objectBase == null)
     {
         objectBase = new DataBaseModel(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Environment.CurrentDirectory + @"\inputFile\compare.accdb");
     }
     return objectBase;
 }
 public void selectTest()
 {
     testNameComboBox.Items.Clear();
     curentBase = DataBaseModel.getInstance();
     System.Collections.IEnumerator enumerator = curentBase.getContext().test.GetEnumerator();
     while (enumerator.MoveNext())
     {
         test curentTest = (test)enumerator.Current;
         testNameComboBox.Items.Add(curentTest.tname.ToString());
     }
 }
 public CreateTestViewController(CreateTestDelegate _createDelegate)
 {
     InitializeComponent();
     createDelegate = _createDelegate;
     curentBase = DataBaseModel.getInstance();
 }
 private void создатьТестToolStripMenuItem_Click(object sender, EventArgs e)
 {
     OpenFileDialog fileDialog = new OpenFileDialog();
     if (fileDialog.ShowDialog() == DialogResult.OK)
     {
         DataBaseModel._connectString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + fileDialog.FileName;
         dataBase = DataBaseModel.getInstance();
         rootDelegate.showCreateController();
     }
 }