Exemple #1
0
        private void RdMainDiagram_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                for (int i = 0; i <= RdMainDiagram.Items.Count - 1; i++)
                {
                    if (RdMainDiagram.Items[i].Tag == null)
                    {
                        RdMainDiagram.Items[i].Tag  = ++MaxTag;
                        RdMainDiagram.Items[i].Name = "Obj" + MaxTag;
                    }
                }


                Telerik.WinControls.UI.RadDiagram SelectedItem = (Telerik.WinControls.UI.RadDiagram)sender;
                if (SelectedItem.Items.Count > 0)
                {
                    Telerik.WinControls.UI.RadDiagramShape X = (Telerik.WinControls.UI.RadDiagramShape)SelectedItem.Items[0];
                    Telerik.WinControls.UI.RadDiagramShape SelectedObject = (Telerik.WinControls.UI.RadDiagramShape)SelectedItem.SelectedItem;

                    Form Frm = new Frm_ManageSubProcessItems();
                    Frm.Text = SelectedObject.Tag.ToString();
                    Frm.ShowDialog();
                }
            }
            catch
            {
            }
        }
Exemple #2
0
 private void RdMainDiagram_Click(object sender, EventArgs e)
 {
     try
     {
         Telerik.WinControls.UI.RadDiagram SelectedItem = (Telerik.WinControls.UI.RadDiagram)sender;
         if (SelectedItem.Items.Count > 0)
         {
             Telerik.WinControls.UI.RadDiagramShape X = (Telerik.WinControls.UI.RadDiagramShape)SelectedItem.Items[0];
             X.IsEditable = false;
         }
     }
     catch
     {
     }
 }