private void button3_Click(object sender, EventArgs e) { if (tabConsole.TabExists(fullName)) { tabConsole.SelectTab(fullName); return; } tabConsole.AddIMTab(agentID, client.Self.AgentID ^ agentID, fullName); tabConsole.SelectTab(fullName); tabConsole.Focus(); }
private void btnNewIM_Click(object sender, EventArgs e) { // V 0.9.1.6 change if (console.SelectedName == client.Self.Name) { return; } // end if (tabConsole.TabExists(console.SelectedName)) { tabConsole.SelectTab(console.SelectedName); return; } tabConsole.AddIMTab(console.SelectedAgentUUID, client.Self.AgentID ^ console.SelectedAgentUUID, console.SelectedName); tabConsole.SelectTab(console.SelectedName); }
//private void Groups_OnGroupLeft(object sender, GroupOperationEventArgs e) //{ // Client.Groups.RequestCurrentGroups(); //} private void cmdCreate_Click(object sender, EventArgs e) { if (lstGroups.SelectedIndex >= 0 && lstGroups.Items[lstGroups.SelectedIndex].ToString() != "None") { if (lstGroups.Items[lstGroups.SelectedIndex].ToString() != "None") { Group group = (Group)lstGroups.Items[lstGroups.SelectedIndex]; if (tabConsole.TabExists(group.Name)) { tabConsole.SelectTab(group.Name); return; } tabConsole.AddIMTabGroup(group.ID, group.ID, group.Name, group); tabConsole.SelectTab(group.Name); } } }
private void lbxIMs_DoubleClick(object sender, EventArgs e) { if (lbxIMs.SelectedItem == null) { return; } string fullName = lbxIMs.SelectedItem.ToString(); int selinx = lbxIMs.SelectedIndex; string[] splits = fullName.Split('('); fullName = splits[0].ToString().Trim(); lbxIMs.Items.RemoveAt(selinx); SetSets(); if (tabsconsole.TabExists(fullName)) { tabsconsole.SelectTab(fullName); return; } }