コード例 #1
0
ファイル: TaskManager.cs プロジェクト: alexkasp/monitor
 public static void AddCommand(int rschId, string command, string commandParams = "", int startTime = 60)
 {
     var db = new SandBoxDataContext();
     try
     {
         if ((command != null && command != String.Empty))
         {
             Commands newCommand = new Commands()
             {
                 RschId = rschId,
                 Command = command,
                 CommandParams = commandParams,
                 CommandStartTime = startTime
             };
             db.Commands.InsertOnSubmit(newCommand);
             db.SubmitChanges();
         }
     }
     catch (Exception e)
     {
         //УБРАТЬ СЛЕПОЙ CATCH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     }
 }
コード例 #2
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void UpdateCommands(Commands instance);
コード例 #3
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void DeleteCommands(Commands instance);
コード例 #4
0
ファイル: SandBox.designer.cs プロジェクト: alexkasp/monitor
 partial void InsertCommands(Commands instance);