public LinkedParameterEditor() { this.DataContext = this; InitializeComponent(); LPContextMenu = new ModelSystemContextMenu(); LPContextMenu.RenamePressed += new Action <string>(LPContextMenu_RenamePressed); LPContextMenu.RemovePressed += new Action(LPContextMenu_RemovePressed); }
public SelectModelSystemPage(SingleWindowGUI xtmf) { this.XTMF = xtmf; InitializeComponent(); this.MSContextMenu = new ModelSystemContextMenu(); this.MSContextMenu.RemovePressed += new Action(MSContextMenu_RemovePressed); this.MSContextMenu.RenamePressed += new Action <string>(MSContextMenu_RenamePressed); this.BaseAddButtonHeight = this.AddNewMSButton.Height; this.CancelIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Resources/112_ArrowReturnLeft_Blue_24x24_72.png")); this.RemoveIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Images/delete.png")); this.SelectBlue = (Color)Application.Current.Resources["SelectionBlue"]; this.WarningRed = (Color)Application.Current.Resources["WarningRed"]; }
public ProjectSettingsPage(SingleWindowGUI xtmfWindow) { InitializeComponent(); this.XTMF = xtmfWindow; this.MSContextMenu = new ModelSystemContextMenu(true); this.MSContextMenu.RenamePressed += new Action <string>(MSContextMenu_RenamePressed); this.MSContextMenu.RemovePressed += new Action(MSContextMenu_RemovePressed); this.MSContextMenu.SaveAsModelSystemPressed += new Action(MSContextMenu_SaveAsModelSystemPressed); this.Loaded += new RoutedEventHandler(ProjectSettingsPage_Loaded); this.CancelIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Resources/112_ArrowReturnLeft_Blue_24x24_72.png")); this.RemoveIcon = new BitmapImage(new Uri("pack://application:,,,/XTMF.Gui;component/Images/delete.png")); this.SelectBlue = (Color)Application.Current.Resources["SelectionBlue"]; this.WarningRed = (Color)Application.Current.Resources["WarningRed"]; }