private string zedGraphBytesInOut_PointValueEvent(ZedGraphControl sender, GraphPane pane, CurveItem curve, int iPt) { PointPair pt = curve[iPt]; DateTime date = DateTime.FromOADate(pt.X); return(String.Format("[{0:yyyy-MMM-dd} --> {1}]", date, IndihiangHelper.BytesFormat((long)pt.Y))); }
private void PopulateGeneral() { lbBytesSent.Text = IndihiangHelper.BytesFormat(_totalBytesSent); lbBytesReceived.Text = IndihiangHelper.BytesFormat(_totalBytesReceived); lbTotal.Text = IndihiangHelper.BytesFormat(_totalBytesSent + _totalBytesReceived); }