示例#1
0
        private void lnkAddConnection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormConnectionSettings frm = new FormConnectionSettings();

            frm.ShowDialog();
        }
示例#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     );
            }
        }
示例#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);
            }
        }
示例#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);
            }
        }
示例#5
0
        private void lnkAddConnection_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormConnectionSettings frm = new FormConnectionSettings();

            frm.ShowDialog();
        }