Exemple #1
0
        /// <summary>
        /// Read all required data for deserialization from an IO archive.
        /// </summary>
        /// <param name="reader">Object to read with.</param>
        /// <returns>
        /// True on success, false on failure.
        /// </returns>
        public override bool Read(GH_IO.Serialization.GH_IReader reader)
        {
            int clickVal = -1;

            if (reader.TryGetInt32("ClickMode", ref clickVal))
            {
                clickMode = (ClickableShapeGrid.ClickMode)clickVal;
            }
            UpdateMessage();
            return(base.Read(reader));
        }
Exemple #2
0
 private void NoneClicked(object sender, EventArgs e)
 {
     clickMode = ClickableShapeGrid.ClickMode.None;
     UpdateMessage();
     ExpireSolution(true);
 }