public void svcSetSpecialMsg(clsPageInfo objPageInfo, string IPAddress)
 {
     if (EntsvcNetP2PPageSetSpecialMsg != null)
     {
         EntsvcNetP2PPageSetSpecialMsg(objPageInfo, IPAddress);
     }
 }
 public void svcSetSpecialMsg(string from, List<string> to, string msg, clsModuleInfo objModInfo, string IPAddress, clsPageInfo objPageInfo)
 {
     if (EntsvcNetP2PSetSpecialMsgBuddiesClick != null)
     {
         EntsvcNetP2PSetSpecialMsgBuddiesClick(from, to, msg, objModInfo, IPAddress, objPageInfo);
     }
 }
Exemplo n.º 3
0
        public void FncShowPopup(clsPageInfo objPageInfo)
        {

            try
            {

                List<string> buddies = new List<string>();
                List<string> modules = new List<string>();
                foreach (clsTabInfo objtab in objPageInfo.objaTabs)
                {
                    foreach (clsPodInfo objpod in objtab.objaPods)
                    {


                        buddies.InsertRange(buddies.Count, objpod.straPodBuddies);
                        modules.Add(objpod.strPodTitle);

                    }
                }
                objPopup.FnvLoadpopup(objPageInfo.strFrom, modules, buddies);


            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "FncShowPopup()", "pgHome.xaml.cs");

            }
        }
Exemplo n.º 4
0
        //to load whole grid design from another person/host from new page object from object of clsPageInfo class (pages are not saved) when same page is not found.
        public void LoadNewMeetingGrid(clsPageInfo objPageInfo, int intTabIndex)
        {
            try
            {
                clsTabInfo objTabInfo = objPageInfo.objaTabs[intTabIndex];

                DocumentRoot.ColumnDefinitions[0].Width = new GridLength(objTabInfo.dblC1Width, GridUnitType.Star);
                DocumentRoot.ColumnDefinitions[1].Width = new GridLength(objTabInfo.dblC2Width, GridUnitType.Star);
                DocumentRoot.ColumnDefinitions[2].Width = new GridLength(objTabInfo.dblC3Width, GridUnitType.Star);

                DocumentRoot.RowDefinitions[0].Height = new GridLength(objTabInfo.dblC4Height, GridUnitType.Pixel);
                DocumentRoot.RowDefinitions[2].Height = new GridLength(objTabInfo.dblC5Height, GridUnitType.Pixel);

                foreach (clsPodInfo item in objTabInfo.objaPods)
                {
                    //AddControl(item.ModuleId, item.PodTitle, item.ModuleId item.ColumnId);
                    VMukti.Business.VMuktiGrid.ClsModule objModule = VMukti.Business.VMuktiGrid.ClsModule.GetPodModule(item.intModuleId);

                    ClsPermissionCollection objCPC = ClsPermissionCollection.Get_PermissionRefModule(item.intModuleId, VMuktiAPI.VMuktiInfo.CurrentPeer.RoleID);
                    int[] arrPermissionValue = new int[objCPC.Count];
                    for (int percount = 0; percount < objCPC.Count; percount++)
                    {
                        arrPermissionValue[percount] = objCPC[percount].PermissionValue;
                    }
                    ctlPOD objPod = null;
                    if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.SuperNode || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithNetP2P)
                    {
                        objPod = new ctlPOD(item.intModuleId, item.strPodTitle, objModule.IsCollaborative, item.strUri[0], arrPermissionValue, false, "fromOtherPeer", null, true, objPageInfo);
                    }
                    else if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                    {
                        objPod = new ctlPOD(item.intModuleId, item.strPodTitle, objModule.IsCollaborative, item.strUri[1], arrPermissionValue, false, "fromOtherPeer", null, true, objPageInfo);
                    }

                    if (item.intColumnNumber == 1)
                    {
                        //LeftPanelContainer.Items.Add(objPod);
                        //objPod.ColNo = 1;
                        objPod.ObjectID = item.intPodID;
                        objPod.Tag = item.intPodID;
                        objPod.ColNo = 1;
                        LeftPanelContainer.Items.Add(objPod);
                    }
                    else if (item.intColumnNumber == 2)
                    { 
                        //CentralPanelContainer.Items.Add(objPod);
                        //objPod.ColNo = 2;
                        objPod.ObjectID = item.intPodID;
                        objPod.Tag = item.intPodID;
                        objPod.ColNo = 2;
                        CentralPanelContainer.Items.Add(objPod);
                    }
                    else if (item.intColumnNumber == 3)
                    {
                        //RightPanelContainer.Items.Add(objPod);
                        //objPod.ColNo = 3;
                        objPod.ObjectID = item.intPodID;
                        objPod.Tag = item.intPodID;
                        objPod.ColNo = 3;
                        objPod.IsTwoPanel = true;
                        RightPanelContainer.Items.Add(objPod);
                    }
                    else if (item.intColumnNumber == 4)
                    {
                        //TopPanelContainer.Items.Add(objPod);
                        //objPod.ColNo = 4;
                        objPod.ObjectID = item.intPodID;
                        objPod.Tag = item.intPodID;
                        objPod.ColNo = 4;
                        TopPanelContainer.Items.Add(objPod);
                    }
                    else if (item.intColumnNumber == 5)
                    {
                        //BottomPanelContainer.Items.Add(objPod);
                        //objPod.ColNo = 5;
                        objPod.ObjectID = item.intPodID;
                        objPod.Tag = item.intPodID;
                        objPod.ColNo = 5;
                        BottomPanelContainer.Items.Add(objPod);
                    } 
                    objPod.OwnerPodIndex = item.intOwnerPodIndex;

                    foreach (string strBuddyName in item.straPodBuddies)
                    {
                        //objPod.AddBuddy(strBuddyName);
                        //objPod.SetMaxCounter(1, strBuddyName);
                        if (strBuddyName != VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                        {
                            objPod.AddBuddy(strBuddyName);
                            objPod.SetMaxCounter(1, strBuddyName);
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "LoadNewMeetinggrid()", "Controls\\VmuktiGrid\\Grid\\CtlGrid.xaml.cs");
            }
        }
Exemplo n.º 5
0
 void pgHome_EntsvcSetSpecialMsgBuddiesClick(string from, List<string> to, string msg, clsModuleInfo objModInfo, string IPAddress, clsPageInfo objPageInfo)
 {
     try
     {
         if (to.Contains(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName))
         {
             objModInfo.lstUsersDropped.Remove(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName);
             objModInfo.lstUsersDropped.Add(from);
             this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelSetSpecialMsgBuddiesClick, objModInfo, objPageInfo);
         }
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "pgHome_EntsvcSetSpecialMsgBuddiesClick()", "pgHome.xaml.cs");
     }
 }
Exemplo n.º 6
0
        void SendConfInfo(clsPageInfo pageinfo)
        {
            try
            {
                
                objAmit.Visibility = Visibility.Collapsed;
                objBuddies.btnClose_Click(null, null);
                //objBuddies.Visibility = Visibility.Collapsed;
                blOpenMExp = false;
                btnMExp_Click(null, null);
                //objVMuktiGrid.pageControl.Items.Clear();


                objVMuktiGrid.LoadMeetingPage(pageinfo);
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "SendConfInfo()", "pgHome.xaml.cs");
            }
        }
