Beispiel #1
0
        public mainWindowForm()
        {
            //this.TopMost = true;
            this.TopLevel = true;
            InitializeComponent();
            //commandGen = new commandGenerate(textBoxDatabase.Text, textBoxSourceUrl.Text, textBoxSourceUName.Text, textBoxSourceUPassword.Text, textBoxDestinationUrl.Text, textBoxDestinationUName.Text, textBoxDestionationUPassword.Text);
            cl = new connections();
            updateConnectionList();

            //By default choosing localhost if exists
            if (cl.connectionList.Exists(con => con.name == "localhost"))
            {
                Console.WriteLine("have localhost");
                comboBoxSourceUrl.SelectedIndex = comboBoxSourceUrl.FindStringExact("localhost");
            }

            //MessageBox.Show("Software under development.\n!! PLEASE MAKE DUMP OF SOURCE && DESTINATION TABLE BEFORE USING THIS SOFT !!", "!!CAUTION!!");
        }
 public editConnectionForm()
 {
     InitializeComponent();
     cl = new connections();
     updateConnectionList();
 }