示例#1
0
 private void NewRoomDef_Click(object sender, EventArgs e)
 {
     if (DefTreeView.SelectedNode == null)
     {
         MessageBox.Show("Моля изберете етаж!");
         return;
     }
     if (DefTreeView.SelectedNode.Level != 1)
     {
         MessageBox.Show("Моля изберете етаж!");
         return;
     }
     DefRoom f = new DefRoom(this, refRoomDef, tempDef);
     f.Show();
 }
示例#2
0
 private void DefTreeView_BeforeLabelEdit(object sender, NodeLabelEditEventArgs e)
 {
     if (e.Node.Level != 2) return;
     DefRoom f = new DefRoom(this, typicalDefRoom, tempDef);
 }