//This event is invoked when we hit on the Connect button
        //This invokes the ConnectToServer winform, and helps connect to a ReportServer instance.
        private void btnConnect_Click(object sender, EventArgs e)
        {
            //Creates an instance of the ConnectToServer winform and opens the Dialog
            ConnectToServerDialog RsInstance = new ConnectToServerDialog();
            RsInstance.ShowDialog();

            //Connects to the ReportServer instance specified through URL, and calls all the corresponding events
            //to display the report items of the corresponding RS instance.
            InvokeRSInstance(RsInstance.RSInstanceUrl);
        }
        //The Function is called to connect to the specific RS instance
        private void callConnect()
        {
            //The winform ConnectToServerDialog gets the RS instance URL we need to connect
            ConnectToServerDialog RsInstance = new ConnectToServerDialog();
            RsInstance.ShowDialog();

            //This method call actually connect to the RS instance
            InvokeRSInstance(RsInstance.RSInstanceUrl);
        }