Пример #1
0
        private void ctEditVehicleMarkersAtlasPathTemplate_Click(object _, RoutedEventArgs __)
        {
            var value = PathTemplateWindow.Show(this, VehicleMarkersAtlasPathTemplate, _context, _style, SaveType.VehicleMarkerAtlas);

            if (value == null)
            {
                return;
            }
            VehicleMarkersAtlasPathTemplate    = value;
            VehicleMarkersAtlasBulkSaveEnabled = true;
        }
Пример #2
0
        private void ctEditCustomAtlasPathTemplate_Click(object sender, RoutedEventArgs e)
        {
            var value = PathTemplateWindow.Show(this, CustomAtlasPathTemplate, _context, _style, SaveType.CustomAtlas);

            if (value == null)
            {
                return;
            }
            CustomAtlasPathTemplate    = value;
            CustomAtlasBulkSaveEnabled = true;
        }
Пример #3
0
        private void ctEditBattleAtlasPathTemplate_Click(object _, RoutedEventArgs __)
        {
            var value = PathTemplateWindow.Show(this, BattleAtlasPathTemplate, _context, _style, SaveType.BattleAtlas);

            if (value == null)
            {
                return;
            }
            BattleAtlasPathTemplate    = value;
            BattleAtlasBulkSaveEnabled = true;
        }
        public static string Show(Window owner, string value, WotContext context, Style style, SaveType saveType)
        {
            var wnd = new PathTemplateWindow(value, context, style, saveType)
            {
                Owner = owner
            };

            if (wnd.ShowDialog() != true)
            {
                return(null);
            }

            return(wnd.ctValue.Text);
        }