public Toolbox(IconSet icons) { this.defaultItemSize = new Size(GRIDITEM_WIDTH, GRIDITEM_HEIGHT); this.Width = 156; GridView gv = new GridView(); GridViewColumn gvc = new GridViewColumn(); this.icons = icons; gvc.Header = icons; }
/* ----------------------------- Konstruktor ------------------------------------ */ public Product(long id, string name, Point3D pos, Point3D nextPos, IconSet icons) { this.id = id; this.name = name; this.position = pos; this.nextPosition = nextPos; this.model = icons.getProductModel(name); this.color = icons.getProductColor(name); }
public GridItem3D(int ClassId, String dir, Point3D pos, IconSet icons) { this.classId = ClassId; this.isSet = false; this.width = 1; this.length = 1; this.position = pos; LoadObj(icons); SetDirectionByString(dir); this.isSelected = false; }
public GridModel(double height, double width, IconSet icons) { this.Model = new Model3DGroup(); this.icons = icons; this.width = width; this.height = height; this.modelList = new List<GridItem3D>(); this.productList = new List<Product>(); this.selectedItems = new List<GridItem3D>(); UpdateModel(); }
public MainWindow() { InitializeComponent(); ConsoleManager.Show(); LoginPanel.IsOpen = true; ScriptingPanel.IsOpen = false; this.Focusable = false; // ein vordefiniertes IconSet Plugin in "Client/Plugins/iconsets/" (TODO: plugins wie zwischen Clients verteilen?) defaultPlugin = "machines"; icons = new IconSet(defaultPlugin); createToolbox(); }
public MainWindow() { InitializeComponent(); //ConsoleManager.Show(); icons = LoadIconSet(); this.Focusable = false; Width.Text = lines.Length.ToString(); Height.Text = lines.Width.ToString(); grid = new GridModel(lines.Width, lines.Length, icons); Loaded += new RoutedEventHandler(OnGridLoaded); SimulationSpeedTextBox.Text = "" + 3; ConsumerEmptyTextBox.Text = "" + 0; DataContext = grid; view.ClipToBounds = false; CreateToolbox(); Hide3DGrid(); optionWindow = new OptionsWindow(); optionWindow.configEvent += new EventHandler(optionWindow_configEvent); pluginWindow = new PluginWindow(); pluginWindow.InitializeComboBox(icons.GetAvailablePlugins()); pluginWindow.pluginEvent += new EventHandler(pluginWindow_pluginEvent); chatWindow = new ChatWindow(); csu = ClientServerUtil.getInstance(); csu.ClientServerEvent += new ClientServerEventHandler(csu_clientServerEvent); FactoryControll.IsEnabled = false; LoggedInControll.IsEnabled = false; }
public static Toolbox builtToolbox(IconSet ics) { return null; }
private void LoadObj(IconSet icons) { this.model = icons.getObj(classId); }
public static Toolbox builtToolbox(IconSet ics) { return(null); }
/* Plugin laden und ein Bild zur Toolbox hinzufügen */ private void loadIcon(IconSet ics, int classid) { Image img = ics.getImage(classid); ToolboxItem tbi = new ToolboxItem(); toolboxITEMS.Add(tbi); tbi.Content = img; tbi.ClassId = classid; this.toolbox.Items.Add(tbi); }
void pluginWindow_pluginEvent(object sender, EventArgs e) { Client.PluginWindow.PluginEvent plugins = (Client.PluginWindow.PluginEvent)e; if (plugins.value == PluginWindow.APPLY) { IconSet.WriteFolderName(pluginWindow.SelectedPlugin); icons = LoadIconSet(); pluginWindow.Visibility = Visibility.Hidden; ShowPopUp("IconSet gewechselt, Änderung beim nächsten Programmstart aktiv!"); } else if (plugins.value == PluginWindow.CANCEL) { pluginWindow.Visibility = Visibility.Hidden; } else if (plugins.value == PluginWindow.INFO) { PluginInfoWindow piw = new PluginInfoWindow(); piw.Show(); } }