Exemplo n.º 7
0
        private void SendPageInfo(VMuktiGrid.ctlPage.TabItem objSelectedPage, string buddyname)
        {

            try
            {
                clsPageInfo objPageInfo = new clsPageInfo();
                //if (this.AddBuddy(buddyname, this.SelectedIndex))
                if (objSelectedPage.AddBuddy(buddyname))
                {
                    VMuktiGrid.ctlTab.TabItem objSelectedTab = null;


                    objPageInfo.intPageID = objSelectedPage.ObjectID;
                    objPageInfo.strPageTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)objSelectedPage.Header).Title;

                    objPageInfo.intOwnerID = VMuktiAPI.VMuktiInfo.CurrentPeer.ID;
                    objPageInfo.intOwnerPageIndex = objSelectedPage.OwnerPageIndex;
                    objPageInfo.ConfID = objSelectedPage.ConfID;

                    objPageInfo.strDropType = "OnPage";
                    List<string> lstBuddyList = new List<string>();
                    StackPanel stPageBuddyList = ((ctlMenu)objSelectedPage.Template.FindName("objMenu", objSelectedPage)).objEMIBuddyList.objBuddyList.stBuddyPanel;
                    for (int i = 0; i < stPageBuddyList.Children.Count; i++)
                    {
                        lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPageBuddyList.Children[i]).Title);
                    }
                    objPageInfo.straPageBuddies = lstBuddyList.ToArray();

                    objSelectedPage.NoOfPODs = 0;

                    List<clsTabInfo> lstTabInfos = new List<clsTabInfo>();
                    for (int tCnt = 0; tCnt < ((VMuktiGrid.ctlTab.TabControl)objSelectedPage.Content).Items.Count; tCnt++)
                    {
                        objSelectedTab = ((VMuktiGrid.ctlTab.TabItem)((VMuktiGrid.ctlTab.TabControl)objSelectedPage.Content).Items[tCnt]);
                        objSelectedTab.NoOfPODs = 0;

                        lstTabInfos.Add(new clsTabInfo());

                        lstTabInfos[lstTabInfos.Count - 1].intTabID = objSelectedTab.ObjectID;
                        lstTabInfos[lstTabInfos.Count - 1].strTabTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)objSelectedTab.Header).Title;

                        StackPanel stTabBuddyList = ((ctlMenu)objSelectedTab.Template.FindName("objMenu", objSelectedTab)).objEMIBuddyList.objBuddyList.stBuddyPanel;
                        lstBuddyList.Clear();
                        for (int i = 0; i < stTabBuddyList.Children.Count; i++)
                        {
                            lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stTabBuddyList.Children[i]).Title);
                        }
                        lstTabInfos[lstTabInfos.Count - 1].straTabBuddies = lstBuddyList.ToArray();

                        //lstTabInfos[lstTabInfos.Count - 1].intOwnerTabIndex = tCnt;
                        lstTabInfos[lstTabInfos.Count - 1].intOwnerTabIndex = objSelectedTab.OwnerTabIndex;
                        lstTabInfos[lstTabInfos.Count - 1].dblC1Width = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).LeftPanelContainer.ActualWidth;
                        lstTabInfos[lstTabInfos.Count - 1].dblC2Width = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).CentralPanelContainer.ActualWidth;
                        lstTabInfos[lstTabInfos.Count - 1].dblC3Width = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).RightPanelContainer.ActualWidth;

                        lstTabInfos[lstTabInfos.Count - 1].dblC4Height = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).TopPanelContainer.ActualHeight;
                        lstTabInfos[lstTabInfos.Count - 1].dblC5Height = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).BottomPanelContainer.ActualHeight;

                        List<clsPodInfo> lstPodInfo = new List<clsPodInfo>();
                        VMuktiGrid.CustomGrid.ctlGrid objSelectedGrid = (VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content;

                        for (int pCnt = 0; pCnt < objSelectedGrid.LeftPanelContainer.Items.Count; pCnt++)
                        {
                            if (objSelectedGrid.LeftPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                            {
                                //lstPodInfo.Add(new clsPodInfo());
                                //fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]));

                                //lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 1;
                                //lstPodInfo[lstPodInfo.Count - 1].intOwnerPodIndex = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]).OwnerPodIndex;

                                clsPodInfo objPodInfo = new clsPodInfo();
                                objPodInfo.intPodID = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]).ObjectID;
                                objPodInfo.intModuleId = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]).ModuleID;
                                objPodInfo.strPodTitle = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]).Title;
                                objPodInfo.strUri = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]).WCFUri;
                                objPodInfo.intColumnNumber = 1;


                                lstBuddyList.Clear();
                                StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                {
                                    if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                    {
                                        lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                    }
                                }
                                //lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                                objPodInfo.straPodBuddies = lstBuddyList.ToArray();

                                lstPodInfo.Add(objPodInfo);

                                ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                objSelectedTab.NoOfPODs++;
                            }
                        }

                        for (int pCnt = 0; pCnt < objSelectedGrid.CentralPanelContainer.Items.Count; pCnt++)
                        {
                            if (objSelectedGrid.CentralPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                            {
                               clsPodInfo objPodInfo=new clsPodInfo();
                               objPodInfo.intPodID = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]).ObjectID;
                               objPodInfo.intModuleId = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]).ModuleID;
                               objPodInfo.strPodTitle = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]).Title;
                               objPodInfo.strUri = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]).WCFUri;
                               objPodInfo.intColumnNumber = 2;
                                //fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]));

                                //lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 2;

                                lstBuddyList.Clear();
                                StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                {
                                    if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                    {
                                        lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                    }
                                }
                                objPodInfo.straPodBuddies = lstBuddyList.ToArray();

                                lstPodInfo.Add(objPodInfo);

                                ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                objSelectedTab.NoOfPODs++;

                            }
                        }

                        for (int pCnt = 0; pCnt < objSelectedGrid.RightPanelContainer.Items.Count; pCnt++)
                        {
                            if (objSelectedGrid.RightPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                            {
                                //lstPodInfo.Add(new clsPodInfo());
                                //fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]));
                                //lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 3;

                                clsPodInfo objPodInfo = new clsPodInfo();
                                objPodInfo.intPodID = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]).ObjectID;
                                objPodInfo.intModuleId = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]).ModuleID;
                                objPodInfo.strPodTitle = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]).Title;
                                objPodInfo.strUri = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]).WCFUri;
                                objPodInfo.intColumnNumber = 3;

                                lstBuddyList.Clear();
                                StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                {
                                    if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                    {
                                        lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                    }
                                }
                                //lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();
                                objPodInfo.straPodBuddies = lstBuddyList.ToArray();
                                lstPodInfo.Add(objPodInfo);
                                objSelectedPage.NoOfPODs++;
                                objSelectedTab.NoOfPODs++;
                            }
                        }

                        for (int pCnt = 0; pCnt < objSelectedGrid.TopPanelContainer.Items.Count; pCnt++)
                        {
                            if (objSelectedGrid.TopPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                            {
                                //lstPodInfo.Add(new clsPodInfo());
                                //fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]));

                                //lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 4;

                                clsPodInfo objPodInfo = new clsPodInfo();
                                objPodInfo.intPodID = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]).ObjectID;
                                objPodInfo.intModuleId = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]).ModuleID;
                                objPodInfo.strPodTitle = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]).Title;
                                objPodInfo.strUri = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]).WCFUri;
                                objPodInfo.intColumnNumber = 4;




                                lstBuddyList.Clear();
                                StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                {
                                    if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                    {
                                        lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                    }
                                }
                                //lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();
                                objPodInfo.straPodBuddies = lstBuddyList.ToArray();
                                lstPodInfo.Add(objPodInfo);

                                ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                objSelectedTab.NoOfPODs++;
                            }
                        }

                        for (int pCnt = 0; pCnt < objSelectedGrid.BottomPanelContainer.Items.Count; pCnt++)
                        {
                            if (objSelectedGrid.BottomPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                            {
                                //lstPodInfo.Add(new clsPodInfo());

                                //fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]));
                                //lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 5;


                                clsPodInfo objPodInfo = new clsPodInfo();
                                objPodInfo.intPodID = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]).ObjectID;
                                objPodInfo.intModuleId = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]).ModuleID;
                                objPodInfo.strPodTitle = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]).Title;
                                objPodInfo.strUri = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]).WCFUri;
                                objPodInfo.intColumnNumber = 5;



                                lstBuddyList.Clear();
                                StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                {
                                    if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                    {
                                        lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                    }
                                }
                                //lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                                //((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;

                                objPodInfo.straPodBuddies = lstBuddyList.ToArray();
                                lstPodInfo.Add(objPodInfo);

                                objSelectedPage.NoOfPODs++;
                                objSelectedTab.NoOfPODs++;
                            }
                        }

                        lstTabInfos[lstTabInfos.Count - 1].objaPods = lstPodInfo.ToArray();
                        objSelectedTab.SetMaxCounter(objSelectedTab.NoOfPODs, buddyname);
                    }
                    objPageInfo.objaTabs = lstTabInfos.ToArray();

                    objPageInfo.strFrom = VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName;
                    objPageInfo.strTo = buddyname;
                    objPageInfo.strMsg = "OPEN_PAGE";

                    this.SetMaxCounter(objSelectedPage.NoOfPODs, buddyname);

                }
                objPage = objPageInfo;
            }
            catch (Exception exp)
            {
                MessageBox.Show("exp" + exp.Message);
                //return null;
            }
        }
Exemplo n.º 8
0
 public void delPageSpecialMsg(clsPageInfo objPageInfo)
 {
     try
     {
         #region popup
         FncShowPopup(objPageInfo);
         #endregion
         objVMuktiGrid.LoadMeetingPage(objPageInfo);
         if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized)
         {
             Beep(750, 300);
         }
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delPageSpecialMsg()", "pgHome.xaml.cs");
     }
 }
