public Form1() { InitializeComponent(); // Initialize our client. client = new iCloudLib.iCloud(); Client.FindMyiPhoneUpdate += FindMyPhoneUpdated; LoadContactInformation(); }
public LoginDialog(iCloud clientConnection) { InitializeComponent(); this.client = clientConnection; // Quick Debug Login Information. #if DEBUG string debugAuthPath = "C:\\iCloudDebugAuth.txt"; if (File.Exists(debugAuthPath)) { string authData = System.Text.ASCIIEncoding.ASCII.GetString(File.ReadAllBytes(debugAuthPath)); this.txtAppleId.Text = authData.Substring(0, authData.IndexOf(':')); this.txtPassword.Text = authData.Substring(authData.IndexOf(':') + 1); } #endif }