Esempio n. 1
0
        private void buttonInit_Click(object sender, EventArgs e)
        {
            TokenType  _ttype  = (AbtWsToken.TokenType)comboBoxTokenType.SelectedItem;
            ExpireType _extype = (AbtWsToken.ExpireType)comboBoxExpireType.SelectedItem;

            WsToken.Init(_ttype, _extype);
            buttonInit.Enabled = buttonInitAndLoad.Enabled = false;
        }
Esempio n. 2
0
 private void button2_Click(object sender, EventArgs e)
 {
     WsToken.EndInit();
     MessageBox.Show("EndInit OK!");
     buttonInit.Enabled = buttonInitAndLoad.Enabled = true;
 }
Esempio n. 3
0
 private void button1_Click(object sender, EventArgs e)
 {
     MessageBox.Show(WsToken.IsInit() ? "Initialized!" : "Not initialized!");
 }
Esempio n. 4
0
 private void buttonSaveState_Click(object sender, EventArgs e)
 {
     MessageBox.Show(WsToken.SaveCurrentState() ? "Saved successfully" : "Error on save.");
 }
Esempio n. 5
0
 private void buttonGetTokenWTS_Click(object sender, EventArgs e)
 {
     textBoxToken.Text = WsToken.GetTokenWithTimeSpan(new TimeSpan((int)numericUpDownHour.Value, (int)numericUpDownMinute.Value, (int)numericUpDownSecond.Value));
 }
Esempio n. 6
0
 private void buttonGetToken_Click(object sender, EventArgs e)
 {
     textBoxToken.Text = WsToken.GetToken();
 }
Esempio n. 7
0
 private void buttonInitAndLoad_Click(object sender, EventArgs e)
 {
     buttonInit.PerformClick();
     //WsToken.LoadState();
     MessageBox.Show(WsToken.LoadState() ? "Loaded successfully" : "Load failed.");
 }