private void NewOdometerCommand_Executed(object sender, ExecutedRoutedEventArgs e) { OdometerSettings panelSettings = new OdometerSettings(); OdometerDlg dlgWindow = new OdometerDlg(panelSettings); InitiateNewGaugeDlg(dlgWindow, panelSettings); }
public OdometerManager(OdometerSettings odometerSettings) : base() { this.odometerSettings = odometerSettings; odometerReader = new OdometerReader(odometerSettings.fileName); startDistance = odometerReader.Contents.StartMiles; startFuel = odometerReader.Contents.StartGallons; startHours = odometerReader.Contents.StartHours; currentDistance = startDistance; currentFuel = startFuel; currentHours = startHours; }
public OdometerPanel(MainWindow mainWindow, OdometerSettings panelSettings) : base(mainWindow, panelSettings) { this.panelSettings = panelSettings; }
protected override void Init(PanelSettings panelSettings) { this.panelSettings = (OdometerSettings)panelSettings; }
public OdometerDlg(OdometerSettings panelSettings) : base(panelSettings) { InitializeComponent(); ApplyBindings(); }