private void BtnPlanner_Click(object sender, RoutedEventArgs e) { var plannerWindow = new PlannerWindow { Owner = this }; plannerWindow.ShowDialog(); }
public static void Main(string[] args) { Application.Init (); App.Init (); foreach (object obj in ConfigurationSettings.AppSettings) Console.WriteLine (obj); PlannerWindow window = new PlannerWindow (); Application.Run (); }
public GearSetComparisonWindow(PlannerWindow opw) { InitializeComponent(); Owner = opw; OwnerPW = opw; //RightSV = (VisualTreeHelper.GetChild(lvRight, 0) as Decorator).Child as ScrollViewer; //LeftSV = (VisualTreeHelper.GetChild(lvLeft, 0) as Decorator).Child as ScrollViewer; }
private void EquipmentSlotControl_Loaded(object sender, RoutedEventArgs e) { DependencyObject dobj = Parent; while (!(dobj is PlannerWindow)) { if (dobj == null) { break; } dobj = VisualTreeHelper.GetParent(dobj); } if (dobj != null) { ParentWindow = dobj as PlannerWindow; ParentWindow.RegisterEquipmentSlot(this); } }