public SHOW( SelectionWell selectionWell, KeyValuePair <string, decimal>[] summs, ValueWork[] Values) { this.SelectionWell = selectionWell; this.client = AllClients.ClientAtWell(ID); this.summs = summs; this.Values = Values; result = new Dictionary <string, string>(); result.Add(ThisColumn.Number, Number); result.Add(ThisColumn.Company, Company); result.Add(ThisColumn.Status, Status); result.Add(ThisColumn.DateTime, DateTime); }
private void DeclairWell_Click(object sender, RoutedEventArgs e) { List <C_ColumnFromSearth> columns = new List <C_ColumnFromSearth> { new C_ColumnFromSearth(C.DeclarationValue.Declaration, C.Declaration.Well, C.Well.Object, C.Objecte.Client, C.Client.INN), new C_ColumnFromSearth(C.DeclarationValue.Declaration, (obj, id) => { return(AllClients.ClientAtWell(id).Detail.FullName); }), new C_ColumnFromSearth(C.DeclarationValue.Declaration, C.Declaration.Well, C.Well.Object, C.Objecte.AdresFact), new C_ColumnFromSearth(C.DeclarationValue.Declaration, C.Declaration.Well, C.Well.TypeWell, C.TypeWell.CurtName), new C_ColumnFromSearth(C.DeclarationValue.Declaration, C.Declaration.Well, C.Well.Number), new C_ColumnFromSearth(C.DeclarationValue.Declaration, (obj, ID) => { return(MyTools.YearMonth_From_YM(obj.TryParseInt())); }, C.Declaration.YM), new C_ColumnFromSearth(C.DeclarationValue.Pollution), new C_ColumnFromSearth(C.DeclarationValue.From), new C_ColumnFromSearth(C.DeclarationValue.To) }; SG = new SearchGrid_Window(G.DeclarationValue, new C_ColumnGetID(C.DeclarationValue.Declaration, C.Declaration.Well), columns, new C_SettingSearchDataGrid(true, true, false, AdderButton: false), true); SG.ShowDialog(); }