private void run_Click(object sender, EventArgs e) { string query = richTextBox2.Text; richTextBox3.Text = ""; try { QueryPresenter.ExecuteQuery(query); back.Enabled = true; foward.Enabled = false; } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var view = new Form(); var queryRepository = new QueryRepository(); var queryPresenter = new QueryPresenter(view, queryRepository); var operationRepository = new OperationRepository(); var operationPresenter = new OperationPresenter(view, operationRepository); Application.Run(view); }
private void erase_Click(object sender, EventArgs e) { QueryPresenter.ClearRepository(); }
private void foward_Click(object sender, EventArgs e) { QueryPresenter.GetNext(); back.Enabled = true; }
private void backward_Click(object sender, EventArgs e) { QueryPresenter.GetPrevious(); foward.Enabled = true; }