public PartOutStock(PartView partView) { this.partView = partView; InitializeComponent(); InitialPartOutValue(); }
/// <summary> /// part out stock /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void PartOutBtn_Click(object sender, RoutedEventArgs e) { PartView pv = PartStorageDG.SelectedItem as PartView; if (pv != null && !string.IsNullOrEmpty(pv.PositionNR)) { (new PartOutStock(pv)).ShowDialog(); } }
public static void Start() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); mainForm = new MainForm(); carView = new CarView(); partView = new PartView(); serviceView = new ServiceView(); Application.Run(mainForm); }
/// <summary> /// 创建缺省试图 /// </summary> /// <returns></returns> private List <PartView> viewInit() { views.Clear(); PartView view = new PartView(this); view.SerinalNo = 1; view.Height.Type = LengthType.Percent; view.Height.Value = 60; views.Add(view); view = new PartView(this); view.SerinalNo = 2; view.Height.Type = LengthType.Percent; view.Height.Value = 40; views.Add(view); return(views); }
private void createPart(string id, int type, PartAction partData) { PartView result = this._gameObjects[type]; if (result == null) { result = new PartView((ClientRunTime)this._playerEntity.map); } if (result.id == id && result.partData == partData) { return; } result.init(id, type, partData, this._transform, this._playerEntity, ((Player)this._playerEntity.view).mainScale); this._gameObjects[type] = result; if (4 == type && null == this._avatarAnimator) { this._avatarAnimator = result.gameObject.transform.FindChild("go").GetComponent <Animator>(); } }
public async Task LoadPartList() { IsBusy = true; PartStoreDto parts = await PartService.GetParts(); foreach (PartPositionDto part in parts.Positions) { foreach (MaterialPositionDto material in part.MaterialPositions) { foreach (ColorPositionDto color in material.ColorPositions) { PartView view = new PartView(part, material, color); PartListScroll.Children.Add(view); } } } IsBusy = false; }
private void GroupBox_Loaded(object sender, RoutedEventArgs e) { GroupBox gb = (GroupBox)sender; PanelPartEmbedded pp = (PanelPartEmbedded)gb.DataContext; PartView pv = DashboardClient.PartViews.GetOrThrow(pp.Content.GetType()); if (pv.OnTitleClick != null && (pv.IsTitleEnabled == null || pv.IsTitleEnabled())) { TextBlock tb = (TextBlock)gb.FindName("tb"); tb.Cursor = Cursors.Hand; tb.MouseDown += TextBlock_MouseUp; } Button button = (Button)gb.FindName("navigate"); if (pv.FullScreen == null) { button.Visibility = System.Windows.Visibility.Collapsed; } else { button.Click += fullScreen_Click; } }
private void OpenPartView(object obj) { var view = new PartView(); SelectedView = view; }