static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var formMain = new FormDatabase(); formMain.startApplication(); formMain.Show(); Application.Run(); }
public DatabaseList(FormDatabase context, DataSet dataSet, DatabaseConnection databaseConnection, int databaseId) { InitializeComponent(); this.formBaseContext = context; this.databaseConnection = databaseConnection; this.dataSet = dataSet; this.databaseId = databaseId; helperFunctions = new HelperFunctions(); backgroundWorker_readDataset.DoWork += new DoWorkEventHandler(backgroundWorker_readDataset_DoWork); backgroundWorker_readDataset.RunWorkerCompleted += new RunWorkerCompletedEventHandler(backgroundWorker_readDataset_RunWorkerCompleted); this.tableID = Int32.Parse(numericUpDown_tableSelector.Text); helperFunctions.changeElementText(labelListEntries, "List entries: " + dataSet.Tables[tableID].Rows.Count.ToString(), false); helperFunctions.changeElementText(labelDatabaseId, "Database ID: " + databaseId, false); }
public FormCharts(Object context) { InitializeComponent(); formBaseContext = (FormDatabase)context; initCharts(); label_measurementContext.Text = label_measurementContext.Text + "Movement angle right leg"; sampleStep = DEFAULT_SAMPLE_TIME_FACTOR; this.sensorIdToShow = Convert.ToInt32(numericUpDownSensorSelector.Value); firtStart = false; notifyIcon = new NotifyIcon(); chartTimer = new Timer(); chartTimer.Tick += new EventHandler(OnChartEvent); //chartTimer.Interval = (int)(DEFAULT_SAMPLE_TIME * 500); // sample time needs to be less than the default (fast collector and slow sender) //chartTimer.Interval = 1; // sample time needs to be less than the default (fast collector and slow sender) chartTimer.Start(); dataCounter = 0; }
public FormY(Object context, int sampleTimeFactor) { InitializeComponent(); formBaseContext = (FormDatabase)context; if (sampleTimeFactor >= (DEFAULT_SAMPLE_TIME_FACTOR)) { this.sampleTimeFactor = sampleTimeFactor; } else { this.sampleTimeFactor = DEFAULT_SAMPLE_TIME_FACTOR; } sampleStep = DEFAULT_SAMPLE_TIME_FACTOR; this.sensorIdToShow = Convert.ToInt32(numericUpDownSensorSelector.Value); firtStart = false; notifyIcon = new NotifyIcon(); chartTimer = new System.Timers.Timer(); chartTimer.Elapsed += new System.Timers.ElapsedEventHandler(OnChartEvent); chartTimer.Interval = sampleTimeFactor * DEFAULT_SAMPLE_TIME_FACTOR; chartTimer.Enabled = true; }