public static DialogResult ShowWindow() { var manager = UserManager.Create(); using (XF_Login login = new XF_Login(manager)) return(login.ShowDialog()); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); DevExpress.UserSkins.BonusSkins.Register(); DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(GLOB.Settings.Get <string>(2)); GLOB.ConfigureMap(); if (Updater.CheckVersion()) { Updater.UpdateApplication(); } if (XF_Login.ShowWindow() == DialogResult.Yes) { var dispManager = DispatchManager.CreateEmpty(); Application.Run(new XF_Dispatches(dispManager)); } //XF_TestForm.ShowWindow(); }
public static DialogResult ShowWindow() { var manager = UserManager.Create(); using (XF_Login login = new XF_Login(manager)) return login.ShowDialog(); }