public DeleteDictionaryWindow(ServerDAL _dal, int userId) { InitializeComponent(); ResizeMode = ResizeMode.NoResize; this._dal = _dal; this.userId = userId; }
public void RefreshHosts() { ServerDAL sal = new ServerDAL(); var result = sal.GetAllServer(); hosts = result.Select(t => t.ServerName).ToList(); }
public EditWordsWindow(ServerDAL _dal, int userId) { InitializeComponent(); ResizeMode = ResizeMode.NoResize; this._dal = _dal; this.userId = userId; }
public static string ServerTitleSel(string sGameAbbre) { StringBuilder sbTitle = new StringBuilder("到武林_"); sbTitle.Append(ServerDAL.ServerTitleSel(sGameAbbre)); sbTitle.Append("--http://www.dao50.com/"); return(sbTitle.ToString()); }
public StartLearnWindow(ServerDAL _dal, int userId) { InitializeComponent(); this._dal = _dal; this.userId = userId; nextCardButton.IsEnabled = false; Closing += OnWindowClosing; }
public ActionResult GetAllServer() { ServerDAL dal = new ServerDAL(); ServerViewModel result = new ServerViewModel(); var servers = dal.GetAllServer(); result.Hosts = servers.Select(t => t.ServerName).ToList(); result.CurrentHost = ControllerContext.HttpContext.Request.Url.Authority; return(Json(result, JsonRequestBehavior.AllowGet)); }
/// <summary> /// 校验 /// </summary> public void Revise() { lock (objLock) { ServerDAL dal = new ServerDAL(); hosts = dal.GetAllServer().Select(t => t.ServerName).ToList(); schedulers = GetSchedulersFromDB(); foreach (var scheduler in schedulers) { ReviseScheduler(scheduler); } } }
public static string ServerTitleNoSNameSel(string sGameAbbre) { return(ServerDAL.ServerTitleNoSNameSel(sGameAbbre)); }
public Menu(ServerDAL _dal, int userId) { InitializeComponent(); this._dal = _dal; this.userId = userId; }
public static string[] ServerNewSel(int iGameID) { return(ServerDAL.ServerNewSel(iGameID)); }
public static Dictionary <string, string> ServerNumSel(string sAbbre, string sNum) { return(ServerDAL.ServerNumSel(sAbbre, sNum)); }
public static string ServerNameSelByAbbre(string sGameAbbre) { return(ServerDAL.ServerNameSelByAbbre(sGameAbbre)); }
public static List <ObjectFour> ServerStartAtTime(DateTime dtBegin, DateTime dtEnd) { return(ServerDAL.ServerStartAtTime(dtBegin, dtEnd)); }
public static List <ObjectFour> ServerSelByGID(int iGameID) { return(ServerDAL.ServerSelByGID(iGameID)); }
public static Dictionary <string, string> ServerSel(string sAbbre) { return(ServerDAL.ServerSel(sAbbre)); }
public static string GetGameName(string sGameAbbre) { return(ServerDAL.ServerTitleSel(sGameAbbre)); }
public SignIn(ServerDAL _dal) { InitializeComponent(); this._dal = _dal; }