示例#1
0
 internal ProfileCreator(Forms.GraphicalProfileCreationForm newProfileForm)
 {
     usedProfileForm = newProfileForm;
     if (DirectX.RunInEndScene(CreateProfile))
     {
         usedProfileForm.lRecording.Text    = "Recording";
         usedProfileForm.Text               = "Recording new Profile";
         usedProfileForm.lRecording.Visible = true;
     }
 }
示例#2
0
 internal static void StartProfileCreation(Forms.GraphicalProfileCreationForm targetForm)
 {
     GuiCore.MainForm.Invoke(new MethodInvoker(delegate
     {
         if (IsEngineRunning)
         {
             return;
         }
         _Engine = new ProfileCreator(targetForm);
     }));
 }
示例#3
0
        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();
        }