public void UpdateControls() { try { fController.UpdateTitle(); StatusLines[0] = string.Format(LangMan.LS(LSID.LSID_TreeIndividualsCount), fTreeBox.IndividualsCount); var imageSize = fTreeBox.GetImageSize(); StatusLines[1] = string.Format(LangMan.LS(LSID.LSID_ImageSize), imageSize.Width, imageSize.Height); tbPrev.Enabled = NavCanBackward(); tbNext.Enabled = NavCanForward(); AppHost.Instance.UpdateControls(false, true); } catch (Exception ex) { Logger.LogWrite("TreeChartWin.UpdateControls(): " + ex.Message); } }
public void UpdateControls() { try { fController.UpdateTitle(); UpdateModesMenu(); StatusLines[0] = string.Format(LangMan.LS(LSID.LSID_TreeIndividualsCount), fTreeBox.IndividualsCount); var imageSize = fTreeBox.GetImageSize(); StatusLines[1] = string.Format(LangMan.LS(LSID.LSID_ImageSize), imageSize.Width, imageSize.Height); StatusLines[2] = string.Format("{0}: {1:f0} %", LangMan.LS(LSID.LSID_Scale), fTreeBox.Scale * 100); tbPrev.Enabled = NavCanBackward(); tbNext.Enabled = NavCanForward(); AppHost.Instance.UpdateControls(false, true); } catch (Exception ex) { Logger.WriteError("TreeChartWin.UpdateControls()", ex); } }