public DateTimeSymbolDrawable(DateTimeSymbol sym) : base(sym) { }
public DataTimePattern(string name, byte index) { Text = name; Length = index; Symbol = DateTimeSymbol.Argument; }
public SymbolInfo(DateTimeSymbol dataTimeSymbol, byte p) { Symbol = dataTimeSymbol; Times = p; }
public DataTimePattern(DateTimeSymbol symbol, byte length) { Symbol = symbol; Length = length; }
/// <summary> /// The "on click" event handler /// </summary> /// <param name="sender">The sender</param> /// <param name="e">The event arguments</param> private void onMouseClicked(object sender, MouseEventArgs e) { translate(e); if (movedSymbol == null) { movedSymbol = newSymbol; if (movedSymbol != null) { if (movedSymbol is DateTimeSymbol) { DateTimeSymbol dts = movedSymbol as DateTimeSymbol; dts.DateTime = dateTime.DateTime; } IDrawableSymbol ds = movedSymbol as IDrawableSymbol; wImage = ds.PureDrawable.SymbolImage.Width; hImage = ds.PureDrawable.SymbolImage.Height; control.Cursor = CURSOR_MOVE; oldX = imagePoint.X; oldY = imagePoint.Y; DrawCursor(); if (newCursor != null) { DrawCursor(newCursor, true, true); } } if (newRemoveCursor != null) { MathSymbol s = (MathSymbol)newRemoveCursor; if (s.Contains(newCursor)) { newCursor = null; oldCursor = null; } s.Remove(); newRemoveCursor = null; oldRemoveCursor = null; DrawFormulaOnComponent(); } } else { if (newCursor == null) { movedSymbol = null; DrawCursor(); newCursor = null; oldCursor = null; control.Cursor = CURSOR_EDIT; } else { if (newCursor is MathSymbol) { MathSymbol ds = newCursor as MathSymbol; newCursor = MathSymbolDrawable.InsertObject(ds, movedSymbol) as IInsertedObject; } else if (newCursor is MathFormulaDrawable) { MathFormulaDrawable mf = newCursor as MathFormulaDrawable; newCursor = mf.InsertObject(movedSymbol) as IInsertedObject; } //newCursor = newCursor.InsertObject(movedSymbol); movedSymbol = null; DrawCursor(); DrawFormulaOnComponent(); oldCursor = movedSymbol as IInsertedObject; control.Cursor = CURSOR_EDIT; } } }