public App() { // NWN2ModuleAnalyser.ExcelOutput e = new NWN2ModuleAnalyser.ExcelOutput(); // // ModuleStats s = new ModuleStats(); // s.Name = "Whatup"; // s.CumulativeStats.Actions["GiveGold"]++; // // e.PopulateColumn(s.GetSpreadsheetRows(),1,2); // e.PopulateColumn(s.GetSpreadsheetData(),2,2); // e.Quit(); FlipTranslator translator = new FakeTranslator(); FlipAttacher attacher = new FakeAttacher(translator); Nwn2Fitters fitters = new Nwn2Fitters(); Nwn2StatementFactory statements = new Nwn2StatementFactory(fitters); Nwn2TriggerFactory triggers = new Nwn2TriggerFactory(fitters); Nwn2ImageProvider images = new Nwn2ImageProvider(new NarrativeThreadsHelper()); Nwn2ObjectBlockFactory blocks = new Nwn2ObjectBlockFactory(images); Nwn2MoveableProvider provider = new Nwn2MoveableProvider(blocks, statements, triggers); FlipWindow window = new FlipWindow(provider, images, new FlipWindow.OpenDeleteScriptDelegate(Open), new FlipWindow.SaveScriptDelegate(Save), new Nwn2DeserialisationHelper()); window.Show(); }
/// <summary> /// Launch the Flip application. /// </summary> public void LaunchFlip() { if (window == null) { InitialiseFlip(); } if (!window.ShowActivated) { window.Show(); } else { window.Visibility = Visibility.Visible; } window.Activate(); }