Ejemplo n.º 1
0
        /// <summary>
        /// called when the user changes the value of the combo box
        /// </summary>
        private void SelectedIndexChanged(object sender, EventArgs e)
        {
            var val = cb_info.SelectedValue.ToString();

            if (val.Equals(FileTag.LastTag) || val.Equals(FileTag.DefaultTag))
            {
                _locFileTagObject = FileTag.GetFileTags(val, "");
            }
            else
            {
                _locFileTagObject = FileTag.GetFileTags(_filename, val);
                FileTag.SetFileTags(_filename, _locFileTagObject.CorrectionNumber, _locFileTagObject.CorrectionDate, _locFileTagObject.CorrectionDecription, _locFileTagObject.ApplicationName, _locFileTagObject.ApplicationVersion, _locFileTagObject.WorkPackage, _locFileTagObject.BugId);
            }
            UpdateView();
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Save the info
 /// </summary>
 /// <param name="filename"></param>
 private void Save(string filename)
 {
     UpdateModel();
     FileTag.SetFileTags(filename, _locFileTagObject.CorrectionNumber, _locFileTagObject.CorrectionDate, _locFileTagObject.CorrectionDecription, _locFileTagObject.ApplicationName, _locFileTagObject.ApplicationVersion, _locFileTagObject.WorkPackage, _locFileTagObject.BugId);
 }