Beispiel #1
0
        public FrmProperty(Object ob)
        {
            self = this;
            InitializeComponent();
            propertyGrid1.SelectedObject = ob;
            this.Disposed += new EventHandler(FrmProperty_Disposed);

            LeCanvas.SelectedShapeChanged += new LeCanvas.SelectedShapeChangedHandler(LeCanvas_SelectedShapeChanged);
        }
Beispiel #2
0
 private void menuProp_Click(object sender, EventArgs e)
 {
     if (menuProp.Checked == true)
     {
         propWnd.Hide();
         menuProp.Checked = false;
     }
     else
     {
         if (propWnd == null)
         {
             propWnd = new FrmProperty(null);
         }
         propWnd.Show();
         menuProp.Checked = true;
     }
 }
Beispiel #3
0
 internal void ClearPropertySelected()
 {
     menuProp.Checked = false;
     propWnd          = null;
 }