Пример #1
0
        public static SLR_PaneViewModel CreateNewSlrPane(string paneTitle,
                                                         string paneConfiguration, string reportText,
                                                         bool ckbLandUseChecked, bool ckbParcelChecked, bool ckbStreetChecked,
                                                         IList <KeyValueWithTooltip> luKv,
                                                         IList <KeyValueWithTooltip> pKv,
                                                         IList <KeyValueWithTooltip> sKv)
        {
            var slrPaneViewModule = SLR_PaneViewModel.Create();

            if (slrPaneViewModule != null)
            {
                slrPaneViewModule.PaneTitle         = paneTitle;
                slrPaneViewModule.PaneConfiguration = paneConfiguration;
                slrPaneViewModule.UpdateLandUse(luKv);
                slrPaneViewModule.UpdateParcel(pKv);
                slrPaneViewModule.UpdateStreet(sKv);
                slrPaneViewModule.CkbLandUseChecked = ckbLandUseChecked;
                slrPaneViewModule.CkbParcelChecked  = ckbParcelChecked;
                slrPaneViewModule.CkbStreetChecked  = ckbStreetChecked;
                slrPaneViewModule.ReportText        = reportText;
                slrPaneViewModule.UpdateVisibility();
            }
            return(slrPaneViewModule);
        }
 protected override void OnClick()
 {
     SLR_PaneViewModel.Create();
 }