Hyena.Gui.ActionManager.AddUiFromFile C# (CSharp) Method

AddUiFromFile() public method

public AddUiFromFile ( string ui_file, Assembly assembly ) : uint
ui_file string
assembly System.Reflection.Assembly
return uint
        public uint AddUiFromFile (string ui_file, Assembly assembly)
        {
            if (ui_file != null) {
                using (StreamReader reader = new StreamReader (assembly.GetManifestResourceStream (ui_file))) {
                    return ui_manager.AddUiFromString (reader.ReadToEnd ());
                }
            }
            return 0;
        }

Usage Example

Exemplo n.º 1
0
 public void AddUiFromFile(string ui_file)
 {
     Hyena.ThreadAssist.AssertInMainThread();
     ui_merge_ids.Add(ActionManager.AddUiFromFile(ui_file, System.Reflection.Assembly.GetCallingAssembly()));
 }