public MatSettings(Main sender) { FormBorderStyle = FormBorderStyle.FixedSingle; InitializeComponent(); scene = sender.scene; matSelector = scene.tube.mat; setSliders(MatComp); }
public Main() { // Инициализация формы и контекста OpenGL InitializeComponent(); OGLVP.InitializeContexts(); OGLVP.MouseWheel += new MouseEventHandler(OGLVP_MouseWheel); matName.Text = "Свинец"; radiusLabel.Text = (R * 1000).ToString("F1") + " мм"; Graph.Enabled = false; TimeFactorSlider.Value = 3; TimeFactorLabel.Text = "X 1,00"; TimerLabel.Text = "0,00 с"; scene = new scene(OGLVP); // Создаем новую "сцену" см. scene.cs liqudChoice.SelectedIndex = 0; }