public MainWindow() { InitializeComponent(); CultureInfo ci = CultureInfo.InstalledUICulture; Properties.Settings.Default.SystemLanguage = ci.TwoLetterISOLanguageName; ChooseLanguage(); passwordString = Properties.Settings.Default.Password; passwordForConnection = new PasswordForConnection(); passwordForConnection.SetPasswordAction = SetPasswordDelegate; transferWindow = new TransferWindow(); transferWindow.TransferAction = TransferHistoryDelegate; transferWindow.FinishAction = FinishDelegate_TransferWindow; SetRandomPasswordIfFirstLaunch(); openFileDialog = new OpenFileDialog(); openFileDialog.Multiselect = true; trayIcon = new TrayIcon(this, transferWindow); this.Icon = notconnectedIcon; }
public MainWindow() { InitializeComponent(); passwordForConnection = new PasswordForConnection(); passwordForConnection.SetPasswordAction = SetPasswordDelegate; transferWindow = new TransferWindow(); transferWindow.TransferAction = TransferHistoryDelegate; SetRandomPasswordIfFirstLaunch(); trayIcon = new TrayIcon(this, transferWindow); }