Esempio n. 1
0
        private void buttonShowDetailLog_Click(object sender, EventArgs e)
        {
            FormPreview formPreview = FormPreview.Instance;

            formPreview.GroupBoxText  = "Set SqlServer Log";
            formPreview.Script        = sbResultAll.ToString();
            formPreview.StartPosition = FormStartPosition.CenterScreen;
            formPreview.ShowDialog();
        }
Esempio n. 2
0
        private void buttonPowerShellScriptPreview_Click(object sender, EventArgs e)
        {
            FormPreview formPreview = FormPreview.Instance;

            formPreview.GroupBoxText  = "PowerShell Preview";
            formPreview.Script        = psTemplateChanged;
            formPreview.StartPosition = FormStartPosition.CenterScreen;
            formPreview.ShowDialog();
        }
Esempio n. 3
0
        private void buttonModifyScript_Click(object sender, EventArgs e)
        {
            FormPreview formPreview = FormPreview.Instance;

            formPreview.GroupBoxText  = "sp_configure Preview";
            formPreview.Script        = Sp_configure;
            formPreview.StartPosition = FormStartPosition.CenterScreen;
            formPreview.ShowDialog();
        }
Esempio n. 4
0
        private void PreviewClose(object sender, ScriptArgs e)
        {
            FormPreview formPreview = (FormPreview)sender;

            if (formPreview.GroupBoxText.Equals("sp_configure Preview", StringComparison.OrdinalIgnoreCase))
            {
                Sp_configure = e.Script;
            }
            if (formPreview.GroupBoxText.Equals("PowerShell Preview", StringComparison.OrdinalIgnoreCase))
            {
                psTemplateChanged = e.Script;
            }
        }