Пример #1
0
        private DatabaseControl dbControl;        // Holds the database dialog!

        #endregion

        /// <summary>
        /// C'tor
        /// </summary>
        public MainForm()
        {
            InitializeComponent();
            InitializeConfiguration();

            dbControl = new DatabaseControl(null);

            // Events registration:
            this.HistoryChanged += new Action <string, string, DateTime>(form_HistoryChanged); // Register to HistoryChanged event
        }
Пример #2
0
 /// <summary>
 /// Button: Database Control
 /// </summary>
 private void btnDatabaseControl_Click(object sender, EventArgs e)
 {
     dbControl = new DatabaseControl(server);
     dbControl.Show();
 }