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; }
private void button2_Click(object sender, EventArgs e) { WsToken.EndInit(); MessageBox.Show("EndInit OK!"); buttonInit.Enabled = buttonInitAndLoad.Enabled = true; }
private void button1_Click(object sender, EventArgs e) { MessageBox.Show(WsToken.IsInit() ? "Initialized!" : "Not initialized!"); }
private void buttonSaveState_Click(object sender, EventArgs e) { MessageBox.Show(WsToken.SaveCurrentState() ? "Saved successfully" : "Error on save."); }
private void buttonGetTokenWTS_Click(object sender, EventArgs e) { textBoxToken.Text = WsToken.GetTokenWithTimeSpan(new TimeSpan((int)numericUpDownHour.Value, (int)numericUpDownMinute.Value, (int)numericUpDownSecond.Value)); }
private void buttonGetToken_Click(object sender, EventArgs e) { textBoxToken.Text = WsToken.GetToken(); }
private void buttonInitAndLoad_Click(object sender, EventArgs e) { buttonInit.PerformClick(); //WsToken.LoadState(); MessageBox.Show(WsToken.LoadState() ? "Loaded successfully" : "Load failed."); }