Exemplo n.º 1
0
 public GameImportForm(GogPluginAddGames plugin)
 {
     InitializeComponent();
     this.plugin      = plugin;
     this.FormClosed += plugin.ImportFormClosed;
     this.importGamesBind.DataSource = plugin.gamesFound;
 }
Exemplo n.º 2
0
 public LoginBrowser(GogPluginAddGames plugin)
 {
     InitializeComponent();
     this.plugin       = plugin;
     this.FormClosing += this.ShutdownBrowser;
     this.FormClosed  += plugin.BrowserClosed;
     InitBrowser();
 }
 public GameImportForm2(GogPluginAddGames plugin)
 {
     InitializeComponent();
     this.plugin      = plugin;
     this.FormClosed += plugin.ImportFormClosed;
     this.Shown      += setDownloadValues;
     this.importGamesBind.DataSource = plugin.gamesFound;
 }
        public GameImportForm(GogPluginAddGames plugin)
        {
            InitializeComponent();
            this.plugin      = plugin;
            this.FormClosed += plugin.ImportFormClosed;
            this.importGamesBind.DataSource = plugin.gamesFound;

            Bitmap b     = (Bitmap)plugin.IconImage;
            IntPtr pIcon = b.GetHicon();
            Icon   i     = Icon.FromHandle(pIcon);

            this.Icon = i;
        }
        public LoginBrowser(GogPluginAddGames plugin)
        {
            InitializeComponent();
            this.plugin       = plugin;
            this.FormClosing += this.ShutdownBrowser;
            this.FormClosed  += plugin.BrowserClosed;

            Bitmap b     = (Bitmap)plugin.IconImage;
            IntPtr pIcon = b.GetHicon();
            Icon   i     = Icon.FromHandle(pIcon);

            this.Icon = i;

            InitBrowser();
        }
Exemplo n.º 6
0
 public ImportOptions(GogPluginAddGames plugin)
 {
     InitializeComponent();
     this.plugin                 = plugin;
     this.skipImported           = this.checkBoxSkipImported.Checked;
     this.skipByTitle            = this.checkBoxSkipTitle.Checked;
     this.galaxyPathTextBox.Text = this.galaxyPathBowser.RootFolder.ToString();
     this.galaxyPath             = this.galaxyPathBowser.RootFolder.ToString();
     this.comboBoxPlatformSelect.Items.AddRange(plugin.platforms.Values.ToArray());
     this.comboBoxPlatformSelect.SelectedIndex = 0;
     this.platform = (string)this.comboBoxPlatformSelect.Items[0];
     this.comboBoxModeSelect.SelectedIndex = 0;
     this.mode = (GogPluginAddGames.Mode) 0;
     ok        = new TaskCompletionSource <bool>();
 }
        public ImportOptions(GogPluginAddGames plugin)
        {
            InitializeComponent();
            this.plugin = plugin;

            Bitmap b     = (Bitmap)plugin.IconImage;
            IntPtr pIcon = b.GetHicon();
            Icon   i     = Icon.FromHandle(pIcon);

            this.Icon = i;

            // use recent options
            this.skipImported = plugin.skipImported;
            this.checkBoxSkipImported.Checked = plugin.skipImported;

            this.skipByTitle = plugin.skipByTitle;
            this.checkBoxSkipTitle.Checked = plugin.skipByTitle;

            if (plugin.galaxyPath == null)
            {
                this.galaxyPathTextBox.Text = this.galaxyPathBowser.RootFolder.ToString();
                this.galaxyPath             = this.galaxyPathBowser.RootFolder.ToString();
            }
            else
            {
                this.galaxyPathTextBox.Text = plugin.galaxyPath;
                this.galaxyPath             = plugin.galaxyPath;
            }

            this.comboBoxPlatformSelect.Items.AddRange(plugin.platforms.Values.ToArray());
            this.comboBoxPlatformSelect.SelectedIndex = plugin.platformNo;

            this.comboBoxModeSelect.SelectedIndex = (int)plugin.mode;
            this.mode = plugin.mode;

            ok = new TaskCompletionSource <bool>();
        }