Beispiel #1
0
        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;
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();


            passwordForConnection = new PasswordForConnection();
            passwordForConnection.SetPasswordAction = SetPasswordDelegate;

            transferWindow = new TransferWindow();
            transferWindow.TransferAction = TransferHistoryDelegate;

            SetRandomPasswordIfFirstLaunch();

            trayIcon = new TrayIcon(this, transferWindow);
        }