public static string GetSecrectKey() { RDSDataManager manager = new RDSDataManager(); var initTimeString = manager.GetInitTime(); return(GetSecrectKey(initTimeString)); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); RDSDataManager dataManager = new RDSDataManager(); var secKey = dataManager.GetSecrectKey(); var initTime = dataManager.GetInitTime(); if (string.IsNullOrWhiteSpace(secKey) || string.IsNullOrWhiteSpace(initTime)) { Application.Run(new InitForm()); } else { Application.Run(new LoginForm()); } }