예제 #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;
        }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     WsToken.EndInit();
     MessageBox.Show("EndInit OK!");
     buttonInit.Enabled = buttonInitAndLoad.Enabled = true;
 }
예제 #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     MessageBox.Show(WsToken.IsInit() ? "Initialized!" : "Not initialized!");
 }
예제 #4
0
 private void buttonSaveState_Click(object sender, EventArgs e)
 {
     MessageBox.Show(WsToken.SaveCurrentState() ? "Saved successfully" : "Error on save.");
 }
예제 #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));
 }
예제 #6
0
 private void buttonGetToken_Click(object sender, EventArgs e)
 {
     textBoxToken.Text = WsToken.GetToken();
 }
예제 #7
0
 private void buttonInitAndLoad_Click(object sender, EventArgs e)
 {
     buttonInit.PerformClick();
     //WsToken.LoadState();
     MessageBox.Show(WsToken.LoadState() ? "Loaded successfully" : "Load failed.");
 }