Пример #1
0
		void SetLogOnText(string text, int idx)
		{
			if (m_dispatcher.CheckAccess() == false)
			{
				m_dispatcher.Invoke(new Action<string, int>(SetLogOnText), text, idx);
				return;
			}

			if (m_logOnDialog == null)
			{
				App.MainWindow.IsEnabled = false;

				m_logOnDialog = new LogOnDialog();
				m_logOnDialog.Owner = App.MainWindow;
				if (idx == 0)
					m_logOnDialog.SetText1(text);
				else
					m_logOnDialog.SetText2(text);
				m_logOnDialog.Show();
			}
			else
			{
				if (idx == 0)
					m_logOnDialog.SetText1(text);
				else
					m_logOnDialog.SetText2(text);
			}
		}