public Mark(MarkId markId, SettingsMark settings) { Pos = settings.Pos; Size = settings.Size; PaintMark = settings.PaintMark.ToSKPaint(); MarkId = markId; }
/// <summary> /// Call DataCollection.CommentMarkAtProfile if PROFILE is enabled. /// </summary> /// <param name="markId">A marker to insert</param> internal static void CommentMarkProfile(MarkId markId) { #if PROFILE string markText = Enum.GetName(typeof(MarkId), (int)markId); // We ignore the return value because not all apps support profiling. DataCollection.CommentMarkProfile((int)markId, markText); #else // Do nothing unless PROFILE is enabled. #endif }
private void MarkAddForm_Load(object sender, EventArgs e) { cateDao = new CategoryDao(); typesDao = new TypesDao(); LoadTypes(); if (IsAdd) { cmbMarkCategory.Focus(); this.Text = "新增标记"; } else { UpdateMarkInfo(); txtMarkId.Text = MarkId.ToString(); this.Text = string.Format("修改标记"); } }