Beispiel #1
0
        protected override void OnContentRendered(EventArgs e)
        {
            base.OnContentRendered(e);

            if (_shown)
                return;

            _shown = true;

            string s = Core.Settings.Default.MainWindowWindowFeature;
            if (!string.IsNullOrEmpty(s))
            {
                string[] parts = s.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
                foreach (string p in parts)
                {
                    Type t = Type.GetType(p);
                    if (t != null)
                    {
                        ConstructorInfo constructor = t.GetConstructor(Type.EmptyTypes);
                        UserControl uc = (UserControl)constructor.Invoke(Type.EmptyTypes);
                        FeatureWindow w = new FeatureWindow(uc);
                        w.Owner = this;
                        w.Show();
                    }
                }
            }
        }
Beispiel #2
0
 private void MenuItem_Click_1(object sender, RoutedEventArgs e)
 {
     Window w = new FeatureWindow(new UIControls.GeocacheViewer());
     w.Owner = this;
     w.Show();
 }
Beispiel #3
0
 private void MenuItem_Click_10(object sender, RoutedEventArgs e)
 {
     Window w = new FeatureWindow(new UIControls.ApplicationDataInfo());
     w.Owner = this;
     w.Show();
 }
Beispiel #4
0
 private void MenuItem_Click(object sender, RoutedEventArgs e)
 {
     Window w = new FeatureWindow(new UIControls.CacheList());
     w.Owner = this;
     w.Show();
 }