Ejemplo n.º 1
0
        /// <summary>
        ///     Fetches the app list provided by the steam public web API
        /// </summary>
        private void FetchList()
        {
            Cursor = Cursors.WaitCursor;

            FetchPrcDlg  dlg = new FetchPrcDlg();
            DialogResult res = dlg.ShowDialog();

            if (dlg.Error != null)
            {
                MessageBox.Show(string.Format(GlobalStrings.DBEditDlg_ErrorWhileUpdatingGameList, dlg.Error.Message), GlobalStrings.DBEditDlg_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
                AddStatusMsg(GlobalStrings.DBEditDlg_ErrorUpdatingGameList);
            }
            else
            {
                if ((res == DialogResult.Cancel) || (res == DialogResult.Abort))
                {
                    AddStatusMsg(GlobalStrings.DBEditDlg_CanceledListUpdate);
                }
                else
                {
                    AddStatusMsg(string.Format(GlobalStrings.DBEditDlg_UpdatedGameList, dlg.Added));
                    UnsavedChanges = true;
                }
            }

            RebuildDisplayList();
            Cursor = Cursors.Default;
        }
Ejemplo n.º 2
0
        private void FetchList()
        {
            this.Cursor = Cursors.WaitCursor;

            FetchPrcDlg dlg = new FetchPrcDlg();
            DialogResult res = dlg.ShowDialog();

            if( dlg.Error != null ) {
                MessageBox.Show(string.Format(GlobalStrings.DBEditDlg_ErrorWhileUpdatingGameList, dlg.Error.Message), GlobalStrings.DBEditDlg_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
                AddStatusMsg(GlobalStrings.DBEditDlg_ErrorUpdatingGameList);
            } else {
                if( res == DialogResult.Cancel || res == DialogResult.Abort ) {
                    AddStatusMsg(GlobalStrings.DBEditDlg_CanceledListUpdate);
                } else {
                    AddStatusMsg(string.Format(GlobalStrings.DBEditDlg_UpdatedGameList, dlg.Added));
                    UnsavedChanges = true;
                }
            }

            RefreshGameList();
            UpdateForSelectChange();
            this.Cursor = Cursors.Default;
        }