public void ShowNoConnectionView()
        {
            connectionError = true;

            NoConnectionView ncView = new NoConnectionView();

            currentViewControl = null;

            pnlContent.Controls.Clear();

            lblViewTitle.Text = ncView.HeaderTitle;
            lblHeaderCaption.Text = ncView.HeaderCaption;
            picHeaderIcon.Image = ncView.HeaderIcon;

            ncView.Dock = DockStyle.Fill;
            pnlContent.Controls.Add(ncView);
            ncView.Show();

            pnlExpired.Visible = false;
            pnlNewVersion.Visible = false;

            lblConnectionStatus.Text = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.MainForm_NoConnection);
        }
        void pluginButtonItem_Click(object sender, EventArgs e)
        {
            if (((global::Controls.LinkButton)sender).Tag is CallButler.Manager.Plugin.CallButlerManagementPlugin)
            {
                CallButler.Manager.Plugin.CallButlerManagementPluginViewControl pluginViewControl = ((CallButler.Manager.Plugin.CallButlerManagementPlugin)((global::Controls.LinkButton)sender).Tag).GetNewViewControl();

                if (pluginViewControl != null)
                {
                    ViewControlBase viewControl = new ViewControlBase();
                    pluginViewControl.Dock = DockStyle.Fill;
                    viewControl.Controls.Add(pluginViewControl);
                    pluginViewControl.BringToFront();

                    LoadViewControl(viewControl);
                }
            }
        }
        public void LoadViewControl(ViewControlBase viewControl)
        {
            connectionError = false;

            ShowCommonTasks(Properties.Settings.Default.DisplayCommonTasks, false);

            // Save the data from our current view control
            if (currentViewControl != null)
            {
                lblLoadStatus.Text = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.MainForm_SavingChanges);
                lblLoadStatus.Visible = true;
                if (!currentViewControl.SaveData())
                    return;

                lblLoadStatus.Text = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.MainForm_ChangesSaved);

                currentViewControl.Dispose();
                currentViewControl = null;
            }

            lblLoadStatus.Text = CallButler.Manager.Utils.PrivateLabelUtils.ReplaceProductName(Properties.LocalizedStrings.MainForm_LoadingData);
            if (!viewControl.LoadData())
                return;

            currentViewControl = viewControl;

            // Remove the view from the screen
            pnlContent.Controls.Clear();

            Utils.PrivateLabelUtils.ReplaceProductNameControl(viewControl);

            // Load the new control
            lblViewTitle.Text = viewControl.HeaderTitle;
            lblHeaderCaption.Text = viewControl.HeaderCaption;
            picHeaderIcon.Image = viewControl.HeaderIcon;

            lblLoadStatus.Visible = false;

            viewControl.Dock = DockStyle.Fill;
            pnlContent.Controls.Add(viewControl);
            viewControl.Show();

            if (viewControl is SummaryView)
                btnBackToSummary.Visible = false;
            else
                btnBackToSummary.Visible = true;
        }