public ServerProperty(string id)
        {
            this.serverId   = id;
            this.serverItem = ListenServerData.GetServerItem(serverId);
            this.dataSource = new DataSource(serverItem);

            InitializeComponent();
        }
Example #2
0
        private void listView_SelectionChanged(object sender, MouseButtonEventArgs e)
        {
            var id = GetSelectedItemID();

            if (string.IsNullOrEmpty(id))
            {
                return;
            }
            var serverItem    = ListenServerData.GetServerItem(id);
            var serverManager = new ServerManager(serverItem);

            serverManager.Closed += delegate {
                this.Show();
            };
            serverManager.Owner = this;
            serverManager.Show();
            this.Hide();
        }