示例#1
0
        private void NewOdometerCommand_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            OdometerSettings panelSettings = new OdometerSettings();
            OdometerDlg      dlgWindow     = new OdometerDlg(panelSettings);

            InitiateNewGaugeDlg(dlgWindow, panelSettings);
        }
示例#2
0
 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;
 }
示例#3
0
 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();
 }