示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var details = new ValgtEjendomsMæglerDetails(ViewModel, this);

            if (!panelContent.Controls.Contains(details))
            {
                panelContent.Controls.Add(details);
            }
            details.BringToFront();
            details.CreateMode();
        }
示例#2
0
        private void LWSearchResults_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            var details = new ValgtEjendomsMæglerDetails(ViewModel, this);

            if (!panelContent.Controls.Contains(details))
            {
                panelContent.Controls.Add(details);
            }
            details.BringToFront();
            var ejendomsmægler = ViewModel.FindEjendomsmægler();

            details.EditMode(ejendomsmægler);
        }