本文整理汇总了C#中System.Windows.Forms.Form.?.BringToFront方法的典型用法代码示例。如果您正苦于以下问题:C# Form.?.BringToFront方法的具体用法?C# Form.?.BringToFront怎么用?C# Form.?.BringToFront使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Forms.Form
的用法示例。
在下文中一共展示了Form.?.BringToFront方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ExportAsync
public async Task ExportAsync(string outputFile, bool generateManifest, bool onlySelected, bool generateBinary, Form callerForm)
{
var gameConversionManger = Loader.Global.ConversionManager;
gameConversionManger.CoordSystem = Autodesk.Max.IGameConversionManager.CoordSystem.D3d;
var gameScene = Loader.Global.IGameInterface;
gameScene.InitialiseIGame(onlySelected);
gameScene.SetStaticFrame(0);
MaxSceneFileName = gameScene.SceneFileName;
IsCancelled = false;
RaiseMessage("Exportation started", Color.Blue);
ReportProgressChanged(0);
var babylonScene = new BabylonScene(Path.GetDirectoryName(outputFile));
var rawScene = Loader.Core.RootNode;
if (!Directory.Exists(babylonScene.OutputPath))
{
RaiseError("Exportation stopped: Output folder does not exist");
ReportProgressChanged(100);
return;
}
var watch = new Stopwatch();
watch.Start();
// Save scene
RaiseMessage("Saving 3ds max file");
if (AutoSave3dsMaxFile)
{
var forceSave = Loader.Core.FileSave;
callerForm?.BringToFront();
}
// Producer
babylonScene.producer = new BabylonProducer
{
name = "3dsmax",
#if MAX2017
version = "2017",
#else
version = Loader.Core.ProductVersion.ToString(),
#endif
exporter_version = "0.4.5",
file = Path.GetFileName(outputFile)
};
// Global
babylonScene.autoClear = true;
babylonScene.clearColor = Loader.Core.GetBackGround(0, Tools.Forever).ToArray();
babylonScene.ambientColor = Loader.Core.GetAmbient(0, Tools.Forever).ToArray();
babylonScene.gravity = rawScene.GetVector3Property("babylonjs_gravity");
ExportQuaternionsInsteadOfEulers = rawScene.GetBoolProperty("babylonjs_exportquaternions", 1);
// Sounds
var soundName = rawScene.GetStringProperty("babylonjs_sound_filename", "");
if (!string.IsNullOrEmpty(soundName))
{
var filename = Path.GetFileName(soundName);
var globalSound = new BabylonSound
{
autoplay = rawScene.GetBoolProperty("babylonjs_sound_autoplay", 1),
loop = rawScene.GetBoolProperty("babylonjs_sound_loop", 1),
name = filename
};
babylonScene.SoundsList.Add(globalSound);
try
{
File.Copy(soundName, Path.Combine(babylonScene.OutputPath, filename), true);
}
catch
{
}
}
// Cameras
BabylonCamera mainCamera = null;
ICameraObject mainCameraNode = null;
RaiseMessage("Exporting cameras");
var camerasTab = gameScene.GetIGameNodeByType(Autodesk.Max.IGameObject.ObjectTypes.Camera);
for (int ix = 0; ix < camerasTab.Count; ++ix)
{
#if MAX2017
var indexer = ix;
#else
var indexer = new IntPtr(ix);
#endif
var cameraNode = camerasTab[indexer];
#if !MAX2017
Marshal.FreeHGlobal(indexer);
//.........这里部分代码省略.........