/// <summary> /// Quietly close conversations. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void TabConsole_OnTabRemoved(object sender, TabEventArgs e) { System.Windows.Forms.Control sTabControl = e.Tab.Control; if (sTabControl is InventoryConsole) { RemoveConversation(inventory.Title); } else if (sTabControl is ChatConsole) { RemoveConversation(chat.Title); } else if (sTabControl is FriendsConsole) { RemoveConversation(friends.Title); } else if (sTabControl is VoiceConsole) { RemoveConversation(voice.Title); } else if (sTabControl is ConferenceIMTabWindow) { RemoveConversation(((ConferenceIMTabWindow)e.Tab.Control).SessionName); } else if (sTabControl is GroupIMTabWindow || sTabControl is IMTabWindow) { RemoveConversation(sTabControl.Name); // TODO wrong name } }
void RaiseDelTabSettingEvent(TabItem item) { TabEventArgs newEventArgs = new TabEventArgs(DelTabSettingEvent); newEventArgs.item = item; RaiseEvent(newEventArgs); }
public virtual void OnTabMarkedAsPublished(TabEventArgs args) { if (TabMarkedAsPublished != null) { TabMarkedAsPublished(this, args); } }
public virtual void OnTabUpdated(TabEventArgs args) { if (TabUpdated != null) { TabUpdated(this, args); } }
public virtual void OnTabRestored(TabEventArgs args) { if (this.TabRestored != null) { this.TabRestored(this, args); } }
void TC_OnTabAdded(object sender, TabEventArgs e) { if (e.Tab.Control is GroupIMTabWindow) { RefreshGroups(); } }
private TabEventArgs CreateTabArgs(float newPos) { TabEventArgs tae = new TabEventArgs(); tae.NewPosition = (int)(newPos / dotsPermm); tae.OldPosition = pos; return(tae); }
protected override void OnTabSelected(TabEventArgs args) { if (SelectedIndexChanged != null) { SelectedIndexChanged(this, new EventArgs()); } base.OnTabSelected(args); }
void TC_OnTabAdded(object sender, TabEventArgs e) { if (e.Tab.Control is GroupIMTabWindow || e.Tab.Control is ConferenceIMTabWindow || e.Tab.Control is IMTabWindow || e.Tab.Control is ChatConsole) { RefreshGroups(); } }
private void TabBar_TabSelected(object sender, TabEventArgs e) { if (SelectedCommand != null && SelectedCommand.CanExecute(e)) { SelectedCommand.Execute(e); } if (!e.Cancel) { this.SelectedIndex = e.TabIndex; } }
/// <summary> /// Current tab is closing - remove presenter from our presenters list /// </summary> /// <param name="sender">Sender of event</param> /// <param name="e">Event arguments</param> private void OnTabClosing(object sender, TabEventArgs e) { if (e.LeftTabControl) { this.presenters1[e.Index - 1].SaveIfChanged(); this.presenters1.RemoveAt(e.Index - 1); } else { this.presenters2[e.Index - 1].SaveIfChanged(); this.presenters2.RemoveAt(e.Index - 1); } }
private void ViewerClosed(object sender, TabEventArgs e) { FileDetails file = null; viewers.Controls.Remove(e.TabPage); foreach (KeyValuePair <FileDetails, BpTabPage> kvp in tabs) { if (kvp.Value == e.TabPage) { file = kvp.Key; } } if (file != null) { tabs.Remove(file); } }
private void EngineOnTabCreated(object sender, TabEventArgs e) { if (_isPreviewTab.IsPreviewTab(e.Tab.TabItem)) { return; } var container = e.Tabs.TabPanel2.Children; if (ReferenceEquals(container[0], e.Tab.TabItem)) { return; } container.Remove(e.Tab.TabItem); container.Insert(0, e.Tab.TabItem); }
void TC_OnTabRemoved(object sender, TabEventArgs e) { RefreshGroups(); }
private void TabConsole_OnTabAdded(object sender, TabEventArgs e) { UpdateGroupTabNotifications(true); }
protected abstract void OnTabDisposing(object sender, TabEventArgs arg);
public void TabRestored(object sender, TabEventArgs args) { AdminMenuController.Instance.CreateLinkMenu(args.Tab); }
public void TabRemoved(object sender, TabEventArgs args) { }
protected abstract void OnSelectedTabRemoved(object sender, TabEventArgs arg);
private void TabInfo_SelectedTabChanged(object sender, TabEventArgs e) { ModifyButtonCommand(); }
private void radTabStrip1_TabSelected(object sender, TabEventArgs args) { if (args.TabItem == myTabItemCallHistory) { LoadCallsHistory(); } //TO DO : VOICE MAIL CONTROL }
private void myMainTabControl_TabSelected(object sender, TabEventArgs args) { if (args.TabItem == myMainAccountTabPage) { if (DialogResult.Yes == MessageBox.Show( Properties.Localization.txtInfoWebsiteDesc, Properties.Localization.txtInfoWebsite, MessageBoxButtons.YesNo, MessageBoxIcon.Question )) { try { ProcessStartInfo startProcess = new ProcessStartInfo(); startProcess.FileName = ConfigWebLinks.MyAccountLink; startProcess.UseShellExecute = true; Process.Start(startProcess); } catch (Exception) { } } } else if (args.TabItem == myMainContactsTabPage) { myContactsShowAllButton.PerformClick(); if (myContactsListBox.Items.Count > 0) { myContactsListBox.SelectedIndex = 0; myContactsListBox.Select(); myContactsListBox.Focus(); myContactsListBox.Items[0].Focus(); } } else if (args.TabItem == myMainDialPadTabPage) { myOneSecondTickTimer.Enabled = true; myDestinationTextBox.Focus(); } if (args.TabItem == myMainOnlineTabPage) { myMainOnlineTabPage.Image = Properties.Resources.buttonOnlineOn; } else { myMainOnlineTabPage.Image = Properties.Resources.buttonOnline; } if (args.TabItem == myMainContactsTabPage) { myContactsShowAll(); myMainContactsTabPage.Image = Properties.Resources.buttonContactsOn; } else { myMainContactsTabPage.Image = Properties.Resources.buttonContacts; } if (args.TabItem == myMainDialPadTabPage) { myOneSecondTickTimer.Enabled = true; myDestinationTextBox.Focus(); myMainDialPadTabPage.Image = Properties.Resources.buttonPhoneOn; } else { myMainDialPadTabPage.Image = Properties.Resources.buttonPhone; } }
private void uiTab1_TabClosed(object sender, TabEventArgs e) { uiTab1.TabPages.Remove(e.Page); }
private void tabGeneralList_SelectedTabChanged(object sender, TabEventArgs e) { PerformAction(action.Normal); }
protected abstract void OnTabSelected(object sender, TabEventArgs args);
private void CloseClicked(object o, TabEventArgs e) { this.CloseView(((DocumentWindow)e.Tab.Content).ViewContent); }
private void TabControl_SelectedTabChanged(object sender, TabEventArgs e) { UpdateWizardView(); }
public void TabDeleted(object sender, TabEventArgs args) { AdminMenuController.Instance.DeleteLinkMenu(args.Tab); }
private void myMainTabControl_TabSelected(object sender, TabEventArgs args) { myOneSecondTickTimer.Enabled = false; if (args.TabItem == myMainClientTabPage) { if (DialogResult.Yes == MessageBox.Show("Would you like to open My Account area in your browser?", "Client Website", MessageBoxButtons.YesNo, MessageBoxIcon.Question)) { try { ProcessStartInfo startProcess = new ProcessStartInfo(); startProcess.FileName = ConfigWebLinks.MyAccountLink; startProcess.UseShellExecute = true; Process.Start(startProcess); } catch (Exception) { // throw; } } } else if (args.TabItem == myMainContactsTabPage) { myContactsShowAllButton.PerformClick(); } else if (args.TabItem == myMainDialPadTabPage) { myOneSecondTickTimer.Enabled = true; myDestinationTextBox.Focus(); } }
public void TabMarkedAsPublished(object sender, TabEventArgs args) { }
/// <summary> /// Switch active conversation as tab focus moves. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void OnTabChange(object sender, TabEventArgs e) { ActivateConversationFromTab(e.Tab); }
private void tabTestInfo_SelectedTabChanged(object sender, TabEventArgs e) { try { ResetTabKey resetTabKey; switch (tabTestInfo.SelectedTab.Name) { case "tabReg": //PerformTabKeyAdjustment(grdPatients,grdTestTypeRegList); //new ResetTabKey().Implement(new Control[] {grdPatients,grdTestTypeRegList}); resetTabKey = new ResetTabKey(); resetTabKey.ArrControl = new Control[] {grdPatients, grdTestTypeRegList}; resetTabKey.Implement(); break; case "tabResult": //new ResetTabKey().Implement(new Control[] {grdPatients,grdTestInfo,grdResultDetail}); //PerformTabKeyAdjustment(grdPatients, grdTestInfo); //PerformTabKeyAdjustment(grdTestInfo,grdResultDetail); resetTabKey = new ResetTabKey(); resetTabKey.ArrControl = new Control[] {grdPatients, grdTestInfo, grdResultDetail}; resetTabKey.Implement(); break; } ModifyCommand(); grdPatients_SelectionChanged(new object(), new EventArgs()); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
/// <summary> /// Create conversations as tabs are created. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void TabConsole_OnTabAdded(object sender, TabEventArgs e) { CreateConversationFromTab(e.Tab, true); }
protected abstract void OnNewTabAdded(object sender, TabEventArgs arg);
public abstract void OnTabDisposing(object sender, TabEventArgs arg);
private void tabTestInfo_SelectedTabChanged(object sender, TabEventArgs e) { }
private void myMainTabControl_TabHovered(object sender, TabEventArgs args) { if (args.TabItem == myMainOnlineTabPage && !myMainOnlineTabPage.IsSelected) { myMainOnlineTabPage.Image = args.TabItem.IsMouseOver ? Properties.Resources.buttonOnlineOver : Properties.Resources.buttonOnline; } if (args.TabItem == myMainContactsTabPage && !myMainContactsTabPage.IsSelected) { myMainContactsTabPage.Image = args.TabItem.IsMouseOver ? Properties.Resources.buttonContactsOver : Properties.Resources.buttonContacts; } if (args.TabItem == myMainDialPadTabPage && !myMainDialPadTabPage.IsSelected) { myMainDialPadTabPage.Image = args.TabItem.IsMouseOver ? Properties.Resources.buttonPhoneOver : Properties.Resources.buttonPhone; } }
internal void CloseClicked(object o, TabEventArgs e) { ((SdiWorkspaceWindow)e.Tab.Content).CloseWindow (false, true); }
private void radTabStrip1_TabSelected(object sender, TabEventArgs args) { if (args.TabItem == tabItem2) { LoadCallsHistory(); } }