private void SetFocusInfo() { Selectlabels = (TypeLabels)videoplay.Labels.DynamicLabel.Clone(); staticlabel = (TypeLabels)videoplay.Labels.StaticLabel.Clone(); timeEdit_start.Time = DateTime.Parse(videoplay.StartTime); timeEdit_end.Time = DateTime.Parse(videoplay.EndTime); dateTimePicker1.Text = videoplay.RecordTime; GetLabels(); GetIntToString(); SetLabelText(); }
public virtual Type ToType(string label) { ImportNewAssemblies(); Type type = GetLabelType(label); if (type == null) { return(typeof(UnknownType)); } else { if (!TypeLabels.ContainsKey(label)) { ManageType(label, type); } return(TypeLabels[label]); } }