Exemplo n.º 1
0
        private void lnkAddConnection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormConnectionSettings frm = new FormConnectionSettings();

            frm.ShowDialog();
        }
Exemplo n.º 2
0
        private void mnuConnection_Click(object sender, EventArgs e)
        {
            try
            {

                FormConnectionSettings frm = new FormConnectionSettings();

                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MyLogger.Write(ex, "mnuCOnnection_Click", LoggingCategory.Exception);

                MessageBox.Show(this, ex.Message, Messages.Error , MessageBoxButtons.OK, MessageBoxIcon.Error     );
            }
        }
Exemplo n.º 3
0
        public static void OpenNewConnectionWindow()
        {
            try
            {
                bool addNewConnection = true;

                FormConnectionSettings frm = new FormConnectionSettings(addNewConnection);

                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, Properties.Messages.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 4
0
        private void editConnectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                FormConnectionSettings frm = new FormConnectionSettings(Utils.ConnectionId);

                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message, Messages.Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Exemplo n.º 5
0
        private void lnkAddConnection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormConnectionSettings frm = new FormConnectionSettings();

            frm.ShowDialog();
        }