コード例 #1
0
 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();
 }
コード例 #2
0
        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]);
            }
        }