private void StartForm_Load(object sender, EventArgs e) { try { string UserName = "", Password = ""; current = new Current(); Splash.Message("��������������..."); TryAgain: current.SetUser(UserName, Password, Current.WindowsDomainName()); if (current == null) Functions.CloseApplication(); UpdatePrograms(); if (ProgramsTree.Nodes.Count == 0) { if (!Login.Execute(ref UserName, ref Password)) { Functions.CloseApplication(); return; } goto TryAgain; } log = new Log(/*new FileLogDestination("c:\\userlog.log"),*/ new PzUsersLogDestination(current)); log.Message("����������� ������ �������"); Splash.Message("��������� ������ ��������..."); UpdateNews(); this.Text = "����� ������ [" + current.User.name + "]"; } finally { WindowState = FormWindowState.Maximized; Splash.Close(); } }