Esempio n. 1
0
 public EpgCmdParam(EpgCmdParam data)
 {
     if (data == null) return;
     SourceType = data.SourceType;
     Code = data.Code;
     ID = data.ID;
     Data = data.Data;
 }
Esempio n. 2
0
 public EpgCmdParam(EpgCmdParam data)
 {
     if (data == null)
     {
         return;
     }
     SourceType = data.SourceType;
     Code       = data.Code;
     ID         = data.ID;
     Data       = data.Data;
 }
Esempio n. 3
0
 public static bool?AutoAddViewOrderCheckAndSave(AutoAddListView view, out Dictionary <ulong, ulong> changeIDTable)
 {
     changeIDTable = null;
     try
     {
         if (view == null || view.IsVisible == false || view.dragMover.NotSaved == false)
         {
             return(false);
         }
         //
         var cmdPrm = new EpgCmdParam(null);
         EpgCmds.SaveOrder.Execute(cmdPrm, view);
         changeIDTable = cmdPrm.Data as Dictionary <ulong, ulong>;
         return(true);
     }
     catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
     return(null);
 }
Esempio n. 4
0
 public bool? AutoAddViewOrderCheckAndSave(AutoAddListView view, out Dictionary<uint, uint> changeIDTable)
 {
     changeIDTable = null;
     try
     {
         if (view == null || view.IsVisible == false || view.dragMover.NotSaved == false) return false;
         //
         var cmdPrm = new EpgCmdParam(null);
         EpgCmds.SaveOrder.Execute(cmdPrm, view);
         changeIDTable = cmdPrm.Data as Dictionary<uint, uint>;
         return true;
     }
     catch (Exception ex) { MessageBox.Show(ex.Message + "\r\n" + ex.StackTrace); }
     return null;
 }