private static void Callback() { if (tmpGrind != null && tmpGrind.Run()) { Main.MainForm.Invoke(new MethodInvoker(delegate { Main.MainForm.lGrindLoadProfile.Text = "Profile: Loaded"; _Engine = tmpGrind; IsWaitingForGeneration = false; })); } }
private static void Callback() { if (tmpGrind != null && tmpGrind.Run()) { GuiCore.MainForm.Invoke(new MethodInvoker(delegate { string tmpProfileNameString = "none"; if (Path.GetFileNameWithoutExtension(Settings.Settings.LastProfileFileName) != string.Empty) { tmpProfileNameString = Path.GetFileNameWithoutExtension(Settings.Settings.LastProfileFileName); } GuiCore.MainForm.lGrindLoadProfile.Text = $"Profile: { Path.GetFileNameWithoutExtension(Settings.Settings.LastProfileFileName) } loaded"; _Engine = tmpGrind; })); } }