Example #1
0
        internal static void PasteObject()
        {
            MWin win = MWin.I;

            if (_data.GetType() == typeof(Color[]))
            {
                Color[] col = (Color[])_data;
                win.ActFrm[0].SetColors(col[0], col[1]);
            }
            else if (_data.GetType() == typeof(List <Model.Frame>))
            {
                win.ActCont.InsertFrames(GetInsertPosition(false), (List <Model.Frame>)_data);
                EditUtil.RefreshSeekBar();
            }
        }
Example #2
0
 public static void OpenFile(string path)
 {
     if (!string.IsNullOrEmpty(path))
     {
         Model.Document dc = ConvertXml <Model.Document>(path);
         if (dc == null)
         {
             return;
         }
         MWin.I.Doc      = dc;
         dc.OnChange    += MWin.I.Doc_OnChange;
         MWin.I.Doc.Path = path;
         dc.Clear();
         EditUtil.RefreshSeekBar();
         EditUtil.cn_WidthChanged(null, null);
         Logging.Log.Write("Открыт файл - " + path);
         MWin.I.Title = "LEDX редактор  " + path;
     }
 }
Example #3
0
 internal static void PasteBefore()
 {
     MWin.I.ActCont.InsertFrames(GetInsertPosition(true), (List <Model.Frame>)_data);
     EditUtil.RefreshSeekBar();
 }
Example #4
0
 public static void CutFrame()
 {
     CopyFrame();
     EditUtil.DelFrame();
 }