Exemplo n.º 9
0
        public ctlTab.TabControl NewTabControl(clsPageInfo objPageInfo)
        {
            try
            {
                ctlTab.TabControl objTabControl = new ctlTab.TabControl();

                objTabControl.AllowAddNew = false;

                objTabControl.SetValue(Grid.RowProperty, 1);
                objTabControl.TabItemMinWidth = 150;
                objTabControl.TabItemMaxWidth = 300;
                objTabControl.TabItemMinHeight = 30;
                objTabControl.TabItemMaxHeight = 50;
                objTabControl.VerticalAlignment = VerticalAlignment.Stretch;
                objTabControl.Margin = new Thickness(5);

                for (int i = 0; i < objPageInfo.objaTabs.Length; i++)
                {
                    clsTabInfo objTab = objPageInfo.objaTabs[i];

                    ctlTab.TabItem objTabItem = new ctlTab.TabItem();
                    objTabItem.Width = 250;
                    objTabItem.MinWidth = 250;
                    objTabItem.MaxWidth = 250;
                    objTabItem.OwnerTabIndex = objTab.intOwnerTabIndex;
                    //TextBlock txtTabBlock = new TextBlock();
                    //txtTabBlock.Text = "New Tab - 0";
                    objTabItem.ObjectID = objPageInfo.objaTabs[i].intTabID;
                    objTabItem.IsSaved = true;

                    ctlPgTabHeader objPgTabHeader = new ctlPgTabHeader();
                    objPgTabHeader.Title = objTab.strTabTitle;

                    Image imgTabIcon = new Image();
                    imgTabIcon.Source = new BitmapImage(new Uri(@"\Skins\Images\VMuktiIcon.ico", UriKind.RelativeOrAbsolute));
                    imgTabIcon.Height = 16;
                    imgTabIcon.Width = 16;

                    objTabItem.Content = new CustomGrid.ctlGrid();
                    ((CustomGrid.ctlGrid)objTabItem.Content).LoadNewMeetingGrid(objPageInfo, i);

                    //objTabItem.Header = txtTabBlock;
                    objTabItem.Header = objPgTabHeader;
                    objTabItem.Icon = imgTabIcon;
                    objTabItem.NoOfPODs = objPageInfo.objaTabs[i].objaPods.Length;

                    if (objPageInfo.strDropType == "OnTab")
                    {
                        for (int j = 0; j < objPageInfo.objaTabs[i].straTabBuddies.Length; j++)
                        {
                            objTabItem.AddBuddy(objPageInfo.objaTabs[i].straTabBuddies[j]);
                            objTabItem.SetMaxCounter(objPageInfo.objaTabs[i].objaPods.Length, objPageInfo.objaTabs[i].straTabBuddies[j]);
                        }
                        objTabItem.AddBuddy(objPageInfo.strFrom);
                        objTabItem.SetMaxCounter(objPageInfo.objaTabs[i].objaPods.Length, objPageInfo.strFrom);
                    }

                    objTabControl.Items.Add(objTabItem);

                    //LinearGradientBrush objTabItemNormalBackground = new LinearGradientBrush();
                    //objTabItemNormalBackground.StartPoint = new Point(0, 0);
                    //objTabItemNormalBackground.EndPoint = new Point(0, 1);

                    //objTabItemNormalBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 252, 253, 253), 0));
                    //objTabItemNormalBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 229, 234, 245), 0.3));
                    //objTabItemNormalBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 207, 215, 235), 0.3));
                    //objTabItemNormalBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 224, 229, 245), 0.7));
                    //objTabItemNormalBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 236, 238, 252), 1));

                    //<GradientStop Color="#FFFBFDFE" Offset="0"/>
                    //<GradientStop Color="#FFEAF6FB" Offset="0.3"/>
                    //<GradientStop Color="#FFCEE7FA" Offset="0.3"/>
                    //<GradientStop Color="#FFB9D1FA" Offset="1"/>

                    //LinearGradientBrush objTabItemSelectedBackground = new LinearGradientBrush();
                    //objTabItemSelectedBackground.StartPoint = new Point(0, 0);
                    //objTabItemSelectedBackground.EndPoint = new Point(0, 1);

                    //objTabItemSelectedBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 251, 253, 254), 0));
                    //objTabItemSelectedBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 234, 246, 251), 0.3));
                    //objTabItemSelectedBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 206, 231, 250), 0.3));
                    //objTabItemSelectedBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 185, 209, 250), 1));


                    //<GradientStop Color="#FFFCFDFD" Offset="0"/>
                    //<GradientStop Color="#FFC6DDF7" Offset="0.3"/>
                    //<GradientStop Color="#FF99C6EE" Offset="0.3"/>
                    //<GradientStop Color="#FFB6D6F1" Offset="0.7"/>
                    //<GradientStop Color="#FFD9E9F9" Offset="1"/>


                    //LinearGradientBrush objTabItemMouseOverBackground = new LinearGradientBrush();
                    //objTabItemMouseOverBackground.StartPoint = new Point(0, 0);
                    //objTabItemMouseOverBackground.EndPoint = new Point(0, 1);

                    //objTabItemMouseOverBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 252, 253, 253), 0));
                    //objTabItemMouseOverBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 198, 221, 247), 0.3));
                    //objTabItemMouseOverBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 153, 198, 238), 0.3));
                    //objTabItemMouseOverBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 182, 214, 241), 0.7));
                    //objTabItemMouseOverBackground.GradientStops.Add(new GradientStop(Color.FromArgb(255, 217, 233, 249), 1));

                    //objTabControl.SetValue(TabControl.pgTabItemNormalBackgroundProperty, objTabItemNormalBackground);
                    //objTabControl.SetValue(TabControl.pgTabItemSelectedBackgroundProperty, objTabItemSelectedBackground);
                    //objTabControl.SetValue(TabControl.pgTabItemMouseOverBackgroundProperty, objTabItemMouseOverBackground);
                }
                return objTabControl;
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "NewTabControl()", "Controls\\VMuktiGrid\\Page\\TabControl.cs");
                return null;
            }
        }
Exemplo n.º 10
0
 public clsPageInfo SendPage(VMuktiGrid.ctlPage.TabItem objSelectedPage, string buddyname)
 {
     try
     {
         objPage = new clsPageInfo();
         this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, objSendPageInfo, objSelectedPage, buddyname);
         return objPage;
     }
     catch (Exception exp)
     {
         MessageBox.Show("SendPage" + exp.Message);
         return null;
     }
 }
Exemplo n.º 11
0
        public void LoadNewMeetingPage(clsPageInfo objPageInfo)
        {
            try
            {
                TabItem item = new TabItem();
                item.ObjectID = objPageInfo.intPageID;
                item.IsSaved = false;
                item.OwnerID = objPageInfo.intOwnerID;
                item.OwnerPageIndex = objPageInfo.intOwnerPageIndex;

                item.Width = 250;
                item.MinWidth = 250;
                item.MaxWidth = 250;
                if (objPageInfo.ConfID != 0)
                {
                    item.ConfID = objPageInfo.ConfID;
                    item.Loaded+=new RoutedEventHandler(item_Loaded);
                }

                ctlPgTabHeader objPgTabHeader = new ctlPgTabHeader();
                objPgTabHeader.Title = objPageInfo.strPageTitle;
                //TextBlock txtBlock = new TextBlock();
                //txtBlock.Text = "New Tab - " + this.Items.Count.ToString();

                //Image imgIcon = new Image();
                //imgIcon.Source = new BitmapImage(new Uri(@"\Skins\Images\VMuktiIcon.ico", UriKind.RelativeOrAbsolute));
                //imgIcon.Height = 16;
                //imgIcon.Width = 16;

                //item.Header = txtBlock;
                item.Header = objPgTabHeader;
                //  item.Icon = imgIcon;

                item.Content = NewTabControl(objPageInfo);

                if (objPageInfo.strDropType == "OnPage")
                {
                    int intMaxCounter = 0;

                    foreach (clsTabInfo objTabInfo in objPageInfo.objaTabs)
                    {
                        intMaxCounter += objTabInfo.objaPods.Length;
                    }

                    for (int i = 0; i < objPageInfo.straPageBuddies.Length; i++)
                    {
                        item.AddBuddy(objPageInfo.straPageBuddies[i]);
                        item.SetMaxCounter(intMaxCounter, objPageInfo.straPageBuddies[i]);
                    }
                    item.AddBuddy(objPageInfo.strFrom);
                    item.SetMaxCounter(intMaxCounter, objPageInfo.strFrom);
                }

                //if (i == -1 || i == this.Items.Count - 1 || AddNewTabToEnd)
                this.Items.Add(item);
                //else
                //this.Items.Insert(++i, item);

                if (SelectNewTabOnCreate)
                {
                   // SelectedItem = item;

                    VirtualizingTabPanel itemsHost = Helper.FindVirtualizingTabPanel(this);
                    if (itemsHost != null)
                        itemsHost.MakeVisible(item, Rect.Empty);

                  //  item.Focus();
                }

                if (TabItemAdded != null)
                    TabItemAdded(this, new TabItemEventArgs(item));              

                item.StartBlinking();
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "LoadNewMeeting()", "Controls\\VMuktiGrid\\Page\\TabControl.cs");
            }
        }
Exemplo n.º 12
0
        public void LoadMeetingPage(clsPageInfo objPageInfo, int pageIndex)
        {
            try
            {
                VMuktiGrid.ctlPage.TabItem selectedPage = (VMuktiGrid.ctlPage.TabItem)this.Items[pageIndex];
                ((ctlPgTabHeader)selectedPage.Header).Title = objPageInfo.strPageTitle;
                if (objPageInfo.ConfID != 0)
                {
                    selectedPage.ConfID = objPageInfo.ConfID;
                }

                int i = 0;
                int j = 0;

                for (i = 0; i < objPageInfo.objaTabs.Length; i++)
                {
                    for (j = 0; j < ((VMuktiGrid.ctlTab.TabControl)selectedPage.Content).Items.Count; j++)
                    {
                        if (((VMuktiGrid.ctlTab.TabItem)((VMuktiGrid.ctlTab.TabControl)selectedPage.Content).Items[j]).OwnerTabIndex == objPageInfo.objaTabs[i].intOwnerTabIndex)
                        {
                            ((VMuktiGrid.CustomGrid.ctlGrid)((VMuktiGrid.ctlTab.TabItem)((VMuktiGrid.ctlTab.TabControl)selectedPage.Content).Items[j]).Content).LoadMeetingGrid(objPageInfo, i);
                            ((VMuktiGrid.ctlTab.TabItem)((VMuktiGrid.ctlTab.TabControl)selectedPage.Content).Items[j]).StartBlinking();
                            break;
                        }
                    }
                    if (j == ((VMuktiGrid.ctlTab.TabControl)selectedPage.Content).Items.Count)
                    {
                        ctlTab.TabItem objTabItem = new ctlTab.TabItem();
                        objTabItem.Width = 250;
                        objTabItem.MinWidth = 250;
                        objTabItem.MaxWidth = 250;
                        objTabItem.OwnerTabIndex = objPageInfo.objaTabs[i].intOwnerTabIndex;
                        //TextBlock txtTabBlock = new TextBlock();
                        //txtTabBlock.Text = "New Tab - 0";
                        objTabItem.ObjectID = int.MinValue;
                        objTabItem.IsSaved = true;

                        ctlPgTabHeader objPgTabHeader = new ctlPgTabHeader();
                        objPgTabHeader.Title = objPageInfo.objaTabs[i].strTabTitle;

                        //Image imgTabIcon = new Image();
                        //imgTabIcon.Source = new BitmapImage(new Uri(@"\Skins\Images\VMuktiIcon.ico", UriKind.RelativeOrAbsolute));
                        //imgTabIcon.Height = 16;
                        //imgTabIcon.Width = 16;

                        objTabItem.Content = new CustomGrid.ctlGrid();
                        ((CustomGrid.ctlGrid)objTabItem.Content).LoadNewMeetingGrid(objPageInfo, i);

                        //objTabItem.Header = txtTabBlock;
                        objTabItem.Header = objPgTabHeader;
                        //objTabItem.Icon = imgTabIcon;

                        ((VMuktiGrid.ctlTab.TabControl)selectedPage.Content).Items.Add(objTabItem);
                        objTabItem.StartBlinking();

                    }
                }
                selectedPage.StartBlinking();
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "LoadMeetingPage()", "Controls\\VMuktiGrid\\Page\\TabControl.cs");
            }
        }
