public void Edit(SqliteObject sqliteObject) { _currentObject = sqliteObject; InputValuesWindow window = new InputValuesWindow(sqliteObject.GetAsInputItem(_isNew), WindowSize.Large, Orientation.Vertical, 2); window.InputFinished += OnInputFinished; window.Show(); }
private void NewAccountClick(object sender, RoutedEventArgs e) { if (AccountOwner == null) { return; } List <InputValuesControl.InputItem> items = new List <InputValuesControl.InputItem> { new InputValuesControl.InputItem("Numero", typeof(string)) { Label = "CCC: ", Required = true } }; InputValuesWindow window = new InputValuesWindow(items, WindowSize.Small, Orientation.Horizontal, 1); window.InputFinished += OnInputAccountFinished; window.Show(); }