private void TaskEvent(string path) { var reader = new StreamReader(path); string json = reader.ReadToEnd(); var tl = EditJson.ReadJsonFile <TLInfo <TimelineObject> >(json); OpeningProject.Timeline.AddObject(tl.Layer, tl.Frame, tl.TLObject); reader.Dispose(); }
public static bool ShowDialog(DialogType type, string title, string msg) { Waiting = true; var dialog = new DialogInfo(type, title, msg); EditJson.WriteJsonFile("MsgBox", dialog); while (Waiting) { ; } return(Result); }