private void ControlSaveBlueprint_Click(object sender, RoutedEventArgs e) { SetFilePath(FileLocation.Text); FileLocation.Text = GetFolderFromPath(Storage.BlueprintRegistryItem.FilePath); Blueprint.Name = BlueprintName.Text; DesktopService.SaveBlueprint(); }
private void SetupButtonBar() { foreach (var(display, flag) in GetButtonBarList) { AddUnitTypeButtonToButtonBar(display, flag); } AddButtonToButtonBar("💾", "Save Blueprint", (sender, e) => { DesktopService.SaveBlueprint(); }); }
private void MenuItem_ClickSaveBlueprint(object sender, RoutedEventArgs e) { DesktopService.SaveBlueprint(); }