示例#1
0
        private void AddButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            LLApplication newApp = new LLApplication()
            {
                Arguments = "", DelaySeconds = 0, FullPath = "", Name = "", Enabled = true
            };

            config.DefaultProfile.Applications.Add(newApp);
            AppViewModel appVM = new AppViewModel()
            {
                App = newApp
            };

            appsListVM.Applications.Add(appVM);
            config.IsDirty = true;
        }
示例#2
0
 private void EditButton_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     VisualStateManager.GoToState(this, "EditingMode", true);
     tempApp = new LLApplication(((AppViewModel)DataContext).App);
 }