public IFlowsheet CreateFlowsheet() { GlobalSettings.Settings.AutomationMode = true; Console.WriteLine("Initializing the Flowsheet, please wait..."); fm = new UI.Forms.Flowsheet(); return(fm.FlowsheetObject); }
public Interfaces.IFlowsheet LoadFlowsheet(string filepath) { GlobalSettings.Settings.AutomationMode = true; Console.WriteLine("Initializing the Flowsheet, please wait..."); fm = new UI.Forms.Flowsheet(); Console.WriteLine("Loading Flowsheet data, please wait..."); LoadSimulation(filepath); return(fm.FlowsheetObject); }
public void ReleaseResources() { fm?.Dispose(); fm = null; }