private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ViewModel vMdl = new ViewModel();
            todoviewMain.DataContext = vMdl;
            /*
            SqlConnection sqlConnection = new SqlConnection();
            sqlConnection.ConnectionString = "Addr=(local);Database=ToDoListDb;Trusted_Connection=sspi;User ID=Admin";
            sqlConnection.Open();

            sqlConnection.Close();
             * */
        }
示例#2
0
 public ReloadTasksCommandImplementation(ViewModel vMdl)
 {
     this.vMdl = vMdl;
 }
示例#3
0
 public AddNewCommandImplementation(ViewModel vMdl)
 {
     this.vMdl = vMdl;
 }
示例#4
0
 public UpdateCurrentCommandImplementation(ViewModel vMdl)
 {
     this.vMdl = vMdl;
 }
示例#5
0
 public AllowEditCurrentCommandImplementation(ViewModel vMdl)
 {
     this.vMdl = vMdl;
 }
示例#6
0
 public CommitChangesCommandImplementation(ViewModel vMdl)
 {
     this.vMdl = vMdl;
 }