public CircuitManager() { this.circuit = new Circuit(); this.steps = new List<Step>(); indexNextRedo = 0; }
public MainForm() { InitializeComponent(); this.panelCanvas.MouseWheel += new MouseEventHandler(panelCanvas_MouseWheel); circuit = new Circuit(); initializeTimer(); initializeTreeView(); initializeCircuitManager(); initializeCanvas(); refresh(); }
public Viewport(Circuit circuit, int width, int height) { this.circuit = circuit; this.location = new Point(0, 0); this.pixelWidth = width; this.pixelHeight = height; this.zoomingLevel = 1; }
public Action(Circuit circuit, ActionType actionType, Item item) { this.circuit = circuit; this.actionType = actionType; this.obj = item; }
public CircuitManager(Circuit circuit) { this.circuit = circuit; this.steps = new List<Step>(); indexNextRedo = 0; }
public Viewport(Circuit circuit) { this.circuit = circuit; this.location = new Point(0, 0); this.zoomingLevel = 1; }
/// <summary> /// Set the circuit that the viewport is assigned to /// </summary> /// <param name="circuit"></param> public void SetCircuit(Circuit circuit) { this.circuit = circuit; }
public Action(Circuit circuit, ActionType actionType, object obj) { this.circuit = circuit; this.actionType = actionType; this.obj = obj; }
/// <summary> /// Load a circuit from a filestream /// </summary> /// <param name="fileStream">Filestream with saved circuit</param> public void LoadFromFile(FileStream fileStream) { BinaryFormatter bFormatter = new BinaryFormatter(); this.circuit = (Circuit)bFormatter.Deserialize(fileStream); this.circuit.Initialize(); }
public Canvas(Panel canvas, Circuit circuit) { this.canvas = canvas; this.itemDrawings = new List<ItemDrawing>(); viewport = new Viewport(circuit, 100, 100); }