コード例 #1
0
        public static ActionsModule CreateFromProject(string projectFile, string outputFile, LightningDevelopmentHandle lightningDevelopmentHandle)
        {
            var engine = new Microsoft.Build.Evaluation.Project(projectFile);
            engine.Build();

            return CreateFromDll(outputFile, lightningDevelopmentHandle);
        }
コード例 #2
0
 public void Initialize(LightningDevelopmentHandle handle)
 {
     var t = new Thread(new ThreadStart(delegate
     {
         while (true)
         {
             try
             {
                 fetchVSState();
             }
             catch (Exception ex)
             {
                 File.AppendAllText("log.txt", ex.ToString());
             }
             Thread.Sleep(200);
         }
     }));
     t.IsBackground = true;
     t.Name = "FetchVSState";
     t.Start();
 }
コード例 #3
0
        public MainWindow()
        {
            InitializeComponent();

            textBox1.KeyDown += new KeyEventHandler(textBox1_KeyDown);

            Loaded += new RoutedEventHandler(MainWindow_Loaded);
            KeyDown += new KeyEventHandler(MainWindow_KeyDown);
            Deactivated += new EventHandler(MainWindow_Deactivated);

            WindowStartupLocation = System.Windows.WindowStartupLocation.CenterScreen;
            this.WindowStyle = System.Windows.WindowStyle.None;
            ShowInTaskbar = false;
            Topmost = true;
            ResizeMode = System.Windows.ResizeMode.NoResize;

            executeSafe(() =>
                {
                    //actionsModule = ActionsModule.CreateFromProject("..\\src\\Modules\\Modules.csproj", AppDomain.CurrentDomain.BaseDirectory + "\\Modules.dll");
                    actionsModule = new CompositeActionsModule();
                    var lightningDevelopmentHandle = new LightningDevelopmentHandle(/*actionsModule*/);
                    actionsModule.Submodules.Add(ActionsModule.CreateFromDll(Configuration.Get.ModulesDllPath, lightningDevelopmentHandle));
                });
        }
コード例 #4
0
 public void Initialize(LightningDevelopmentHandle handle)
 {
 }
コード例 #5
0
 public void Initialize(LightningDevelopmentHandle handle)
 {
     watcher.Init();
 }
コード例 #6
0
 public static ActionsModule CreateFromDll(string dll, LightningDevelopmentHandle lightningDevelopmentHandle)
 {
     var ret = new ActionsModule(lightningDevelopmentHandle);
     ret.loadAssembly(Assembly.LoadFrom(dll));
     return ret;
 }
コード例 #7
0
 public ActionsModule(LightningDevelopmentHandle lightningDevelopmentHandle)
 {
     handle = lightningDevelopmentHandle;
 }
コード例 #8
0
 public void Initialize(LightningDevelopmentHandle handle)
 {
     CorePlugin.WorkingDirectory.Changed += updateGitBasedir;
     // TODO: detect and log git repository locations
 }