private void loadSettingsAndCreateForm() { m_LastSettings = FacebookAppSettings.LoadFromFile(); InitializeComponent(); populateArrayOfControls(); }
public FormFacebookApp() { InitializeComponent(); m_formCleaner = new FormCleaner(); m_formCleaner.AttachAllControls(this); // Add all of the wanted controls to the subject./*Lior*/ m_formCleaner.AttachLegacyControl(this.nameLabel); // Can add legacy controls individually. StartPosition = FormStartPosition.Manual; m_LoggedIn = FacebookEngine.Instance.RememberUser; m_FormSettings = FacebookAppSettings.LoadAppSettingsFromFile(); commandButtonFetchResumeInfo.Command = new FetchResumeInformationCommand { Client = this }; commandButtonCreateCv.Command = new CreateResumeCommand { Client = this }; commandButtonSendToMail.Command = new SendResumeToMailCommand { Client = this }; if (m_FormSettings.RememberUser) { checkBoxRemember.Checked = m_FormSettings.RememberUser; Location = m_FormSettings.LastWindowLocation; Size = m_FormSettings.LastWindowSize; if (m_LoggedIn) { fetchLoggedInUserWrapper(); } } }
public FormFacebookApp() { InitializeComponent(); StartPosition = FormStartPosition.Manual; m_LoggedIn = FacebookEngine.Instance.RememberUser; m_FormSettings = FacebookAppSettings.LoadAppSettingsFromFile(); if (m_FormSettings.RememberUser) { checkBoxRemember.Checked = m_FormSettings.RememberUser; Location = m_FormSettings.LastWindowLocation; Size = m_FormSettings.LastWindowSize; if (m_LoggedIn) { fetchLoggedInUserWrapper(); } } }