private void menuAddPropertyLabel_Click(object sender, RoutedEventArgs e) { AddControl addControl = new AddControl(); AddControlPropertyLabel csi = new AddControlPropertyLabel(gCurrentScreen); addControl.Width = csi.Width + 80; addControl.Height = csi.Height + 80; addControl.Content = csi; addControl.Show(); }
private void Property_Label_MouseRightButtonDown(object sender, MouseEventArgs e) { if (editMode == false) { return; } PropertyLabel propLabel = (PropertyLabel)sender; AddControl addControl = new AddControl(); AddControlPropertyLabel cmi = new AddControlPropertyLabel(gCurrentScreen, propLabel.screenObject.Name); addControl.Content = cmi; addControl.Width = cmi.Width + 80; addControl.Height = cmi.Height + 80; addControl.Owner = this; addControl.ShowDialog(); Load_Screen(gCurrentScreen); }