//CTOR
 public ConnectView()
 {
     InitializeComponent();
     IPTextBox.Text   = ConfigurationManager.AppSettings["IP"];
     PortTextBox.Text = ConfigurationManager.AppSettings["Port"];
     connectViewModel = new ConnectViewModel(new Model());
     DataContext      = connectViewModel;
 }
// creating the view model and biniding data.
        public void SetSingelMod(Model m)
        {
            connectViewModel = new ConnectViewModel(m);
            DataContext      = connectViewModel;
        }