private void checkPull2() { txtLocationPull2.Text = this.pull2Location; chkEnablePull2.Checked = this.pull2Enabled; if (String.IsNullOrEmpty(this.pull2Location) == false && this.pull2Enabled) { gammuPull2 = new GMonit(pull2Location, GMonit.PULL2INDEX); if (!gammuPull2.checkTableExists()) { chkEnablePull2.Checked = false; this.pull2Enabled = false; DialogResult dr = MessageBox.Show("System Cannot detected table, want to create new?", "Table not found", MessageBoxButtons.YesNo); switch (dr) { case DialogResult.Yes: gammuPull2.createTableLog(); break; } } else { gammuPull2.detectProcess(); timerMonitPull2.Start(); fillPull2DataList(); } } }
private void btnSchedulePull2_Click(object sender, EventArgs e) { if (gammuPull2 != null) { if (gammuPull2.checkTableExists()) { gammuPull2.removeIncomingSchedule(); } gammuPull2.nextSchedule(); fillPull2DataList(); } }
private void button1_Click(object sender, EventArgs e) { if (gammuPull1 != null) { if (gammuPull1.checkTableExists()) { gammuPull1.removeIncomingSchedule(); } gammuPull1.nextSchedule(); fillPull1DataList(); } }