Exemplo n.º 1
0
 /// <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
     }
 }
Exemplo n.º 2
0
        void RaiseDelTabSettingEvent(TabItem item)
        {
            TabEventArgs newEventArgs = new TabEventArgs(DelTabSettingEvent);

            newEventArgs.item = item;
            RaiseEvent(newEventArgs);
        }
Exemplo n.º 3
0
 public virtual void OnTabMarkedAsPublished(TabEventArgs args)
 {
     if (TabMarkedAsPublished != null)
     {
         TabMarkedAsPublished(this, args);
     }
 }
Exemplo n.º 4
0
 public virtual void OnTabUpdated(TabEventArgs args)
 {
     if (TabUpdated != null)
     {
         TabUpdated(this, args);
     }
 }
Exemplo n.º 5
0
 public virtual void OnTabRestored(TabEventArgs args)
 {
     if (this.TabRestored != null)
     {
         this.TabRestored(this, args);
     }
 }
Exemplo n.º 6
0
 void TC_OnTabAdded(object sender, TabEventArgs e)
 {
     if (e.Tab.Control is GroupIMTabWindow)
     {
         RefreshGroups();
     }
 }
Exemplo n.º 7
0
        private TabEventArgs CreateTabArgs(float newPos)
        {
            TabEventArgs tae = new TabEventArgs();

            tae.NewPosition = (int)(newPos / dotsPermm);
            tae.OldPosition = pos;
            return(tae);
        }
Exemplo n.º 8
0
        protected override void OnTabSelected(TabEventArgs args)
        {
            if (SelectedIndexChanged != null)
            {
                SelectedIndexChanged(this, new EventArgs());
            }

            base.OnTabSelected(args);
        }
Exemplo n.º 9
0
 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();
     }
 }
Exemplo n.º 10
0
        private void TabBar_TabSelected(object sender, TabEventArgs e)
        {
            if (SelectedCommand != null && SelectedCommand.CanExecute(e))
            {
                SelectedCommand.Execute(e);
            }

            if (!e.Cancel)
            {
                this.SelectedIndex = e.TabIndex;
            }
        }
Exemplo n.º 11
0
 /// <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);
     }
 }
Exemplo n.º 12
0
        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);
            }
        }
Exemplo n.º 13
0
        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);
        }
Exemplo n.º 14
0
 void TC_OnTabRemoved(object sender, TabEventArgs e)
 {
     RefreshGroups();
 }
 private void TabConsole_OnTabAdded(object sender, TabEventArgs e)
 {
     UpdateGroupTabNotifications(true);
 }
Exemplo n.º 16
0
 protected abstract void OnTabDisposing(object sender, TabEventArgs arg);
Exemplo n.º 17
0
 public void TabRestored(object sender, TabEventArgs args)
 {
     AdminMenuController.Instance.CreateLinkMenu(args.Tab);
 }
Exemplo n.º 18
0
 public void TabRemoved(object sender, TabEventArgs args)
 {
 }
Exemplo n.º 19
0
 protected abstract void OnSelectedTabRemoved(object sender, TabEventArgs arg);
 private void TabInfo_SelectedTabChanged(object sender, TabEventArgs e)
 {
     ModifyButtonCommand();
 }
Exemplo n.º 21
0
        private void radTabStrip1_TabSelected(object sender, TabEventArgs args)
        {
            if (args.TabItem == myTabItemCallHistory)
            {
                LoadCallsHistory();
            }


            //TO DO :  VOICE MAIL CONTROL


        }
Exemplo n.º 22
0
        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);
 }
Exemplo n.º 24
0
 void TC_OnTabRemoved(object sender, TabEventArgs e)
 {
     RefreshGroups();
 }
Exemplo n.º 25
0
 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();
     }
 }
Exemplo n.º 26
0
 private void tabGeneralList_SelectedTabChanged(object sender, TabEventArgs e)
 {
     PerformAction(action.Normal);
 }
Exemplo n.º 27
0
 protected abstract void OnTabSelected(object sender, TabEventArgs args);
Exemplo n.º 28
0
 private void CloseClicked(object o, TabEventArgs e)
 {
     this.CloseView(((DocumentWindow)e.Tab.Content).ViewContent);
 }
Exemplo n.º 29
0
 /// <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);
     }
 }
Exemplo n.º 30
0
 private void TabControl_SelectedTabChanged(object sender, TabEventArgs e)
 {
     UpdateWizardView();
 }
Exemplo n.º 31
0
 public void TabDeleted(object sender, TabEventArgs args)
 {
     AdminMenuController.Instance.DeleteLinkMenu(args.Tab);
 }
Exemplo n.º 32
0
        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();
            }
        }
Exemplo n.º 33
0
 public void TabMarkedAsPublished(object sender, TabEventArgs args)
 {
 }
Exemplo n.º 34
0
 /// <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);
 }
Exemplo n.º 35
0
 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);
     }
 }
Exemplo n.º 36
0
 /// <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);
 }
Exemplo n.º 37
0
 private void uiTab1_TabClosed(object sender, TabEventArgs e)
 {
     uiTab1.TabPages.Remove(e.Page);
 }
Exemplo n.º 38
0
 protected abstract void OnNewTabAdded(object sender, TabEventArgs arg);
Exemplo n.º 39
0
 public abstract void OnTabDisposing(object sender, TabEventArgs arg);
Exemplo n.º 40
0
 private void tabTestInfo_SelectedTabChanged(object sender, TabEventArgs e)
 {
 }
Exemplo n.º 41
0
 private void tabGeneralList_SelectedTabChanged(object sender, TabEventArgs e)
 {
     PerformAction(action.Normal);
 }
Exemplo n.º 42
0
        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;
            }
        }
Exemplo n.º 43
0
 internal void CloseClicked(object o, TabEventArgs e)
 {
     ((SdiWorkspaceWindow)e.Tab.Content).CloseWindow (false, true);
 }
Exemplo n.º 44
0
        private void radTabStrip1_TabSelected(object sender, TabEventArgs args)
        {
            if (args.TabItem == tabItem2)
            {
                LoadCallsHistory();

            }
        }