Example #1
0
        public MainForm()
        {
            InitializeComponent();

            Text = $"{AssemblyHelper.AssemblyTitle} {AssemblyHelper.AssemblyVersion}";

            ObjectContainer.Logger = new TextBoxLogger(txtOutput);

            _presenter = new MainFormPresenter(this, ObjectContainer.Logger, ObjectContainer.MessageBoxService, ObjectContainer.EventBroker);
        }
Example #2
0
        public MainForm()
        {
            InitializeComponent();

            this.Text = $"{AssemblyHelper.AssemblyTitle} {AssemblyHelper.AssemblyVersion}";

            _presenter = new MainFormPresenter(this, new TextBoxLogger(txtOutput), new MessageBoxService());

            // Initialize DataSet
            _dataSet   = new DataSet();
            _dataTable = _dataSet.Tables.Add("Bots");

            // initialize BindingSource
            bindingSource.DataSource = _dataSet;

            // initialize Datagridview
            grid.SetDoubleBuffered();
            grid.DataSource = bindingSource;
        }