Exemplo n.º 13
0
 public void LoadMeetingPage(clsPageInfo objPageInfo)
 {
     try
     {
         int pCnt = 0;
         for (pCnt = 0; pCnt < pageControl.Items.Count; pCnt++)
         {
             if (((VMuktiGrid.ctlPage.TabItem)pageControl.Items[pCnt]).OwnerID == objPageInfo.intOwnerID && ((VMuktiGrid.ctlPage.TabItem)pageControl.Items[pCnt]).OwnerPageIndex == objPageInfo.intOwnerPageIndex)
             {
                 pageControl.LoadMeetingPage(objPageInfo, pCnt);
                 break;
             }
         }
         if (pCnt == pageControl.Items.Count)
         {
             pageControl.LoadNewMeetingPage(objPageInfo);
         }
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "LoadMeetingPage()", "Controls\\VMuktiGrid\\ctlVmuktiGrid.cs");
     }
 }
 public void svcSendConfInfo(string from, string to, int confid, clsPageInfo pageinfo, string ipaddress)
 {
     if (EntsvcSendConfInfo != null)
     {
         EntsvcSendConfInfo(from, to, confid, pageinfo, ipaddress);
     }
 }
Exemplo n.º 15
0
        void TabControl_Drop(object sender, DragEventArgs e)
        {
            //e.Handled = true;
            //this.AddBuddy(((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption, this.SelectedIndex);
            try
            {
                e.Handled = true;

                bool blnBuddyType = true;

                if (e.Data.GetData("VMukti.Presentation.Controls.CtlExpanderItem") != null && e.Data.GetData("VMukti.Presentation.Controls.CtlExpanderItem").GetType() == typeof(CtlExpanderItem))
                {
                    CtlExpanderItem elt = e.Data.GetData("VMukti.Presentation.Controls.CtlExpanderItem") as CtlExpanderItem;

                    #region Check whether it is module or buddy dropped

                    string[] strTag = elt.Tag.ToString().Split(',');
                    List<string> lstTag = new List<string>();
                    for (int i = 0; i < strTag.Length; i++)
                    {
                        if (strTag[i] == "ModuleType")
                        {
                            blnBuddyType = false;
                            break;
                        }
                    }

                    #endregion

                    if (blnBuddyType && this.AddBuddy(((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption, this.SelectedIndex))
                    {
                        VMuktiGrid.ctlPage.TabItem objSelectedPage = (VMuktiGrid.ctlPage.TabItem)this.SelectedItem;
                        VMuktiGrid.ctlTab.TabItem objSelectedTab = null;

                        clsPageInfo objPageInfo = new clsPageInfo();
                        objPageInfo.intPageID = ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).ObjectID;
                        objPageInfo.strPageTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).Header).Title;

                        objPageInfo.intOwnerID = VMuktiAPI.VMuktiInfo.CurrentPeer.ID;
                        //objPageInfo.intOwnerPageIndex = this.SelectedIndex;
                        objPageInfo.intOwnerPageIndex = objSelectedPage.OwnerPageIndex;

                        objPageInfo.strDropType = "OnPage";
                        List<string> lstBuddyList = new List<string>();
                        StackPanel stPageBuddyList = ((ctlMenu)((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).Template.FindName("objMenu", (VMuktiGrid.ctlPage.TabItem)this.SelectedItem)).objEMIBuddyList.objBuddyList.stBuddyPanel;
                        for (int i = 0; i < stPageBuddyList.Children.Count; i++)
                        {
                            lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPageBuddyList.Children[i]).Title);
                        }
                        objPageInfo.straPageBuddies = lstBuddyList.ToArray();

                        ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs = 0;

                        List<clsTabInfo> lstTabInfos = new List<clsTabInfo>();
                        for (int tCnt = 0; tCnt < ((VMuktiGrid.ctlTab.TabControl)objSelectedPage.Content).Items.Count; tCnt++)
                        {
                            objSelectedTab = ((VMuktiGrid.ctlTab.TabItem)((VMuktiGrid.ctlTab.TabControl)objSelectedPage.Content).Items[tCnt]);
                            objSelectedTab.NoOfPODs = 0;

                            lstTabInfos.Add(new clsTabInfo());

                            lstTabInfos[lstTabInfos.Count - 1].intTabID = objSelectedTab.ObjectID;
                            lstTabInfos[lstTabInfos.Count - 1].strTabTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)objSelectedTab.Header).Title;

                            StackPanel stTabBuddyList = ((ctlMenu)objSelectedTab.Template.FindName("objMenu", objSelectedTab)).objEMIBuddyList.objBuddyList.stBuddyPanel;
                            lstBuddyList.Clear();
                            for (int i = 0; i < stTabBuddyList.Children.Count; i++)
                            {
                                lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stTabBuddyList.Children[i]).Title);
                            }
                            lstTabInfos[lstTabInfos.Count - 1].straTabBuddies = lstBuddyList.ToArray();

                            //lstTabInfos[lstTabInfos.Count - 1].intOwnerTabIndex = tCnt;
                            lstTabInfos[lstTabInfos.Count - 1].intOwnerTabIndex = objSelectedTab.OwnerTabIndex;
                            ColumnDefinitionCollection objcols = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).DocumentRoot.ColumnDefinitions;
                            RowDefinitionCollection objrows = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).DocumentRoot.RowDefinitions;
                            //lstTabInfos[lstTabInfos.Count - 1].dblC1Width = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).LeftPanelContainer.ActualWidth;
                            //lstTabInfos[lstTabInfos.Count - 1].dblC2Width = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).CentralPanelContainer.ActualWidth;
                            //lstTabInfos[lstTabInfos.Count - 1].dblC3Width = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).RightPanelContainer.ActualWidth;

                            //lstTabInfos[lstTabInfos.Count - 1].dblC4Height = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).TopPanelContainer.ActualHeight;
                            //lstTabInfos[lstTabInfos.Count - 1].dblC5Height = ((VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content).BottomPanelContainer.ActualHeight;


                            lstTabInfos[lstTabInfos.Count - 1].dblC1Width = objcols[0].Width.Value;
                            lstTabInfos[lstTabInfos.Count - 1].dblC2Width = objcols[1].Width.Value;
                            lstTabInfos[lstTabInfos.Count - 1].dblC3Width = objcols[2].Width.Value;

                            lstTabInfos[lstTabInfos.Count - 1].dblC4Height = objrows[0].Height.Value;
                            lstTabInfos[lstTabInfos.Count - 1].dblC5Height = objrows[2].Height.Value;


                            List<clsPodInfo> lstPodInfo = new List<clsPodInfo>();
                            VMuktiGrid.CustomGrid.ctlGrid objSelectedGrid = (VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content;

                            for (int pCnt = 0; pCnt < objSelectedGrid.LeftPanelContainer.Items.Count; pCnt++)
                            {
                                if (objSelectedGrid.LeftPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                                {
                                    lstPodInfo.Add(new clsPodInfo());

                                    fncGetPodInfoForDrop(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]));

                                    lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 1;


                                    lstBuddyList.Clear();
                                    StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.LeftPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                    for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                    {
                                        if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                        {
                                            lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                        }
                                    }
                                    lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                                    ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                    objSelectedTab.NoOfPODs++;
                                }
                            }

                            for (int pCnt = 0; pCnt < objSelectedGrid.CentralPanelContainer.Items.Count; pCnt++)
                            {
                                if (objSelectedGrid.CentralPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                                {
                                    lstPodInfo.Add(new clsPodInfo());
                                    fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]));


                                    lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 2;

                                    lstBuddyList.Clear();
                                    StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.CentralPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                    for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                    {
                                        if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                        {
                                            lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                        }
                                    }
                                    lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                                    ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                    objSelectedTab.NoOfPODs++;
                                }
                            }

                            for (int pCnt = 0; pCnt < objSelectedGrid.RightPanelContainer.Items.Count; pCnt++)
                            {
                                if (objSelectedGrid.RightPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                                {
                                    lstPodInfo.Add(new clsPodInfo());
                                    fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]));

                                    lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 3;

                                    lstBuddyList.Clear();
                                    StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.RightPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                    for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                    {
                                        if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                        {
                                            lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                        }
                                    }
                                    lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                                    ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                    objSelectedTab.NoOfPODs++;
                                }
                            }

                            for (int pCnt = 0; pCnt < objSelectedGrid.TopPanelContainer.Items.Count; pCnt++)
                            {
                                if (objSelectedGrid.TopPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                                {
                                    lstPodInfo.Add(new clsPodInfo());
                                    fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]));
                                    lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 4;

                                    lstBuddyList.Clear();
                                    StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.TopPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                    for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                    {
                                        if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                        {
                                            lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                        }
                                    }
                                    lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                                    ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                    objSelectedTab.NoOfPODs++;
                                }
                            }

                            for (int pCnt = 0; pCnt < objSelectedGrid.BottomPanelContainer.Items.Count; pCnt++)
                            {
                                if (objSelectedGrid.BottomPanelContainer.Items[pCnt].GetType() == typeof(VMuktiGrid.CustomGrid.ctlPOD))
                                {
                                    lstPodInfo.Add(new clsPodInfo());
                                    fncGetPodInfo(lstPodInfo, lstPodInfo.Count - 1, ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]));
                                    //VMuktiGrid.CustomGrid.ctlPOD objpod = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]);
                                    lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = 5;

                                    lstBuddyList.Clear();
                                    StackPanel stPodBuddyList = ((VMuktiGrid.CustomGrid.ctlPOD)objSelectedGrid.BottomPanelContainer.Items[pCnt]).objBuddyList.stPanel;
                                    for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                                    {
                                        if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                                        {
                                            lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                                        }
                                    }
                                    lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                                    ((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs++;
                                    objSelectedTab.NoOfPODs++;
                                }
                            }

                            lstTabInfos[lstTabInfos.Count - 1].objaPods = lstPodInfo.ToArray();
                            objSelectedTab.SetMaxCounter(objSelectedTab.NoOfPODs, ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption);
                        }
                        objPageInfo.objaTabs = lstTabInfos.ToArray();

                        objPageInfo.strFrom = VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName;
                        objPageInfo.strTo = ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption;
                        objPageInfo.strMsg = "OPEN_PAGE";

                        this.SetMaxCounter(((VMuktiGrid.ctlPage.TabItem)this.SelectedItem).NoOfPODs, ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption);

                        if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithNetP2P || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.SuperNode)
                        {
                            VMukti.App.chNetP2PSuperNodeChannel.svcSetSpecialMsg(objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                        }
                        else
                        {
                            try
                            {
                                VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(objPageInfo);
                            }
                            catch (System.ServiceModel.EndpointNotFoundException ex)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "TabControl_Drop()", "Controls\\VMuktiGrid\\Page\\TabControl.cs");
                                VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null);

                                VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(objPageInfo);
                            }
                            catch (System.ServiceModel.CommunicationException ex)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "TabControl_Drop()", "Controls\\VMuktiGrid\\Page\\TabControl.cs");
                                VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null);

                                VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(objPageInfo);
                            }
                        }

                        //((ctlVMuktiGrid)((Grid)((VMuktiGrid.ctlPage.TabControl)((VMuktiGrid.ctlPage.TabItem)this.Parent).Parent).Parent).Parent).fncChannelSetPageMsg(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption, "OPEN_PAGE", lstModuleInfo);
                        //VMukti.App.chNetP2PSuperNodeChannel.svcAddDraggedBuddy
                    }
                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "TabControl_Drop()", "Controls\\VMuktiGrid\\Page\\TabControl.cs");
            }
        }
