Пример #1
0
        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());
            }
        }
Пример #2
0
        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);
        }
Пример #3
0
 private void erase_Click(object sender, EventArgs e)
 {
     QueryPresenter.ClearRepository();
 }
Пример #4
0
 private void foward_Click(object sender, EventArgs e)
 {
     QueryPresenter.GetNext();
     back.Enabled = true;
 }
Пример #5
0
 private void backward_Click(object sender, EventArgs e)
 {
     QueryPresenter.GetPrevious();
     foward.Enabled = true;
 }