コード例 #1
0
 public string[] svcStartAService(VMuktiAPI.PeerType PeerType, string ModuleName)
 {
     if (EntsvcStartAService != null)
     {
         return(EntsvcStartAService(PeerType, ModuleName));
     }
     else
     {
         return(null);
     }
 }
コード例 #2
0
        public ctlQA(VMuktiAPI.PeerType bindingtype, string uri, ModulePermissions[] MyPermissions, string Role)
        {
            InitializeComponent();
            try
            {
                strRole = Role;
                //objDelDisplayName = new DelDisplayName(FncDisplayName);
                objDelAskQuestion   = new DelAskQuestion(FncDelAskQuestion);
                objDelReplyQuestion = new DelReplyQuestion(FncDelReplyAnswer);
                if (Role == "Host")
                {
                    lstQuestionGuest.Visibility = Visibility.Collapsed;
                    lblQueation.Content         = "Questions To Answer";
                    lbltype.Content             = "Answer:";
                }
                else if (Role == "Guest")
                {
                    lstQuestionHost.Visibility = Visibility.Collapsed;
                    lblQueation.Content        = "Asked Questions";
                    lbltype.Content            = "Question:";
                }

                ThrHostQA = new System.Threading.Thread(new System.Threading.ParameterizedThreadStart(fncHostQAService));
                List <object> lstParams = new List <object>();
                lstParams.Add(bindingtype);
                lstParams.Add(uri);
                lstParams.Add(MyPermissions);
                ThrHostQA.Start(lstParams);

                txtQuestion.KeyDown += new KeyEventHandler(txtQuestion_KeyDown);
                btnSay.Click        += new RoutedEventHandler(btnSay_Click);

                //if (bindingtype.ToString() == "Http")
                //{
                //    VMuktiAPI.PeerType = bindingtype;
                //}

                //VMukti.Global.VMuktiGlobal.strBootStrapIPs[0] = "192.168.0.107";
                //VMukti.Global.VMuktiGlobal.strSuperNodeIP = "192.168.0.107";
                //VMuktiAPI = Environment.MachineName;

                //ListBoxItem lstItem = null;
                //lstItem = new ListBoxItem();
                //lstItem.Content = "ADIANCE07";
                //lstTemp.Items.Add(lstItem);

                //ListBoxItem lstItem1 = null;
                //lstItem1 = new ListBoxItem();
                //lstItem1.Content = "ADIANCE09";
                //lstTemp.Items.Add(lstItem1);

                //ListBoxItem lstItem2 = null;
                //lstItem2 = new ListBoxItem();
                //lstItem2.Content = "ADIANCE";
                //lstTemp.Items.Add(lstItem2);



                //lstItem.AllowDrop=true;
                CnvMainFirst.AllowDrop = true;
                //lstItem.PreviewMouseDown += new MouseButtonEventHandler(lstItem_PreviewMouseDown);
                CnvMainFirst.PreviewDrop += new DragEventHandler(CnvMainFirst_PreviewDrop);
            }
            catch (Exception exp)
            {
                MessageBox.Show("ctlQA" + exp.Message);
            }
        }
コード例 #3
0
 public clsNodeInfo(string UName, VMuktiAPI.PeerType objBindType)
 {
     uname     = UName;
     nodeBType = objBindType;
 }
コード例 #4
0
 public clsNodeInfo(string UName, VMuktiAPI.PeerType objBindType)
 {
     uname = UName;
     nodeBType = objBindType;
 }