Exemplo n.º 16
0
        void delAsyncGetMessage(List<clsMessage> lstMsg)
        {
            try
            {
                if (lstMsg.Count > 0)
                {
                    for (int i = 0; i < lstMsg.Count; i++)
                    {
                        if (lstMsg[i].strMessage == "OPEN_PAGE")
                        {
                            objVMuktiGrid.LoadMeetingPage(lstMsg[i].objPageInfo);
                            #region popup
                            FncShowPopup(lstMsg[i].objPageInfo);
                            #endregion
                            if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized)
                            {
                                Beep(750, 300);
                            }
                        }

                        else if (lstMsg[i].strMessage == "OPEN_PAGE4MultipleBuddies")
                        {
                            //objVMuktiGrid.LoadNewMultipleBuddyPage(lstMsg[i].objClsModuleInfo);
                            objVMuktiGrid.LoadMeetingPage(lstMsg[i].objPageInfo);
                            #region popup
                            FncShowPopup(lstMsg[i].strFrom, lstMsg[i].objClsModuleInfo);
                            #endregion
                            if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized)
                            {
                                Beep(750, 300);
                            }
                        }

                        else if (lstMsg[i].strMessage == "JoinConf")
                        {
                            if (lstMsg[i].strTo[0] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                            {
                                foreach (KeyValuePair<int, int> kvp in VMuktiAPI.VMuktiInfo.CurrentPeer.ConferenceUser)
                                {
                                    if (kvp.Key == lstMsg[i].confid)
                                    {
                                        ClsConferenceCollection objGetConfInfo = ClsConferenceCollection.GetUserConferences(lstMsg[i].confid);
                                        clsPageInfo objPageInfo = new clsPageInfo();
                                        for (int pCnt = 0; pCnt < objVMuktiGrid.pageControl.Items.Count; pCnt++)
                                        {
                                            if (objGetConfInfo[0].PageID == ((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[pCnt]).ObjectID)
                                            {
                                                VMuktiGrid.ctlPage.TabItem objpage = ((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[pCnt]);
                                                objPageInfo = objVMuktiGrid.pageControl.SendPage(objpage, lstMsg[i].strFrom);
                                                break;
                                            }
                                        }
                                        if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                                        {
                                            App.chHttpSuperNodeService.svcSendConfInfo(lstMsg[i].strTo[0], lstMsg[i].strFrom, lstMsg[i].confid, objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                                        }
                                        else
                                        {
                                            App.chNetP2PSuperNodeChannel.svcSendConfInfo(lstMsg[i].strTo[0], lstMsg[i].strFrom, lstMsg[i].confid, objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                                        }
                                        break;
                                    }
                                }
                            }
                        }

                        else if (lstMsg[i].strMessage == "UnJoinConf")
                        {
                            try
                            {
                                //close the page with specified confid
                                //in different window display the message of closing the conference
                                for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++)
                                {
                                    if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                                    {
                                        this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelUnJoinConf, lstMsg[i].strFrom, lstMsg[i].confid);
                                        break;
                                    }
                                }
                            }
                            catch (Exception exp)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "delAsyncGetMessage()", "pgHome.xaml.cs");
                            }
                        }


                        else if (lstMsg[i].strMessage == "SendConfInfo")
                        {
                            try
                            {
                                if (lstMsg[i].strTo[0] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                                {
                                    foreach (KeyValuePair<int, int> kvp in VMuktiAPI.VMuktiInfo.CurrentPeer.ConferenceUser)
                                    {
                                        if (kvp.Key == lstMsg[i].confid)
                                        {
                                            this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelSendConfInfo, lstMsg[i].objPageInfo);
                                        }
                                    }
                                }
                            }
                            catch (Exception exp)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "SendConfInfo", "pgHome.xaml.cs");

                            }
                        }

                        else if (lstMsg[i].strMessage == "EnterConf")
                        {
                            try
                            {
                                if (lstMsg[i].strFrom != VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                                {
                                    VMuktiAPI.VMuktiEventArgs args = new VMuktiAPI.VMuktiEventArgs(new object[] { lstMsg[i].confid });
                                    VMuktiAPI.VMuktiHelper.CallEvent("EnterConf", this, args);

                                }
                            }
                            catch (Exception ex)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delAsyncGetMessage()", "pgHome.xaml.cs");
                            }
                        }

                        else if (lstMsg[i].strMessage == "AddConfBuddy")
                        {
                            try
                            {
                                for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++)
                                {
                                    if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                                    {
                                        this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelAddConfBuddy, lstMsg[i].strFrom, lstMsg[i].confid);
                                        break;
                                    }
                                }
                            }
                            catch (Exception ex)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delAsyncGetMessage():-RemoveBuddyConf", "pgHome.xaml.cs");
                            }
                        }

                        else if (lstMsg[i].strMessage == "RemoveBuddyConf")
                        {
                            try
                            {
                                for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++)
                                {
                                    if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                                    {
                                        this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelRemoveBuddyConf, lstMsg[i].strFrom, lstMsg[i].confid);
                                        break;
                                    }
                                }
                            }
                            catch (Exception ex)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delAsyncGetMessage():-RemoveBuddyConf", "pgHome.xaml.cs");
                            }
                        }

                        else if (lstMsg[i].strMessage == "PodNavigate")
                        {
                            try
                            {
                                //close the page with specified confid
                                //in different window display the message of closing the conference
                                for (int BCnt = 0; BCnt < lstMsg[i].strTo.Length; BCnt++)
                                {
                                    if (lstMsg[i].strTo[BCnt] == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                                    {
                                        List<int> lstIDs = new List<int>();
                                        lstIDs.Add(int.Parse(lstMsg[i].objClsModuleInfo.strPageid));
                                        lstIDs.Add(int.Parse(lstMsg[i].objClsModuleInfo.strTabid));
                                        lstIDs.Add(int.Parse(lstMsg[i].objClsModuleInfo.strPodid));
                                        this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelPodNavigation, lstMsg[i].strFrom, lstIDs);
                                        break;
                                    }
                                }
                            }

                            catch (Exception exp)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "delAsyncGetMessage()--PodNavigate", "pgHome.xaml.cs");
                            }
                        }


                        if (lstMsg[i].lstClsModuleInfo != null && lstMsg[i].lstClsModuleInfo.Count > 0)
                        {
                            if (lstMsg[i].lstClsModuleInfo[0].strDropType == "Page Type" || lstMsg[i].lstClsModuleInfo[0].strDropType == "Tab Type")
                            {
                                if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized)
                                {
                                    Beep(750, 300);
                                }
                            }
                        }
                        else if (lstMsg[i].objClsModuleInfo != null)
                        {
                            if (lstMsg[i].strMessage == "OPEN_MODULE")
                            {
                                if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized)
                                {
                                    Beep(750, 300);
                                }
                            }
                            else if (lstMsg[i].strMessage == "Newly Dragged Buddy")
                            {
                                #region Pod Type

                                if (lstMsg[i].objClsModuleInfo.strDropType == "Pod Type")
                                {
                                }
                                #endregion
                                if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized)
                                {
                                    Beep(750, 300);
                                }
                            }
                            else if (lstMsg[i].strMessage == "CLOSE MODULE")
                            {
                                HttpRemoveDraggedBuddy(lstMsg[i].strFrom, lstMsg[i].strTo, lstMsg[i].strMessage, lstMsg[i].objClsModuleInfo);
                                lstMsg.RemoveAt(i);
                            }
                        }
                    }
                }

                this.dispTmrCheckStatus.Start();
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "delgetMessage()", "pgHome.xaml.cs");
            }
        }
