Пример #1
0
        void ShowSettings()
        {
            Account a = Account.DefaultAccount;

            if (a == null)
            {
                a = new Account();
                if (!a.PromptForCredentials())
                {
                    a = null;
                }
            }

            if (a != null)
            {
                SettingsDlg s = new SettingsDlg(a);
                s.ShowDialog();
            }
        }
Пример #2
0
        void ShowSettings()
        {
            Account a = Account.DefaultAccount;

            if (a == null)
            {
                a = new Account();
                if (!a.PromptForCredentials())
                {
                    a = null;
                }
            }

            if (a != null)
            {
                SettingsDlg s = new SettingsDlg(a);
                s.ShowDialog();
            }
        }