public static IAyConfigManager Create(ManagerFile managerFile) { switch (managerFile) { case ManagerFile.GameConfig: return(new GameConfigFile(System.AppDomain.CurrentDomain.BaseDirectory + @"Contents\Config\GameConfig.xml")); //case ManagerFile.ServiceConfig: // return new ServiceConfigFile(System.AppDomain.CurrentDomain.BaseDirectory + @"Contents\Config\ServiceConfig.xml"); } return(null); }
public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); HangmanView hangman = new HangmanView(); ManagerFile managerFile = new ManagerFile(); ManagerPicture managerPicture = new ManagerPicture(); MessageError messageError = new MessageError(); ManagerString managerString = new ManagerString(); Presenter presenter = new Presenter(hangman, managerFile, managerPicture, messageError, managerString); Application.Run(hangman); }
private IManagerErrors GetManager(PersistTo type, String ComolUniqueID, ErrorType errorType) { IManagerErrors manager = null; switch (type) { case PersistTo.Mail: MailTemplate template = (from t in GetCachedTemplates() where t.Type == errorType select t).FirstOrDefault <MailTemplate>(); ErrorSettings setting = (from s in GetCachedErrorSettings() where s.ComolUniqueID == ComolUniqueID select s).FirstOrDefault <ErrorSettings>(); manager = new ManagerMail(template, setting); break; case PersistTo.File: manager = new ManagerFile(); break; case PersistTo.Database: System.Diagnostics.EventLog.WriteEntry("DEBUG", "PersistTo.Database"); manager = new ManagerDatabase(); break; } return(manager); }
public ConvertToTransferWindow(ManagerFile managerFile) : base(Gtk.WindowType.Toplevel) { Build(); this.managerFile = managerFile; }