Exemplo n.º 17
0
 public void svcSetSpecialMsgs(clsPageInfo objPageInfo)
 {
     if (EntsvcPageSetSpecialMsg != null)
     {
         EntsvcPageSetSpecialMsg(objPageInfo);
     }
 }
Exemplo n.º 18
0
 void delSetSpecialMsgBuddiesClick(clsModuleInfo objModInfo, clsPageInfo objPageInfo)
 {
     try
     {
         #region popup
         FncShowPopup(objModInfo.lstUsersDropped[objModInfo.lstUsersDropped.Count - 1], objModInfo);
         #endregion
         objVMuktiGrid.LoadMeetingPage(objPageInfo);
         //objVMuktiGrid.LoadNewMultipleBuddyPage(objModInfo, objPageInfo);
         if (((WindowState)(this.Parent.GetValue(Window.WindowStateProperty))) == WindowState.Minimized)
         {
             Beep(750, 300);
         }
     }
     catch (Exception ex)
     {
         VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "delSetSpecialMsgBuddiesClick()", "pgHome.xaml.cs");
     }
 }
Exemplo n.º 19
0
        void InformMultipleBuddy()
        {
            //if condition only for online buddies

            for (int onlineBuddyCnt = 0; onlineBuddyCnt < onlineBuddy.Count; onlineBuddyCnt++)
            {
                this.AddBuddy(onlineBuddy[onlineBuddyCnt]);
            }
            if (onlineBuddy.Count > 0)
            {
                VMuktiGrid.ctlPage.TabItem objSelectedPage = ((VMuktiGrid.ctlPage.TabItem)((VMuktiGrid.ctlTab.TabControl)((VMuktiGrid.ctlTab.TabItem)((ctlGrid)((Grid)((ItemsControl)this.Parent).Parent).Parent).Parent).Parent).Parent);
                VMuktiGrid.ctlTab.TabItem objSelectedTab = ((VMuktiGrid.ctlTab.TabItem)((ctlGrid)((Grid)((ItemsControl)this.Parent).Parent).Parent).Parent);

                List<string> lstBuddyList = new List<string>();
                StackPanel stPodBuddyList = this.objBuddyList.stPanel;
                for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                {
                    if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                    {
                        lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                    }
                }

                clsModuleInfo objModInfo = new clsModuleInfo();
                objModInfo.intModuleId = this.ModuleID;
                objModInfo.strDropType = "OnPod";
                objModInfo.strModuleName = this.Title;
                objModInfo.strPageid = objSelectedPage.ObjectID.ToString();
                objModInfo.strPodid = objSelectedTab.ObjectID.ToString();
                objModInfo.strUri = this.WCFUri;
                objModInfo.ModPermissions = this._arrPermissionValue;
                objModInfo.lstUsersDropped = this.onlineBuddy;

                clsPageInfo objPageInfo = new clsPageInfo();
                objPageInfo.intPageID = objSelectedPage.ObjectID;
                objPageInfo.strPageTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)objSelectedPage.Header).Title;
                if (objSelectedPage.OwnerID != VMuktiAPI.VMuktiInfo.CurrentPeer.ID)
                {
                    objPageInfo.intOwnerID = objSelectedPage.OwnerID;
                    objPageInfo.intOwnerPageIndex = objSelectedPage.OwnerPageIndex;
                }
                else
                {
                    objPageInfo.intOwnerID = VMuktiAPI.VMuktiInfo.CurrentPeer.ID;
                    objPageInfo.intOwnerPageIndex = objSelectedPage.OwnerPageIndex;
                }
                //objPageInfo.strDropType = "OnPod";
                objPageInfo.strDropType = "OnBuddyClick";

                List<clsTabInfo> lstTabInfos = new List<clsTabInfo>();
                lstTabInfos.Add(new clsTabInfo());
                int tabinfoscount = lstTabInfos.Count - 1;
                lstTabInfos[tabinfoscount].intTabID = objSelectedTab.ObjectID;
                lstTabInfos[tabinfoscount].strTabTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)objSelectedTab.Header).Title;
                VMuktiGrid.CustomGrid.ctlGrid objSelectedGrid = (VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content;

                lstTabInfos[tabinfoscount].intOwnerTabIndex = objSelectedTab.OwnerTabIndex;
                lstTabInfos[tabinfoscount].dblC1Width = objSelectedGrid.LeftPanelContainer.ActualWidth;
                lstTabInfos[tabinfoscount].dblC2Width = objSelectedGrid.CentralPanelContainer.ActualWidth;
                lstTabInfos[tabinfoscount].dblC3Width = objSelectedGrid.RightPanelContainer.ActualWidth;
                lstTabInfos[tabinfoscount].dblC4Height = objSelectedGrid.TopPanelContainer.ActualHeight;
                lstTabInfos[tabinfoscount].dblC5Height = objSelectedGrid.BottomPanelContainer.ActualHeight;

                List<clsPodInfo> lstPodInfo = new List<clsPodInfo>();
                lstPodInfo.Add(new clsPodInfo());
                lstPodInfo[lstPodInfo.Count - 1].intModuleId = this.ModuleID;
                lstPodInfo[lstPodInfo.Count - 1].strPodTitle = this.Title;
                lstPodInfo[lstPodInfo.Count - 1].strUri = this.WCFUri;
                lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = this.ColNo;
                if (this.ColNo == 1)
                {
                    this.OwnerPodIndex = objSelectedGrid.LeftPanelContainer.Items.Count;
                }
                else if (this.ColNo == 2)
                {
                    this.OwnerPodIndex = objSelectedGrid.CentralPanelContainer.Items.Count;
                }
                else if (this.ColNo == 3)
                {
                    this.OwnerPodIndex = objSelectedGrid.RightPanelContainer.Items.Count;
                }

                lstPodInfo[lstPodInfo.Count - 1].intOwnerPodIndex = this.OwnerPodIndex;                
                lstBuddyList.Clear();
                lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();                
                lstTabInfos[lstTabInfos.Count - 1].objaPods = lstPodInfo.ToArray();

                objPageInfo.objaTabs = lstTabInfos.ToArray();
                objPageInfo.strFrom = VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName;
                //objPageInfo.strTo = ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption;
                objPageInfo.strTo = this.onlineBuddy[0].ToString();
                objPageInfo.strMsg = "OPEN_PAGE";

                //this.SetMaxCounter(1, ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption);
                this.SetMaxCounter(1, this.onlineBuddy[0].ToString());

                if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithNetP2P || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.SuperNode)
                {
                    //VMukti.App.chNetP2PSuperNodeChannel.svcSetSpecialMsg(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                    VMukti.App.chNetP2PSuperNodeChannel.svcSetSpecialMsg(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP, objPageInfo);
                }
                else
                {
                    try
                    {
                        //VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo);
                        VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo, objPageInfo);
                    }
                    catch (System.ServiceModel.EndpointNotFoundException ex)
                    {
                        VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "InformMultipleBuddy()", "Controls\\VMuktiGrid\\Grid\\ctlPOD.xaml.cs");                        
                        VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null);
                        //VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo);
                        VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo,objPageInfo);
                    }
                    catch (System.ServiceModel.CommunicationException ex)
                    {
                        VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "InformMultipleBuddy--2", "Controls\\VMuktiGrid\\Grid\\ctlPOD.xaml.cs");                        
                        VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null);
                        //VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo);
                        VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, onlineBuddy, "OPEN_PAGE4MultipleBuddies", objModInfo,objPageInfo);
                    }

                }
            }
        }
Exemplo n.º 20
0
        void objAppSNDel_EntsvcSendConfInfo(string from, string to, int confid, clsPageInfo pageinfo, string ipaddress)
        {
            try
            {
                if (to == VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName)
                {
                    foreach (KeyValuePair<int, int> kvp in VMuktiAPI.VMuktiInfo.CurrentPeer.ConferenceUser)
                    {
                        if (kvp.Key == confid)
                        {
                            this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelSendConfInfo, pageinfo);
                        }
                    }
                }
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "objAppSNDel_EntsvcSendConfInfo()", "pgHome.xaml.cs");

            }
        }
