private void btnLogin_Click(object sender, EventArgs e) { SaveSettings(); grdQueue.AlternatingRowsDefaultCellStyle = new DataGridViewCellStyle(); grdQueue.DefaultCellStyle = new DataGridViewCellStyle(); needMove = true; isStatusChange = false; comboBox1.Items.Clear(); ExecuteSecure(() => btnError.Visible = false); stsLabel.Text = "Trying to Connect"; connection = new ICELibWrapper(txtUName.Text, txtPWD.Text, txtServer.Text, checkBox1.Checked, checkBox2.Checked, txtStation.Text, ConnectionCallback); connection.ConnectionExceptionss.Clear(); connection.StatusChangedCallback = ConnectionCallback; connection.WatchingQueueCompleted = EnableQueue; connection.DirectoryConfigurationCallbackAction = DirectoryConfigurationCallback; connection.UpdateQueueList = UpdateQueueListCallback; }
public AddDirectory(ref ICELibWrapper wrapper, ref TabControl Tabs) { InitializeComponent(); connection = wrapper; TabController = Tabs; }