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();
        }
Esempio n. 2
0
        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;
        }
        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();
        }
Esempio n. 4
0
 public SteamWpfUi(ref SteamSettings appSettings, string uid, string apiKey, string m8uid) : base(ref appSettings, uid, apiKey)
 {
     this.M8UID = m8uid;
 }