Exemplo n.º 21
0
        public ctlPOD(int intModID, string strModTitle, string strIsCollaborative, string strURI, int[] arrPermissionValue, bool flag, string strFromWhere, ItemsControl objParent, bool LoadModule, clsPageInfo objPageInfo,int InsertAT)
        {

            try
            {
                InitializeComponent();
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlpod--1", "Controls\\VMuktiGrid\\Grid\\ctlPOD.xaml.cs");
            }
            try
            {
                _LoadModule = LoadModule;
                _IsCollaborative = bool.Parse(strIsCollaborative);
                _strURI = strURI;
                _arrPermissionValue = arrPermissionValue;
                _flag = flag;
                _objParent = objParent;
                _strFromWhere = strFromWhere;

                if (objPageInfo != null)
                {
                    _objPageInfo = objPageInfo;
                }

                objDelLoadModule = new delLoadModule(dispMethLoadModule);

                rectSuggetion.Fill = Brushes.Transparent;
                rectSuggetion.Stroke = Brushes.Red;

                DoubleCollection dblCol = new DoubleCollection();
                dblCol.Add(5.0);
                dblCol.Add(5.0);

                rectSuggetion.StrokeDashArray = dblCol;
                rectSuggetion.StrokeDashCap = PenLineCap.Round;
                rectSuggetion.StrokeDashOffset = 50;
                rectSuggetion.StrokeEndLineCap = PenLineCap.Square;
                rectSuggetion.StrokeLineJoin = PenLineJoin.Miter;
                rectSuggetion.StrokeMiterLimit = 50;
                rectSuggetion.RadiusX = 16;
                rectSuggetion.RadiusY = 16;
                rectSuggetion.Height = 100;

                Title = strModTitle;
                ModuleID = intModID;

                ass = Assembly.GetAssembly(typeof(ctlPOD));


                this.Loaded += new RoutedEventHandler(ctlPOD_Loaded);
                if (_IsCollaborative)
                {
                    this.Drop += new DragEventHandler(ctlPOD_Drop);
                }
                else
                {
                    objBuddyList.Height = 0.0;
                    objBuddyList.Width = 0.0;
                }
                if (_objParent != null)
                {
                    ((ItemsControl)_objParent).Items.Insert(InsertAT,this);
                    this.ColNo = (int)objParent.Tag;
                }
                if (_strFromWhere == "fromLeftPane")
                {
                    this.AddBuddy(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, 0);
                }
                else if (_strFromWhere == "fromDatabase")
                {
                    this.AddBuddy(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, 0);
                }
                else if (_strFromWhere == "fromOtherPeer")
                {
                    this.AddBuddy(_objPageInfo.strFrom, 0);
                    this.AddBuddy(VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName, 0);
                }
            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "Ctlpod--2", "Controls\\VMuktiGrid\\Grid\\ctlPOD.xaml.cs");
            }
        }
