Beispiel #1
0
        public void SetModeAmendments(List <string> primaryKeys_in)
        {
            if (primaryKeys_in.Count < 1)
            {
                return;
            }

            amendmentPrimaryKeys = primaryKeys_in;

            myAmendments = new DataTable();
            myAmendments.Columns.Add("column_name");
            myAmendments.Columns.Add("new_value");


            for (int i = 0; i < primaryKeys_in.Count; i++)
            {
                string s = primaryKeys_in[i];
                myAmendments.Columns.Add("column" + i.ToString());
                myAmendments.Columns.Add("value" + i.ToString());
            }


            userEditMode      = UserEditMode.SaveAmendmentEvent;
            this.ReadOnly     = false;
            this.CanSaveFiles = true;
        }
Beispiel #2
0
 public void SetModeReadonly()
 {
     amendmentPrimaryKeys = new List <string> {
     };
     userEditMode         = UserEditMode.ReadOnly;
     this.ReadOnly        = true;
     this.CanSaveFiles    = false;
 }
Beispiel #3
0
 public void SetModeSaveEvent()
 {
     amendmentPrimaryKeys = new List <string> {
     };
     userEditMode         = UserEditMode.SaveToFileEvent;
     this.ReadOnly        = false;
     this.CanSaveFiles    = true;
 }