public MainWindow() { InitializeComponent(); mainScene = new GR_Scene(); UpdatePicBoxParams(); Zc_label.Text = mainScene.Zc.ToString(); moveModeButton.BackColor = Color.FromArgb(100, Color.Teal); label7.Text = spline_step.ToString(); }
private void toolCustomButton4_Click(object sender, EventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); if (openFileDialog.ShowDialog() == DialogResult.OK) { Stream s = File.Open(openFileDialog.FileName, FileMode.Open); BinaryFormatter bf = new BinaryFormatter(); mainScene = (GR_Scene)bf.Deserialize(s); s.Close(); UpdatePicBoxParams(); } }