Exemplo n.º 22
0
        void JoinConf(string from, List<string> lstArgs)
        {
            try
            {
                string to = lstArgs[0];
                int confid = int.Parse(lstArgs[1]);

                foreach (KeyValuePair<int, int> kvp in VMuktiAPI.VMuktiInfo.CurrentPeer.ConferenceUser)
                {
                    if (kvp.Key == confid)
                    {
                        List<string> lstBuddies2Inform = new List<string>();
                        ClsConferenceCollection objGetConfInfo = ClsConferenceCollection.GetUserConferences(confid);
                        clsPageInfo objPageInfo = new clsPageInfo();
                        for (int i = 0; i < objVMuktiGrid.pageControl.Items.Count; i++)
                        {
                            if (objGetConfInfo[0].PageID == ((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[i]).ObjectID)
                            {
                                VMuktiGrid.ctlPage.TabItem objpage = ((VMuktiGrid.ctlPage.TabItem)objVMuktiGrid.pageControl.Items[i]);

                                objPageInfo = objVMuktiGrid.pageControl.SendPage(objpage, from);

                                lstBuddies2Inform = ((ctlMenu)objpage.Template.FindName("objMenu", objpage)).GetBuddies();
                                //

                                break;
                            }
                        }
                        if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                        {
                            App.chHttpSuperNodeService.svcSendConfInfo(to, from, confid, objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                        }
                        else
                        {
                            App.chNetP2PSuperNodeChannel.svcSendConfInfo(to, from, confid, objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                        }
                        //call wcf function to inform other buddy to of new buddy being added to conference.



                        if (lstBuddies2Inform.Contains(from))
                        {
                            lstBuddies2Inform.Remove(from);
                        }
                        else if (lstBuddies2Inform.Contains(to))
                        {
                            lstBuddies2Inform.Remove(to);
                        }
                        if (lstBuddies2Inform.Count > 0)
                        {
                            if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                            {
                                App.chHttpSuperNodeService.svcAddConfBuddy(from, lstBuddies2Inform, confid, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                            }
                            else
                            {
                                App.chNetP2PSuperNodeChannel.svcAddConfBuddy(from, lstBuddies2Inform, confid, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                            }
                        }

                        break;
                    }
                }

            }
            catch (Exception exp)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "JoinConf()", "pgHome.xaml.cs");
            }
        }
Exemplo n.º 23
0
        //This event is to capture the dropped buddy action and extracts the required information and will send a message to dropped buddy. This will generate one message to transmite in network up to required buddy machine. will be having information of wcf service and design of page.
        void ctlPOD_Drop(object sender, DragEventArgs e)
        {
            try
            {
                e.Handled = true;
                bool blnBuddyType = true;

                if (e.Data.GetData("VMukti.Presentation.Controls.CtlExpanderItem") != null && e.Data.GetData("VMukti.Presentation.Controls.CtlExpanderItem").GetType()==typeof(CtlExpanderItem))
                {
                    CtlExpanderItem elt = e.Data.GetData("VMukti.Presentation.Controls.CtlExpanderItem") as CtlExpanderItem;

                    #region Check whether it is module or buddy dropped

                    string[] strTag = elt.Tag.ToString().Split(',');
                    List<string> lstTag = new List<string>();
                    for (int i = 0; i < strTag.Length; i++)
                    {
                        if (strTag[i] == "ModuleType")
                        {
                            blnBuddyType = false;
                            break;
                        }
                    }

                    #endregion

                    if (blnBuddyType && this.AddBuddy(((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption))
                    {
                        VMuktiGrid.ctlPage.TabItem objSelectedPage = ((VMuktiGrid.ctlPage.TabItem)((VMuktiGrid.ctlTab.TabControl)((VMuktiGrid.ctlTab.TabItem)((ctlGrid)((Grid)((ItemsControl)this.Parent).Parent).Parent).Parent).Parent).Parent);
                        VMuktiGrid.ctlTab.TabItem objSelectedTab = ((VMuktiGrid.ctlTab.TabItem)((ctlGrid)((Grid)((ItemsControl)this.Parent).Parent).Parent).Parent);

                        clsPageInfo objPageInfo = new clsPageInfo();
                        objPageInfo.intPageID = objSelectedPage.ObjectID;
                        objPageInfo.strPageTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)objSelectedPage.Header).Title;

                        objPageInfo.intOwnerID = VMuktiAPI.VMuktiInfo.CurrentPeer.ID;
                        objPageInfo.intOwnerPageIndex = objSelectedPage.OwnerPageIndex;

                        objPageInfo.strDropType = "OnPod";

                        List<clsTabInfo> lstTabInfos = new List<clsTabInfo>();
                        lstTabInfos.Add(new clsTabInfo());
                        int tabinfoscount = lstTabInfos.Count - 1;
                        lstTabInfos[tabinfoscount].intTabID = objSelectedTab.ObjectID;
                        lstTabInfos[tabinfoscount].strTabTitle = ((VMuktiGrid.CustomMenu.ctlPgTabHeader)objSelectedTab.Header).Title;
                        VMuktiGrid.CustomGrid.ctlGrid objSelectedGrid = (VMuktiGrid.CustomGrid.ctlGrid)objSelectedTab.Content;
                        List<string> lstBuddyList = new List<string>();

                        lstTabInfos[tabinfoscount].intOwnerTabIndex = objSelectedTab.OwnerTabIndex;
                        lstTabInfos[tabinfoscount].dblC1Width = objSelectedGrid.LeftPanelContainer.ActualWidth;
                        lstTabInfos[tabinfoscount].dblC2Width = objSelectedGrid.CentralPanelContainer.ActualWidth;
                        lstTabInfos[tabinfoscount].dblC3Width = objSelectedGrid.RightPanelContainer.ActualWidth;

                        lstTabInfos[tabinfoscount].dblC4Height = objSelectedGrid.TopPanelContainer.ActualHeight;
                        lstTabInfos[tabinfoscount].dblC5Height = objSelectedGrid.BottomPanelContainer.ActualHeight;

                        List<clsPodInfo> lstPodInfo = new List<clsPodInfo>();
                       

                        lstPodInfo.Add(new clsPodInfo());

                        lstPodInfo[lstPodInfo.Count - 1].intModuleId = this.ModuleID;
                        lstPodInfo[lstPodInfo.Count - 1].strPodTitle = this.Title;
                        lstPodInfo[lstPodInfo.Count - 1].strUri = this.WCFUri;
                        lstPodInfo[lstPodInfo.Count - 1].intColumnNumber = this.ColNo;
                        lstPodInfo[lstPodInfo.Count - 1].intOwnerPodIndex = this.OwnerPodIndex;

                        lstBuddyList.Clear();
                        StackPanel stPodBuddyList = this.objBuddyList.stPanel;
                        for (int i = 0; i < stPodBuddyList.Children.Count; i++)
                        {
                            if (stPodBuddyList.Children[i].GetType() == typeof(VMuktiGrid.Buddy.ctlBuddy))
                            {
                                lstBuddyList.Add(((VMuktiGrid.Buddy.ctlBuddy)stPodBuddyList.Children[i]).Title);
                            }
                        }
                        lstPodInfo[lstPodInfo.Count - 1].straPodBuddies = lstBuddyList.ToArray();

                        lstTabInfos[lstTabInfos.Count - 1].objaPods = lstPodInfo.ToArray();
                        objPageInfo.objaTabs = lstTabInfos.ToArray();

                        objPageInfo.strFrom = VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName;
                        objPageInfo.strTo = ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption;
                        objPageInfo.strMsg = "OPEN_PAGE";

                        this.SetMaxCounter(1, ((VMukti.Presentation.Controls.CtlExpanderItem)e.Data.GetData(typeof(VMukti.Presentation.Controls.CtlExpanderItem))).Caption);

                        if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.NodeWithNetP2P || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == VMuktiAPI.PeerType.SuperNode)
                        {
                            VMukti.App.chNetP2PSuperNodeChannel.svcSetSpecialMsg(objPageInfo, VMuktiAPI.VMuktiInfo.CurrentPeer.SuperNodeIP);
                        }
                        else
                        {
                            try
                            {
                                VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(objPageInfo);
                            }
                            catch (System.ServiceModel.EndpointNotFoundException exp)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "CtlPod_Drop()", "Controls\\VMuktiGrid\\Grid\\ctlPOD.xaml.cs");
                                VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null);

                                VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(objPageInfo);
                            }
                            catch (System.ServiceModel.CommunicationException exp)
                            {
                                VMuktiAPI.VMuktiHelper.ExceptionHandler(exp, "CtlPOD_Drop()", "Controls\\VMuktiGrid\\Grid\\ctlPOD.xaml.cs");
                                VMuktiAPI.VMuktiHelper.CallEvent("GetSuperNodeIP", null, null);

                                VMukti.App.chHttpSuperNodeService.svcSetSpecialMsgs(objPageInfo);
                            }
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "ctlPod_Drop()", "Controls\\VMuktiGrid\\Grid\\ctlPOD.xaml.cs");
            }
        }
Exemplo n.º 24
0
        void pgHome_EntsvcPageSetSpecialMsg(clsPageInfo objPageInfo, string IPAddress)
        {
            try
            {
                if (VMuktiAPI.VMuktiInfo.CurrentPeer.DisplayName == objPageInfo.strTo)
                {
                    this.Dispatcher.BeginInvoke(DispatcherPriority.Normal, objDelPageSpecialMsg, objPageInfo);

                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "pgHome_EntsvcPageSetSpecialMsg()", "pgHome.xaml.cs");
            }
        }
Exemplo n.º 25
0
        //to load whole grid design from another person/host from relative tabindex from object of clsPageInfo class (pages are not saved)... when we already in meeting with another user for widget and u drop another widget on same tab and drop the same use again this function will ensure new widget opens in the same meeting tab instead into new tab.
        public void LoadMeetingGrid(clsPageInfo objPageInfo, int intTabIndex)
        {
            try
            {
                clsTabInfo objTabInfo = objPageInfo.objaTabs[intTabIndex];

                DocumentRoot.ColumnDefinitions[0].Width = new GridLength(objTabInfo.dblC1Width, GridUnitType.Star);
                DocumentRoot.ColumnDefinitions[1].Width = new GridLength(objTabInfo.dblC2Width, GridUnitType.Star);
                DocumentRoot.ColumnDefinitions[2].Width = new GridLength(objTabInfo.dblC3Width, GridUnitType.Star);

                DocumentRoot.RowDefinitions[0].Height = new GridLength(objTabInfo.dblC4Height, GridUnitType.Pixel);
                DocumentRoot.RowDefinitions[2].Height = new GridLength(objTabInfo.dblC5Height, GridUnitType.Pixel);

                int i = 0;
                int j = 0;

                for (i = 0; i < objTabInfo.objaPods.Length; i++)
                {
                    VMukti.Business.VMuktiGrid.ClsModule objModule = VMukti.Business.VMuktiGrid.ClsModule.GetPodModule(objTabInfo.objaPods[i].intModuleId);

                    ClsPermissionCollection objCPC = ClsPermissionCollection.Get_PermissionRefModule(objTabInfo.objaPods[i].intModuleId, VMuktiAPI.VMuktiInfo.CurrentPeer.RoleID);
                    int[] arrPermissionValue = new int[objCPC.Count];
                    for (int percount = 0; percount < objCPC.Count; percount++)
                    {
                        arrPermissionValue[percount] = objCPC[percount].PermissionValue;
                    }

                    if (objTabInfo.objaPods[i].intColumnNumber == 1)
                    {
                        for (j = 0; j < LeftPanelContainer.Items.Count; j++)
                        {
                            if (((ctlPOD)LeftPanelContainer.Items[j]).OwnerPodIndex == objTabInfo.objaPods[i].intOwnerPodIndex && objPageInfo.strDropType != "OnBuddyClick")
                            {
                                break;
                            }
                        }
                        if (j == LeftPanelContainer.Items.Count)
                        {
                            ctlPOD objPod = null;
                            if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.SuperNode || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithNetP2P)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[0], arrPermissionValue, false, "fromOtherPeer", LeftPanelContainer, true, objPageInfo);
                            }
                            else if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[1], arrPermissionValue, false, "fromOtherPeer", LeftPanelContainer, true, objPageInfo);
                            }
                            objPod.OwnerPodIndex = objTabInfo.objaPods[i].intOwnerPodIndex;
                            objPod.IsTwoPanel = true;
                        }
                    }
                    else if (objTabInfo.objaPods[i].intColumnNumber == 2)
                    {
                        for (j = 0; j < CentralPanelContainer.Items.Count; j++)
                        {
                            if (((ctlPOD)CentralPanelContainer.Items[j]).OwnerPodIndex == objTabInfo.objaPods[i].intOwnerPodIndex && objPageInfo.strDropType != "OnBuddyClick")
                            {
                                break;
                            }
                        }
                        if (j == CentralPanelContainer.Items.Count)
                        {
                            ctlPOD objPod = null;
                            if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.SuperNode || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithNetP2P)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[0], arrPermissionValue, false, "fromOtherPeer", CentralPanelContainer, true, objPageInfo);
                            }
                            else if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[1], arrPermissionValue, false, "fromOtherPeer", CentralPanelContainer, true, objPageInfo);
                            }
                            objPod.OwnerPodIndex = objTabInfo.objaPods[i].intOwnerPodIndex;
                        }
                    }
                    else if (objTabInfo.objaPods[i].intColumnNumber == 3)
                    {
                        for (j = 0; j < RightPanelContainer.Items.Count; j++)
                        {
                            if (((ctlPOD)RightPanelContainer.Items[j]).OwnerPodIndex == objTabInfo.objaPods[i].intOwnerPodIndex && objPageInfo.strDropType != "OnBuddyClick")
                            {
                                break;
                            }
                        }
                        if (j == RightPanelContainer.Items.Count)
                        {
                            ctlPOD objPod = null;
                            if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.SuperNode || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithNetP2P)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[0], arrPermissionValue, false, "fromOtherPeer", RightPanelContainer, true, objPageInfo);
                            }
                            else if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[1], arrPermissionValue, false, "fromOtherPeer", RightPanelContainer, true, objPageInfo);
                            }
                            objPod.OwnerPodIndex = objTabInfo.objaPods[i].intOwnerPodIndex;
                        }
                    }
                    else if (objTabInfo.objaPods[i].intColumnNumber == 4)
                    {
                        for (j = 0; j < TopPanelContainer.Items.Count; j++)
                        {
                            if (((ctlPOD)TopPanelContainer.Items[j]).OwnerPodIndex == objTabInfo.objaPods[i].intOwnerPodIndex && objPageInfo.strDropType != "OnBuddyClick")
                            {
                                break;
                            }
                        }
                        if (j == TopPanelContainer.Items.Count)
                        {
                            ctlPOD objPod = null;
                            if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.SuperNode || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithNetP2P)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[0], arrPermissionValue, false, "fromOtherPeer", TopPanelContainer, true, objPageInfo);
                            }
                            else if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[1], arrPermissionValue, false, "fromOtherPeer", TopPanelContainer, true, objPageInfo);
                            }
                            objPod.OwnerPodIndex = objTabInfo.objaPods[i].intOwnerPodIndex;
                        }
                    }
                    else if (objTabInfo.objaPods[i].intColumnNumber == 5)
                    {
                        for (j = 0; j < BottomPanelContainer.Items.Count; j++)
                        {
                            if (((ctlPOD)BottomPanelContainer.Items[j]).OwnerPodIndex == objTabInfo.objaPods[i].intOwnerPodIndex && objPageInfo.strDropType != "OnBuddyClick")
                            {
                                break;
                            }
                        }
                        if (j == BottomPanelContainer.Items.Count)
                        {
                            ctlPOD objPod = null;
                            if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.BootStrap || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.SuperNode || VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithNetP2P)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[0], arrPermissionValue, false, "fromOtherPeer", BottomPanelContainer, true, objPageInfo);
                            }
                            else if (VMuktiAPI.VMuktiInfo.CurrentPeer.CurrPeerType == PeerType.NodeWithHttp)
                            {
                                objPod = new ctlPOD(objTabInfo.objaPods[i].intModuleId, objTabInfo.objaPods[i].strPodTitle, objModule.IsCollaborative, objTabInfo.objaPods[i].strUri[1], arrPermissionValue, false, "fromOtherPeer", BottomPanelContainer, true, objPageInfo);
                            }
                            objPod.OwnerPodIndex = objTabInfo.objaPods[i].intOwnerPodIndex;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "LoadMeetingGrid()", "Controls\\VmuktiGrid\\Grid\\CtlGrid.xaml.cs");
            }
        }