Exemplo n.º 1
0
        public static void Show(string title, string content)
        {
            TextDisplayForm form = new TextDisplayForm();

            form.Text    = title;
            form.Content = content;
            form.ShowDialog();
        }
Exemplo n.º 2
0
        private void viewLicenseButton_Click(object sender, EventArgs e)
        {
            string licenseText = DefaultFiles.License;

            TextDisplayForm tdf = new TextDisplayForm();

            tdf.Text    = "Fractron 9000 License";
            tdf.Content = licenseText;
            tdf.ShowDialog();
        }
Exemplo n.º 3
0
        private void hardwareInfoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            System.IO.StringWriter text = new System.IO.StringWriter();

            if (engineMgr.FoundDevices == null)
            {
                return;
            }

            try{
                CPUDeviceEntry.CheckSupport();
            }catch (Exception ex) {
                text.WriteLine("No CPU/OpenGL Support: " + ex.Message);
            }
            try{
                OpenCLDeviceEntry.CheckSupport();
            }catch (Exception ex) {
                text.WriteLine("No OpenCL Support: " + ex.Message);
            }
            try{
                CudaDeviceEntry.CheckSupport();
            }catch (Exception ex) {
                text.WriteLine("No CUDA Support: " + ex.Message);
            }
            text.WriteLine();
            foreach (DeviceEntry dev in engineMgr.FoundDevices)
            {
                text.WriteLine(dev.GetReport());
            }


            beginDlg();
            TextDisplayForm dlg = new TextDisplayForm();

            dlg.Text    = "Hardware Info";
            dlg.Content = text.ToString();
            dlg.ShowDialog();
            endDlg();
        }
Exemplo n.º 4
0
        private void runDiagnosticsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            readyToRender = false;
            chooseDesiredEngineState();
            engineMgr.UpdateEngineState();
            updateEngineStatusPanel();
            Application.DoEvents();

            TestRunner runner = new TestRunner();

            runner.RunTests(new OpenCL.OpenCLTest());
            string report = runner.Report;

            TextDisplayForm dlg = new TextDisplayForm();

            dlg.Text    = "Diagnostic Tests";
            dlg.Content = report;
            dlg.ShowDialog();

            readyToRender = true;
            layoutRenderer();
            chooseDesiredEngineState();
        }
Exemplo n.º 5
0
        private void viewGenomeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            beginDlg();

            StringWriter      sw       = new StringWriter();
            XmlWriterSettings settings = new XmlWriterSettings();

            settings.OmitXmlDeclaration = true;
            settings.ConformanceLevel   = ConformanceLevel.Fragment;
            settings.Indent             = true;
            XmlWriter xw = XmlWriter.Create(sw, settings);

            FlameFileIO.WriteFlame(xw, FractalManager.Fractal);
            xw.Flush();

            TextDisplayForm form = new TextDisplayForm();

            form.Text    = "Fractal Genome";
            form.Content = sw.ToString();
            form.ContentTextBox.WordWrap = false;
            form.ShowDialog();

            endDlg();
        }