internal ProfileCreator(Forms.GraphicalProfileCreationForm newProfileForm) { usedProfileForm = newProfileForm; if (DirectX.RunInEndScene(CreateProfile)) { usedProfileForm.lRecording.Text = "Recording"; usedProfileForm.Text = "Recording new Profile"; usedProfileForm.lRecording.Visible = true; } }
internal static void StartProfileCreation(Forms.GraphicalProfileCreationForm targetForm) { GuiCore.MainForm.Invoke(new MethodInvoker(delegate { if (IsEngineRunning) { return; } _Engine = new ProfileCreator(targetForm); })); }
private void newProfileToolStripMenuItem_Click(object sender, EventArgs e) { var tmpNewProfileForm = new Forms.GraphicalProfileCreationForm(); if (EngineManager.CurrentEngineType != Engines.Engines.None) { EngineManager.StopCurrentEngine(); } tmpNewProfileForm.StartPosition = FormStartPosition.Manual; tmpNewProfileForm.Location = new Point(GuiCore.MainForm.Location.X, GuiCore.MainForm.Location.Y); EngineManager.StartProfileCreation(tmpNewProfileForm); tmpNewProfileForm.Show(); }