private void Graph_SizeChanged(object sender, EventArgs e) { if (BaseGraph != null) { BaseGraph.SetNewSize(this.Width, this.Height); } }
public void Init(BrightnessGraph BaseGraph) { this.BaseGraph = BaseGraph; this.BaseGraph.RefreshGraph = Refresh; this.BaseGraph.Init(); BaseGraph.SetNewSize((int)Frame.Width, (int)Frame.Height); }
protected void OnGraphEventBoxSizeAllocated(object o, SizeAllocatedArgs args) { if (BaseGraph != null) { BaseGraph.SetNewSize(this.Allocation.Width, this.Allocation.Height); } }
public override void SetFrameSize(SizeF newSize) { base.SetFrameSize(newSize); BaseGraph.SetNewSize((int)newSize.Width, (int)newSize.Height); }