コード例 #1
0
        private void Send_Data()
        {
            try
            {
                if (this.MainTreeView.SelectedItem != null)
                {
                    TreeViewItem TR = (TreeViewItem)this.MainTreeView.SelectedItem;
                    // Get an object by GUID
                    Guid G = new Guid(TR.Tag.ToString());

                    EMO = emg.EntityObjects.GetObject <EnterpriseManagementObject>(G, ObjectQueryOptions.Default);
                    SelectTreeViewObjectHandlerClass.EventHandler(true, EMO, mpClass);
                }
                this.Close();
            }
            catch (Exception exc)
            {
                Trace.WriteLine(DateTime.Now + " : " + "Error in TreeViewForm Send_data " + exc.Message);
            }
        }
コード例 #2
0
 private void lbCancel_MouseDown(object sender, MouseButtonEventArgs e)
 {
     SelectTreeViewObjectHandlerClass.EventHandler(false, EMO, mpClass);
     this.Close();
 }