public Verbrauchansicht(Hauptfenster hauptfenster) : this() { Hauptfenster = hauptfenster; verbrauchsteuerung = hauptfenster.Steuerung.Verbrauchsteuerung; bestandsteuerung = hauptfenster.Steuerung.Verkaufsproduktsteuerung; abrechnungssteuerung = hauptfenster.Steuerung.Abrechnungssteuerung; abrechnungssteuerung.AbrechnungVerändert += Abrechnungssteuerung_AbrechnungVerändert; }
public Konfigurationsansicht(Hauptfenster hauptfenster) : this() { Hauptfenster = hauptfenster; abrechnungssteuerung = hauptfenster.Steuerung.Abrechnungssteuerung; // Rein technisch gesehen müssten wir auf AbrechnungVerändert hören, um die Felder aktuell zu halten, sowie die Liste der // Ausgansbestände zu aktualisieren. Aber eine Abrechnung kann nicht außerhalb dieses Fensters bearbeitet werden. // abrechnungssteuerung.AbrechnungVerändert += AbrechnungBearbeitet; }
/// <summary> /// Implement this method to implement the external application which should be called when /// Revit starts before a file or default template is actually loaded. /// Quelle: Revit 2017 SDK, Sample "Ribbon" /// </summary> /// <param name="application">An object that is passed to the external application /// which contains the controlled application.</param> /// <returns>Return the status of the external application. /// A result of Succeeded means that the external application successfully started. /// Cancelled can be used to signify that the user cancelled the external operation at /// some point. /// If Failed is returned then Revit should inform the user that the external application /// failed to load and the release the internal reference.</returns> public Autodesk.Revit.UI.Result OnStartup(UIControlledApplication application) { try { revitAppForm = null; // no dialog needed yet; the command will bring it thisApp = this; // static access to this application instance //TODO: Ribbon erstellen return(Autodesk.Revit.UI.Result.Succeeded); } catch (Exception ex) { TaskDialog.Show("Ribbon Sample", ex.ToString()); return(Autodesk.Revit.UI.Result.Failed); } }
public Abrechnungsfenster(Hauptfenster hauptfenster) : this() { Hauptfenster = hauptfenster; abrechnungssteuerung = hauptfenster.Steuerung.Abrechnungssteuerung; }
private void Abrechnungsfenster_FormClosing(object sender, FormClosingEventArgs e) { abrechnungssteuerung.AbrechnungVerändert -= Aktualisiere; Hauptfenster.Focus(); }