コード例 #1
0
        public GiveParam()
        {
            InitializeComponent();

            /*
             * appSettings.ApiKey = "API";
             * appSettings.StemId = "SID";
             * appSettings.CurrentMateId.MateId = "MID";
             * appSettings.CurrentMateId.MateFriendlyName = "FriendlyMateName";
             * Serialization.Serialize(appSettings);
             */

            appSettings = Serialization.Deserialize() as SteamSettings;
            if (appSettings != null)
            {
                fillParamsGaps();
            }
            else
            {
                appSettings = new SteamSettings();
            }

            EditableApiKey = true;      //API key field should be editable only at app start

            matesList.ItemsSource = appSettings.GetLastMates();
        }
コード例 #2
0
ファイル: Steam.cs プロジェクト: MarcinK-ski/ChooseSteamGame
        public Steam(ref SteamSettings appSettings, string uid, string apiKey)
        {
            this.UserID = !string.IsNullOrEmpty(uid) ? uid : DEFAULT_UID;

            this._apiKey = !string.IsNullOrEmpty(apiKey) ? apiKey : DEFAULT_API_KEY;

            this._appSettings = appSettings;
        }
コード例 #3
0
        public MainWindow()
        {
            param.ShowDialog();     //First of all we have to give parameters or accept oldone
            appSettings = param.appSettings;

            InitializeComponent();

            steam = new SteamWpfUi(ref appSettings, appSettings.StemId, appSettings.ApiKey, appSettings.CurrentMateId.MateId);
            loadData();
        }
コード例 #4
0
 public SteamWpfUi(ref SteamSettings appSettings, string uid, string apiKey, string m8uid) : base(ref appSettings, uid, apiKey)
 {
     this.M8UID = m8uid;
 }