private void buttonLoad_Click(object sender, EventArgs e) { if (aThread != null) { return; } OpenFileDialog ofd = new OpenFileDialog(); ofd.Title = "Open CSV File"; ofd.Filter = "CSV Files|*.csv;*.csv.gz" + "|Text Files|*.txt;*.txt.gz" + "|All file types|*.csv;*.csv.gz;*.txt;*.txt.gz"; ofd.FilterIndex = 0; ofd.FileName = ""; if (ofd.ShowDialog() != DialogResult.OK) { return; } if (fVis.LoadResults(ofd.FileName)) { ImageWidth = fVis.Width; ImageHeight = fVis.Height; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); comboScene.SelectedIndex = comboScene.Items.IndexOf(fVis.WorldName); } }
public Form1(string[] args) { singleton = this; InitializeComponent(); progress = new RenderingProgress(this); // Init scenes etc. FormSupport.InitializeScenes(args, out string name); Text += @" (" + rev + @") '" + name + '\''; formTitle = Text; SetWindowTitleSuffix(" Zoom: 100%"); SetOptions(args); buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); // Placeholder image for PictureBox. Image image = Resources.CGG_Logo; additionalViews = new AdditionalViews(collectDataCheckBox, Notification); additionalViews.Initialize(); // Makes all maps to initialize again. additionalViews.SetNewDimensions(ImageWidth, ImageHeight); // Default PaZ button = Right. panAndZoom = new PanAndZoomSupport(pictureBox1, image, SetWindowTitleSuffix) { Button = MouseButtons.Right }; rayVisualizer = new RayVisualizer(); }
public Form1() { InitializeComponent(); // Init rendering params: double from, to, fps; string name; Animation.InitParams(out ImageWidth, out ImageHeight, out from, out to, out fps, out param, out name); if (ImageWidth < 0) { ImageWidth = 0; // 0 .. take image width from the form size } if (ImageHeight < 0) { ImageHeight = 0; // 0 .. take image height from the form size } if (to <= start) { to = start + 1.0; } if (fps <= 0.0) { fps = 25.0; } numFrom.Value = (decimal)from; numTo.Value = (decimal)to; numFps.Value = (decimal)fps; textParam.Text = param; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); Text += " (" + rev + ") '" + name + '\''; }
private void buttonRes_Click(object sender, EventArgs e) { FormResolution form = new FormResolution(ImageWidth, ImageHeight); if (form.ShowDialog() == DialogResult.OK) { ImageWidth = form.ImageWidth; ImageHeight = form.ImageHeight; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); } }
private void buttonRes_Click(object sender, EventArgs e) { FormResolution form = new FormResolution(ImageWidth, ImageHeight); if (form.ShowDialog() == DialogResult.OK) { ImageWidth = form.ImageWidth; ImageHeight = form.ImageHeight; UpdateResolutionButton(); } }
public Form1() { InitializeComponent(); Text += " (rev: " + rev + ')'; // Init scenes etc. fVis = new FlowVisualization(this); fVis.progress = progress = new SimulationProgress(this, fVis); fVis.InitializeScenes(); buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); }
protected void UpdateResolutionButton() { if (buttonRes.InvokeRequired) { UpdateResolutionCallback ur = new UpdateResolutionCallback(UpdateResolutionButton); BeginInvoke(ur); } else { buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); } }
public Form1() { singleton = this; InitializeComponent(); // Init rendering params: string name; FormSupport.InitializeParams(out name); Text += " (rev: " + rev + ") '" + name + '\''; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); }
public Form1(string[] args) { singleton = this; InitializeComponent(); progress = new RenderingProgress(this); // Init scenes etc. string name; FormSupport.InitializeScenes(args, out name); Text += " (rev: " + rev + ") '" + name + '\''; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); }
public Form1() { InitializeComponent(); string [] tok = "$Rev$".Split(' '); Text += " (rev: " + tok[1] + ')'; // Init rendering params: double from, to, fps; Animation.InitParams(out ImageWidth, out ImageHeight, out from, out to, out fps); numFrom.Value = (decimal)from; numTo.Value = (decimal)to; numFps.Value = (decimal)fps; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); }
private void buttonRes_Click(object sender, EventArgs e) { if (aThread != null) { return; } FormResolution form = new FormResolution(ImageWidth, ImageHeight); if (form.ShowDialog() == DialogResult.OK) { ImageWidth = form.ImageWidth; ImageHeight = form.ImageHeight; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); fVis.dirty = true; } }
public Form1(string[] args) { singleton = this; InitializeComponent(); // Init rendering params: string name; FormSupport.InitializeParams(args, out name); if (!string.IsNullOrEmpty(sceneFileName)) { sceneFileName = Path.GetFullPath(sceneFileName); buttonScene.Text = sceneFileName; } Text += " (rev: " + rev + ") '" + name + '\''; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); }
public Form1() { InitializeComponent(); Text += " (rev: " + rev + ')'; buttonRes.Text = FormResolution.GetLabel(ref ImageWidth, ref ImageHeight); }