text:
package kafka

import java.io.File
import java.nio.file.Files
import java.util

import kafka.server.KafkaConfig
import kafka.utils.Exit
import org.apache.kafka.common.config.types.Password
import org.apache.kafka.common.internals.FatalExitError
import org.junit.{After, Before, Test}
import org.junit.Assert._

class KafkaTest {

  @Before
  def setUp(): Unit = Exit.setExitProcedure((status, _) => throw new FatalExitError(status))

  @After
  def tearDown(): Unit = Exit.resetExitProcedure()

  @Test
  def testGetKafkaConfigFromArgs(): Unit = {
    val propertiesFile = prepareDefaultConfig()

    // We should load configuration file without any arguments
    val config1 = KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile)))
    assertEquals(1, config1.brokerId)

    // We should be able to override given property on command line
    val config2 = KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile, "--override", "broker.id=2")))
    assertEquals(2, config2.brokerId)

    // We should be also able to set completely new property
    val config3 = KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile, "--override", "log.cleanup.policy=compact")))
    assertEquals(1, config3.brokerId)
    assertEquals(util.Arrays.asList("compact"), config3.logCleanupPolicy)

    // We should be also able to set several properties
    val config4 = KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile, "--override", "log.cleanup.policy=compact,delete", "--override", "broker.id=2")))
    assertEquals(2, config4.brokerId)
    assertEquals(util.Arrays.asList("compact","delete"), config4.logCleanupPolicy)
  }

  @Test(expected = classOf[FatalExitError])
  def testGetKafkaConfigFromArgsNonArgsAtTheEnd(): Unit = {
    val propertiesFile = prepareDefaultConfig()
    KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile, "--override", "broker.id=1", "broker.id=2")))
  }

  @Test(expected = classOf[FatalExitError])
  def testGetKafkaConfigFromArgsNonArgsOnly(): Unit = {
    val propertiesFile = prepareDefaultConfig()
    KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile, "broker.id=1", "broker.id=2")))
  }

  @Test(expected = classOf[FatalExitError])
  def testGetKafkaConfigFromArgsNonArgsAtTheBegging(): Unit = {
    val propertiesFile = prepareDefaultConfig()
    KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile, "broker.id=1", "--override", "broker.id=2")))
  }

  @Test
  def testKafkaSslPasswords(): Unit = {
    val propertiesFile = prepareDefaultConfig()
    val config = KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile, "--override", "ssl.keystore.password=keystore_password",
                                                                                "--override", "ssl.key.password=key_password",
                                                                                "--override", "ssl.truststore.password=truststore_password")))
    assertEquals(Password.HIDDEN, config.getPassword(KafkaConfig.SslKeyPasswordProp).toString)
    assertEquals(Password.HIDDEN, config.getPassword(KafkaConfig.SslKeystorePasswordProp).toString)
    assertEquals(Password.HIDDEN, config.getPassword(KafkaConfig.SslTruststorePasswordProp).toString)

    assertEquals("key_password", config.getPassword(KafkaConfig.SslKeyPasswordProp).value)
    assertEquals("keystore_password", config.getPassword(KafkaConfig.SslKeystorePasswordProp).value)
    assertEquals("truststore_password", config.getPassword(KafkaConfig.SslTruststorePasswordProp).value)
  }

  @Test
  def testKafkaSslPasswordsWithSymbols(): Unit = {
    val password = "=!#-+!?*/\"\'^%$=\\.,@:;="
    val propertiesFile = prepareDefaultConfig()
    val config = KafkaConfig.fromProps(Kafka.getPropsFromArgs(Array(propertiesFile,
      "--override", "ssl.keystore.password=" + password,
      "--override", "ssl.key.password=" + password,
      "--override", "ssl.truststore.password=" + password)))
    assertEquals(Password.HIDDEN, config.getPassword(KafkaConfig.SslKeyPasswordProp).toString)
    assertEquals(Password.HIDDEN, config.getPassword(KafkaConfig.SslKeystorePasswordProp).toString)
    assertEquals(Password.HIDDEN, config.getPassword(KafkaConfig.SslTruststorePasswordProp).toString)

    assertEquals(password, config.getPassword(KafkaConfig.SslKeystorePasswordProp).value)
    assertEquals(password, config.getPassword(KafkaConfig.SslKeyPasswordProp).value)
    assertEquals(password, config.getPassword(KafkaConfig.SslTruststorePasswordProp).value)
  }

  def prepareDefaultConfig(): String = {
    prepareConfig(Array("broker.id=1", "zookeeper.connect=somewhere"))
  }

  def prepareConfig(lines : Array[String]): String = {
    val file = File.createTempFile("kafkatest", ".properties")
    file.deleteOnExit()

    val writer = Files.newOutputStream(file.toPath)
    try {
      lines.foreach { l =>
        writer.write(l.getBytes)
        writer.write("\n".getBytes)
      }
      file.getAbsolutePath
    } finally writer.close()
  }
}


text:
using System.Diagnostics;
using System.Windows;
using System.Windows.Data;
using System.Windows.Documents;
using POESKillTree.Utils.Converter;

namespace POESKillTree.Utils
{
    /// <summary>
    /// Contains attached properties usable on Xaml classes.
    /// </summary>
    public static class XamlHelper
    {
        public static readonly DependencyProperty NavigateExternallyProperty =
            DependencyProperty.RegisterAttached(
                "NavigateExternally", typeof(bool), typeof(XamlHelper),
                new FrameworkPropertyMetadata(false, NavigateExternallyPropertyChangedCallback));

        public static readonly DependencyProperty MainWindowRelativeMaxHeightProperty =
            DependencyProperty.RegisterAttached(
                "MainWindowRelativeMaxHeight", typeof(double), typeof(XamlHelper),
                new FrameworkPropertyMetadata(0.0, MainWindowRelativeMaxHeightPropertyChangedCallback));

        public static readonly DependencyProperty FocusOnLoadedProperty =
            DependencyProperty.RegisterAttached(
                "FocusOnLoaded", typeof(bool), typeof(XamlHelper),
                new PropertyMetadata(false, FocusOnLoadedPropertyChangedCallback));

        /// <summary>
        /// Gets whether the target <see cref="Hyperlink"/>'s RequestNavigation event should open the URI in the
        /// default web browser.
        /// </summary>
        [AttachedPropertyBrowsableForType(typeof(Hyperlink))]
        public static bool GetNavigateExternally(Hyperlink element)
        {
            return (bool) element.GetValue(NavigateExternallyProperty);
        }

        /// <summary>
        /// Sets whether the target <see cref="Hyperlink"/>'s RequestNavigation event should open the URI in the
        /// default web browser.
        /// </summary>
        public static void SetNavigateExternally(Hyperlink element, bool value)
        {
            element.SetValue(NavigateExternallyProperty, value);
        }

        private static void NavigateExternallyPropertyChangedCallback(DependencyObject dependencyObject,
            DependencyPropertyChangedEventArgs e)
        {
            var hyperlink = dependencyObject as Hyperlink;
            if (hyperlink == null)
                return;

            hyperlink.RequestNavigate += (sender, args) => Process.Start(args.Uri.ToString());
        }

        /// <summary>
        /// Gets the value that is subtracted from the main window's actual height which is then used
        /// as maximum height for the framework element. 0 or negative behaves as if this property
        /// was not set (no relative max height).
        /// </summary>
        [AttachedPropertyBrowsableForType(typeof(FrameworkElement))]
        public static double GetMainWindowRelativeMaxHeight(FrameworkElement element)
        {
            return (double) element.GetValue(MainWindowRelativeMaxHeightProperty);
        }

        /// <summary>
        /// Sets the value that is subtracted from the main window's actual height which is then used
        /// as maximum height for the framework element. 0 or negative behaves as if this property
        /// was not set (no relative max height).
        /// </summary>
        public static void SetMainWindowRelativeMaxHeight(FrameworkElement element, double value)
        {
            element.SetValue(MainWindowRelativeMaxHeightProperty, value);
        }

        private static void MainWindowRelativeMaxHeightPropertyChangedCallback(DependencyObject dependencyObject,
            DependencyPropertyChangedEventArgs e)
        {
            var element = dependencyObject as FrameworkElement;
            if (element == null)
                return;

            var value = (double) e.NewValue;
            if (value <= 0)
            {
                BindingOperations.ClearBinding(element, FrameworkElement.MaxHeightProperty);
                return;
            }

            var binding = new Binding("ActualHeight")
            {
                Source = Application.Current.MainWindow,
                Converter = new SubtractionConverter(),
                ConverterParameter = value
            };
            element.SetBinding(FrameworkElement.MaxHeightProperty, binding);
        }

        /// <summary>
        /// Gets whether the given <see cref="FrameworkElement"/> is focused once it is loaded.
        /// </summary>
        [AttachedPropertyBrowsableForType(typeof(FrameworkElement))]
        public static bool GetFocusOnLoaded(FrameworkElement element)
        {
            return (bool)element.GetValue(FocusOnLoadedProperty);
        }

        public static void SetFocusOnLoaded(FrameworkElement element, bool value)
        {
            element.SetValue(FocusOnLoadedProperty, value);
        }

        private static void FocusOnLoadedPropertyChangedCallback(DependencyObject dependencyObject,
            DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
        {
            var element = dependencyObject as FrameworkElement;
            if (element == null)
                return;

            if ((bool) dependencyPropertyChangedEventArgs.NewValue)
                element.Loaded += ElementOnLoaded;
            else
                element.Loaded -= ElementOnLoaded;
        }

        private static void ElementOnLoaded(object sender, RoutedEventArgs routedEventArgs)
        {
            (sender as UIElement)?.Focus();
        }
    }
}

redpajama_set_name: RedPajamaGithub


text:
from sc2reader.events.base import Event
from sc2reader.utils import Length
from sc2reader.log_utils import loggable

@loggable
class MessageEvent(Event):
    """
    Parent class for all message events.
    """

    def __init__(self, frame, pid):
        #: The user id (or player id for older replays) of the person that generated the event.
        self.pid = pid

        #: The frame of the game this event was applied
        self.frame = frame

        #: The second of the game (game time not real time) this event was applied
        self.second = frame >> 4

        #: Short cut string for event class name
        self.name = self.__class__.__name__

    def _str_prefix(self):
        player_name = self.player.name if getattr(self, "pid", 16) != 16 else "Global"
        return f"{Length(seconds=int(self.frame / 16))}\t{player_name:<15} "

    def __str__(self):
        return self._str_prefix() + self.name

@loggable
class ChatEvent(MessageEvent):
    """
    Records in-game chat events.
    """

    def __init__(self, frame, pid, target, text):
        super().__init__(frame, pid)
        #: The numerical target type. 0 = to all; 2 = to allies; 4 = to observers.
        self.target = target

        #: The text of the message.
        self.text = text

        #: Flag marked true of message was to all.
        self.to_all = self.target == 0

        #: Flag marked true of message was to allies.
        self.to_allies = self.target == 2

        #: Flag marked true of message was to observers.
        self.to_observers = self.target == 4

@loggable
class ProgressEvent(MessageEvent):
    """
    Sent during the load screen to update load process for other clients.
    """

    def __init__(self, frame, pid, progress):
        super().__init__(frame, pid)

        #: Marks the load progress for the player. Scaled 0-100.
        self.progress = progress

@loggable
class PingEvent(MessageEvent):
    """
    Records pings made by players in game.
    """

    def __init__(self, frame, pid, target, x, y):
        super().__init__(frame, pid)

        #: The numerical target type. 0 = to all; 2 = to allies; 4 = to observers.
        self.target = target

        #: Flag marked true of message was to all.
        self.to_all = self.target == 0

        #: Flag marked true of message was to allies.
        self.to_allies = self.target == 2

        #: Flag marked true of message was to observers.
        self.to_observers = self.target == 4

        #: The x coordinate of the target location
        self.x = x

        #: The y coordinate of the target location
        self.y = y

        #: The (x,y) coordinate of the target location
        self.location = (self.x, self.y)


text:
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using osu.Game.Users;

namespace osu.Game.Online.Chat
{
    public class Message : IComparable<Message>, IEquatable<Message>
    {
        [JsonProperty(@"message_id")]
        public readonly long? Id;

        [JsonProperty(@"channel_id")]
        public long ChannelId;

        [JsonProperty(@"is_action")]
        public bool IsAction;

        [JsonProperty(@"timestamp")]
        public DateTimeOffset Timestamp;

        [JsonProperty(@"content")]
        public string Content;

        [JsonProperty(@"sender")]
        public User Sender;

        [JsonConstructor]
        public Message()
        {
        }

        /// <summary>
        /// The text that is displayed in chat.
        /// </summary>
        public string DisplayContent { get; set; }

        /// <summary>
        /// The links found in this message.
        /// </summary>
        /// <remarks>The <see cref="Link"/>s' <see cref="Link.Index"/> and <see cref="Link.Length"/>s are according to <see cref="DisplayContent"/></remarks>
        public List<Link> Links;

        public Message(long? id)
        {
            Id = id;
        }

        public int CompareTo(Message other)
        {
            if (!Id.HasValue)
                return other.Id.HasValue ? 1 : Timestamp.CompareTo(other.Timestamp);
            if (!other.Id.HasValue)
                return -1;

            return Id.Value.CompareTo(other.Id.Value);
        }

        public virtual bool Equals(Message other) => Id.HasValue && Id == other?.Id;

        // ReSharper disable once ImpureMethodCallOnReadonlyValueField
        public override int GetHashCode() => Id.GetHashCode();

        public override string ToString() => $"[{ChannelId}] ({Id}) {Sender}: {Content}";
    }
}


text:
class Admin::JournalsPolicy < ApplicationPolicy
  def index?
    can_administer_any_journal?
  end

  def show?
    can_administer_any_journal?
  end

  def authorization?
    index?
  end

  def create?
    super_admin?
  end

  def upload_logo?
    can_administer_any_journal?
  end

  def upload_epub_cover?
    can_administer_any_journal?
  end

  def update?
    can_administer_any_journal?
  end
end


text:
namespace {

GURL GetURLForLayoutTest(const std::string& test_name,
                         base::FilePath* current_working_directory,
                         bool* enable_pixel_dumping,
                         std::string* expected_pixel_hash) {
  // A test name is formated like file:///path/to/test'--pixel-test'pixelhash
  std::string path_or_url = test_name;
  std::string pixel_switch;
  std::string pixel_hash;
  std::string::size_type separator_position = path_or_url.find('\'');
  if (separator_position != std::string::npos) {
    pixel_switch = path_or_url.substr(separator_position + 1);
    path_or_url.erase(separator_position);
  }
  separator_position = pixel_switch.find('\'');
  if (separator_position != std::string::npos) {
    pixel_hash = pixel_switch.substr(separator_position + 1);
    pixel_switch.erase(separator_position);
  }
  if (enable_pixel_dumping) {
    *enable_pixel_dumping =
        (pixel_switch == "--pixel-test" || pixel_switch == "-p");
  }
  if (expected_pixel_hash)
    *expected_pixel_hash = pixel_hash;

  GURL test_url;
#if defined(OS_ANDROID)
  if (content::GetTestUrlForAndroid(path_or_url, &test_url))
    return test_url;
#endif

  test_url = GURL(path_or_url);
  if (!(test_url.is_valid() && test_url.has_scheme())) {
    // We're outside of the message loop here, and this is a test.
    base::ThreadRestrictions::ScopedAllowIO allow_io;
#if defined(OS_WIN)
    base::FilePath::StringType wide_path_or_url =
        base::SysNativeMBToWide(path_or_url);
    base::FilePath local_file(wide_path_or_url);
#else
    base::FilePath local_file(path_or_url);
#endif
    if (!base::PathExists(local_file)) {
      local_file = content::GetWebKitRootDirFilePath()
                       .Append(FILE_PATH_LITERAL("LayoutTests"))
                       .Append(local_file);
    }
    test_url = net::FilePathToFileURL(base::MakeAbsoluteFilePath(local_file));
  }
  base::FilePath local_path;
  if (current_working_directory) {
    // We're outside of the message loop here, and this is a test.
    base::ThreadRestrictions::ScopedAllowIO allow_io;
    if (net::FileURLToFilePath(test_url, &local_path))
      *current_working_directory = local_path.DirName();
    else
      base::GetCurrentDirectory(current_working_directory);
  }
  return test_url;
}

bool GetNextTest(const base::CommandLine::StringVector& args,
                 size_t* position,
                 std::string* test) {
  if (*position >= args.size())
    return false;
  if (args[*position] == FILE_PATH_LITERAL("-"))
    return !!std::getline(std::cin, *test, '\n');
#if defined(OS_WIN)
  *test = base::WideToUTF8(args[(*position)++]);
#else
  *test = args[(*position)++];
#endif
  return true;
}

bool RunOneTest(const std::string& test_string,
                bool* ran_at_least_once,
                const scoped_ptr<content::BrowserMainRunner>& main_runner) {
  if (test_string.empty())
    return true;
  if (test_string == "QUIT")
    return false;

  bool enable_pixel_dumps;
  std::string pixel_hash;
  base::FilePath cwd;
  GURL test_url =
      GetURLForLayoutTest(test_string, &cwd, &enable_pixel_dumps, &pixel_hash);
  if (!content::BlinkTestController::Get()->PrepareForLayoutTest(
          test_url, cwd, enable_pixel_dumps, pixel_hash)) {
    return false;
  }

  *ran_at_least_once = true;
#if defined(OS_ANDROID)
  // The message loop on Android is provided by the system, and does not
  // offer a blocking Run() method. For layout tests, use a nested loop
  // together with a base::RunLoop so it can block until a QuitClosure.
  base::RunLoop run_loop;
  run_loop.Run();
#else
  main_runner->Run();
#endif

  if (!content::BlinkTestController::Get()->ResetAfterLayoutTest())
    return false;

#if defined(OS_ANDROID)
  // There will be left-over tasks in the queue for Android because the
  // main window is being destroyed. Run them before starting the next test.
  base::MessageLoop::current()->RunUntilIdle();
#endif
  return true;
}

int RunTests(const scoped_ptr<content::BrowserMainRunner>& main_runner) {
  content::BlinkTestController test_controller;
  {
    // We're outside of the message loop here, and this is a test.
    base::ThreadRestrictions::ScopedAllowIO allow_io;
    base::FilePath temp_path;
    base::GetTempDir(&temp_path);
    test_controller.SetTempPath(temp_path);
  }
  std::string test_string;
  base::CommandLine::StringVector args =
      base::CommandLine::ForCurrentProcess()->GetArgs();
  size_t command_line_position = 0;
  bool ran_at_least_once = false;

  std::cout << "#READY\n";
  std::cout.flush();

  while (GetNextTest(args, &command_line_position, &test_string)) {
    if (!RunOneTest(test_string, &ran_at_least_once, main_runner))
      break;
  }
  if (!ran_at_least_once) {
    base::MessageLoop::current()->PostTask(FROM_HERE,
                                           base::MessageLoop::QuitClosure());
    main_runner->Run();
  }

#if defined(OS_ANDROID)
  // We need to execute 'main_runner->Shutdown()' before the test_controller
  // destructs when running on Android, and after it destructs when running
  // anywhere else.
  main_runner->Shutdown();
#endif

  return 0;
}

}  // namespace

// Main routine for running as the Browser process.
int LayoutTestBrowserMain(
    const content::MainFunctionParams& parameters,
    const scoped_ptr<content::BrowserMainRunner>& main_runner) {
  base::ScopedTempDir browser_context_path_for_layout_tests;

  CHECK(browser_context_path_for_layout_tests.CreateUniqueTempDir());
  CHECK(!browser_context_path_for_layout_tests.path().MaybeAsASCII().empty());
  base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
      switches::kContentShellDataPath,
      browser_context_path_for_layout_tests.path().MaybeAsASCII());

#if defined(OS_ANDROID)
  content::EnsureInitializeForAndroidLayoutTests();
#endif

  int exit_code = main_runner->Initialize(parameters);
  DCHECK_LT(exit_code, 0)
      << "BrowserMainRunner::Initialize failed in LayoutTestBrowserMain";

  if (exit_code >= 0)
    return exit_code;

  if (base::CommandLine::ForCurrentProcess()->HasSwitch(
          switches::kCheckLayoutTestSysDeps)) {
    base::MessageLoop::current()->PostTask(FROM_HERE,
                                           base::MessageLoop::QuitClosure());
    main_runner->Run();
    content::Shell::CloseAllWindows();
    main_runner->Shutdown();
    return 0;
  }

  exit_code = RunTests(main_runner);

#if !defined(OS_ANDROID)
  main_runner->Shutdown();
#endif

  return exit_code;
}


text:
import {Injectable} from '@angular/core';
import {Resource, ResourceParams, ResourceAction, ResourceMethod} from 'ng2-resource-rest';
import { Http, Request, RequestMethod } from '@angular/http';
import { Injector } from '@angular/core';
import {Container} from "./ContainerResource";
import {environment} from "../../environments/environment";
import {Host} from "./HostResource";

export interface Analysis {
    totalHostCount: number,
    totalContainerCount: number,
    totalDependencies: number,
    totalRedundancies: number,
    redundancyIssues:RedundancyIssue[],
    failReachResults:ContainerFailImpact[]
}

export interface RedundancyIssue {
    type:string,
    message:string,
    connection: string,
    from:Container,
    to:Container
}

export interface ContainerFailImpact {
    container:Container,
    impactedContainers:Container[],
    impactPercentage:number
}

@Injectable()
@ResourceParams({
    url: environment.base_api_url + '/analysis'
})
export class AnalysisResource extends Resource {
    constructor(http: Http, injector: Injector){
        super(http, injector)
    }

    @ResourceAction()
    get: ResourceMethod<any, Analysis>;
}


text:
import java.math.BigInteger;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Burn {
    static Logger logger = LoggerFactory.getLogger(Burn.class);

	public static void parse(Integer txIndex) {
		Database db = Database.getInstance();
		ResultSet rs = db.executeQuery("select * from transactions where tx_index="+txIndex.toString());
		try {
			if (rs.next()) {
				String source = rs.getString("source");
				String destination = rs.getString("destination");
				BigInteger btcAmount = BigInteger.valueOf(rs.getLong("btc_amount"));
				BigInteger fee = BigInteger.valueOf(rs.getLong("fee"));
				Integer blockIndex = rs.getInt("block_index");
				String txHash = rs.getString("tx_hash");

				ResultSet rsCheck = db.executeQuery("select * from burns where tx_index='"+txIndex.toString()+"'");
				if (rsCheck.next()) return;

				ResultSet rsBurns = db.executeQuery("select sum(earned) as earned from burns where validity='valid';");
				BigInteger totalBurns = BigInteger.ZERO;
				BigInteger maxBurns = BigInteger.ZERO;
				if (rsBurns.next()) {
					totalBurns = BigInteger.valueOf(rsBurns.getInt("earned"));
				}
				maxBurns = BigInteger.valueOf(Config.maxBurn).multiply(BigInteger.valueOf(Config.unit));
				Integer totalTime = Config.endBlock - Config.startBlock;
				Integer partialTime = Config.endBlock - blockIndex;
				Double multiplier = Config.multiplier.doubleValue() + (partialTime.doubleValue()/totalTime.doubleValue()) * (Config.multiplierInitial.doubleValue() - Config.multiplier.doubleValue());
				Double earnedUnrounded = btcAmount.doubleValue() * multiplier;
				BigInteger earned = BigInteger.valueOf(earnedUnrounded.longValue());
				if (!source.equals("") && blockIndex>=Config.startBlock && blockIndex<=Config.endBlock && totalBurns.add(earned).compareTo(maxBurns)<0) {
					db.executeUpdate("insert into burns(tx_index, tx_hash, block_index, source, burned, earned, validity) values('"+txIndex.toString()+"','"+txHash+"','"+blockIndex.toString()+"','"+source+"','"+btcAmount.toString()+"','"+earned+"','valid')");
					Util.credit(source, "CHA", earned, "BTC burned", txHash, blockIndex);
				}
			}
		} catch (SQLException e) {
		}
	}
}


text:
namespace Trizbort
{
  sealed partial class Canvas
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        #region Component Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
      this.components = new System.ComponentModel.Container();
      this.m_vScrollBar = new System.Windows.Forms.VScrollBar();
      this.m_hScrollBar = new System.Windows.Forms.HScrollBar();
      this.m_cornerPanel = new System.Windows.Forms.Panel();
      this.ctxCanvasMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
      this.addRoomToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.m_lineStylesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.m_plainLinesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripMenuItem3 = new System.Windows.Forms.ToolStripSeparator();
      this.m_toggleDottedLinesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.m_toggleDirectionalLinesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
      this.m_upLinesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.m_downLinesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
      this.m_inLinesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.m_outLinesMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.m_reverseLineMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
      this.renameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.darkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripMenuItem1 = new System.Windows.Forms.ToolStripSeparator();
      this.regionToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripMenuItem2 = new System.Windows.Forms.ToolStripSeparator();
      this.roomShapeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.handDrawnToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.ellipseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.roundedEdgesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.joinRoomsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.swapObjectsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.objectsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.namesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.formatsFillsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.regionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
      this.roomPropertiesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
      this.mapSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.applicationSettingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
      this.lblZoom = new System.Windows.Forms.Label();
      this.roomTooltip = new DevComponents.DotNetBar.SuperTooltip();
      this.m_minimap = new Trizbort.Minimap();
      this.ctxCanvasMenu.SuspendLayout();
      this.SuspendLayout();
      //
      // m_vScrollBar
      //
      this.m_vScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
            | System.Windows.Forms.AnchorStyles.Right)));
      this.m_vScrollBar.Location = new System.Drawing.Point(403, 128);
      this.m_vScrollBar.Name = "m_vScrollBar";
      this.m_vScrollBar.Size = new System.Drawing.Size(16, 191);
      this.m_vScrollBar.TabIndex = 0;
      this.m_vScrollBar.Scroll += new System.Windows.Forms.ScrollEventHandler(this.ScrollBar_Scroll);
      //
      // m_hScrollBar
      //
      this.m_hScrollBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
            | System.Windows.Forms.AnchorStyles.Right)));
      this.m_hScrollBar.Location = new System.Drawing.Point(0, 319);
      this.m_hScrollBar.Name = "m_hScrollBar";
      this.m_hScrollBar.Size = new System.Drawing.Size(403, 16);
      this.m_hScrollBar.TabIndex = 1;
      this.m_hScrollBar.Scroll += new System.Windows.Forms.ScrollEventHandler(this.ScrollBar_Scroll);
      //
      // m_cornerPanel
      //
      this.m_cornerPanel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
      this.m_cornerPanel.Location = new System.Drawing.Point(403, 319);
      this.m_cornerPanel.Name = "m_cornerPanel";
      this.m_cornerPanel.Size = new System.Drawing.Size(16, 16);
      this.m_cornerPanel.TabIndex = 2;
      //
      // ctxCanvasMenu
      //
      this.ctxCanvasMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.addRoomToolStripMenuItem,
            this.toolStripSeparator3,
            this.m_lineStylesMenuItem,
            this.m_reverseLineMenuItem,
            this.renameToolStripMenuItem,
            this.darkToolStripMenuItem,
            this.toolStripMenuItem1,
            this.regionToolStripMenuItem,
            this.toolStripMenuItem2,
            this.roomShapeToolStripMenuItem,
            this.joinRoomsToolStripMenuItem,
            this.swapObjectsToolStripMenuItem,
            this.toolStripSeparator1,
            this.roomPropertiesToolStripMenuItem,
            this.toolStripSeparator2,
            this.mapSettingsToolStripMenuItem,
            this.applicationSettingsToolStripMenuItem});
      this.ctxCanvasMenu.Name = "ctxCanvasMenu";
      this.ctxCanvasMenu.Size = new System.Drawing.Size(190, 320);
      this.ctxCanvasMenu.Opening += new System.ComponentModel.CancelEventHandler(this.ctxCanvasMenu_Opening);
      //
      // addRoomToolStripMenuItem
      //
      this.addRoomToolStripMenuItem.Name = "addRoomToolStripMenuItem";
      this.addRoomToolStripMenuItem.ShortcutKeyDisplayString = "R";
      this.addRoomToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.addRoomToolStripMenuItem.Text = "Add &Room";
      this.addRoomToolStripMenuItem.Click += new System.EventHandler(this.addRoomToolStripMenuItem_Click);
      //
      // m_lineStylesMenuItem
      //
      this.m_lineStylesMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.m_plainLinesMenuItem,
            this.toolStripMenuItem3,
            this.m_toggleDottedLinesMenuItem,
            this.m_toggleDirectionalLinesMenuItem,
            this.toolStripSeparator4,
            this.m_upLinesMenuItem,
            this.m_downLinesMenuItem,
            this.toolStripSeparator5,
            this.m_inLinesMenuItem,
            this.m_outLinesMenuItem});
      this.m_lineStylesMenuItem.Name = "m_lineStylesMenuItem";
      this.m_lineStylesMenuItem.ShortcutKeyDisplayString = "";
      this.m_lineStylesMenuItem.Size = new System.Drawing.Size(189, 22);
      this.m_lineStylesMenuItem.Text = "&Line Styles";
      //
      // m_plainLinesMenuItem
      //
      this.m_plainLinesMenuItem.Name = "m_plainLinesMenuItem";
      this.m_plainLinesMenuItem.ShortcutKeyDisplayString = "P";
      this.m_plainLinesMenuItem.Size = new System.Drawing.Size(172, 22);
      this.m_plainLinesMenuItem.Text = "Plain";
      this.m_plainLinesMenuItem.Click += new System.EventHandler(this.m_plainLinesMenuItem_Click);
      //
      // toolStripMenuItem3
      //
      this.toolStripMenuItem3.Name = "toolStripMenuItem3";
      this.toolStripMenuItem3.Size = new System.Drawing.Size(169, 6);
      //
      // m_toggleDottedLinesMenuItem
      //
      this.m_toggleDottedLinesMenuItem.Name = "m_toggleDottedLinesMenuItem";
      this.m_toggleDottedLinesMenuItem.ShortcutKeyDisplayString = "T";
      this.m_toggleDottedLinesMenuItem.Size = new System.Drawing.Size(172, 22);
      this.m_toggleDottedLinesMenuItem.Text = "Dotted";
      this.m_toggleDottedLinesMenuItem.Click += new System.EventHandler(this.m_toggleDottedLinesMenuItem_Click);
      //
      // m_toggleDirectionalLinesMenuItem
      //
      this.m_toggleDirectionalLinesMenuItem.Name = "m_toggleDirectionalLinesMenuItem";
      this.m_toggleDirectionalLinesMenuItem.ShortcutKeyDisplayString = "A";
      this.m_toggleDirectionalLinesMenuItem.Size = new System.Drawing.Size(172, 22);
      this.m_toggleDirectionalLinesMenuItem.Text = "One Way Arrow";
      this.m_toggleDirectionalLinesMenuItem.Click += new System.EventHandler(this.m_toggleDirectionalLinesMenuItem_Click);
      //
      // toolStripSeparator4
      //
      this.toolStripSeparator4.Name = "toolStripSeparator4";
      this.toolStripSeparator4.Size = new System.Drawing.Size(169, 6);
      //
      // m_upLinesMenuItem
      //
      this.m_upLinesMenuItem.Name = "m_upLinesMenuItem";
      this.m_upLinesMenuItem.ShortcutKeyDisplayString = "U";
      this.m_upLinesMenuItem.Size = new System.Drawing.Size(172, 22);
      this.m_upLinesMenuItem.Text = "Up";
      this.m_upLinesMenuItem.Click += new System.EventHandler(this.m_upLinesMenuItem_Click);
      //
      // m_downLinesMenuItem
      //
      this.m_downLinesMenuItem.Name = "m_downLinesMenuItem";
      this.m_downLinesMenuItem.ShortcutKeyDisplayString = "D";
      this.m_downLinesMenuItem.Size = new System.Drawing.Size(172, 22);
      this.m_downLinesMenuItem.Text = "Down";
      this.m_downLinesMenuItem.Click += new System.EventHandler(this.m_downLinesMenuItem_Click);
      //
      // toolStripSeparator5
      //
      this.toolStripSeparator5.Name = "toolStripSeparator5";
      this.toolStripSeparator5.Size = new System.Drawing.Size(169, 6);
      //
      // m_inLinesMenuItem
      //
      this.m_inLinesMenuItem.Name = "m_inLinesMenuItem";
      this.m_inLinesMenuItem.ShortcutKeyDisplayString = "I";
      this.m_inLinesMenuItem.Size = new System.Drawing.Size(172, 22);
      this.m_inLinesMenuItem.Text = "In";
      this.m_inLinesMenuItem.Click += new System.EventHandler(this.m_inLinesMenuItem_Click);
      //
      // m_outLinesMenuItem
      //
      this.m_outLinesMenuItem.Name = "m_outLinesMenuItem";
      this.m_outLinesMenuItem.ShortcutKeyDisplayString = "O";
      this.m_outLinesMenuItem.Size = new System.Drawing.Size(172, 22);
      this.m_outLinesMenuItem.Text = "Out";
      this.m_outLinesMenuItem.Click += new System.EventHandler(this.m_outLinesMenuItem_Click);
      //
      // m_reverseLineMenuItem
      //
      this.m_reverseLineMenuItem.Name = "m_reverseLineMenuItem";
      this.m_reverseLineMenuItem.ShortcutKeyDisplayString = "V";
      this.m_reverseLineMenuItem.Size = new System.Drawing.Size(189, 22);
      this.m_reverseLineMenuItem.Text = "Reverse Line";
      this.m_reverseLineMenuItem.Click += new System.EventHandler(this.m_reverseLineMenuItem_Click);
      //
      // toolStripSeparator3
      //
      this.toolStripSeparator3.Name = "toolStripSeparator3";
      this.toolStripSeparator3.Size = new System.Drawing.Size(186, 6);
      //
      // renameToolStripMenuItem
      //
      this.renameToolStripMenuItem.Name = "renameToolStripMenuItem";
      this.renameToolStripMenuItem.ShortcutKeyDisplayString = "F2";
      this.renameToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.renameToolStripMenuItem.Text = "Rename";
      this.renameToolStripMenuItem.Visible = false;
      this.renameToolStripMenuItem.Click += new System.EventHandler(this.renameToolStripMenuItem_Click);
      //
      // darkToolStripMenuItem
      //
      this.darkToolStripMenuItem.Name = "darkToolStripMenuItem";
      this.darkToolStripMenuItem.ShortcutKeyDisplayString = "K";
      this.darkToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.darkToolStripMenuItem.Text = "Toggle &Darkness";
      this.darkToolStripMenuItem.Visible = false;
      this.darkToolStripMenuItem.Click += new System.EventHandler(this.darkToolStripMenuItem_Click_1);
      //
      // toolStripMenuItem1
      //
      this.toolStripMenuItem1.Name = "toolStripMenuItem1";
      this.toolStripMenuItem1.Size = new System.Drawing.Size(186, 6);
      this.toolStripMenuItem1.Visible = false;
      //
      // regionToolStripMenuItem
      //
      this.regionToolStripMenuItem.Name = "regionToolStripMenuItem";
      this.regionToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.regionToolStripMenuItem.Text = "&Set Region";
      this.regionToolStripMenuItem.Visible = false;
      //
      // toolStripMenuItem2
      //
      this.toolStripMenuItem2.Name = "toolStripMenuItem2";
      this.toolStripMenuItem2.Size = new System.Drawing.Size(186, 6);
      this.toolStripMenuItem2.Visible = false;
      //
      // roomShapeToolStripMenuItem
      //
      this.roomShapeToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.handDrawnToolStripMenuItem,
            this.ellipseToolStripMenuItem,
            this.roundedEdgesToolStripMenuItem});
      this.roomShapeToolStripMenuItem.Name = "roomShapeToolStripMenuItem";
      this.roomShapeToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.roomShapeToolStripMenuItem.Text = "Room Shape";
      this.roomShapeToolStripMenuItem.Visible = false;
      //
      // handDrawnToolStripMenuItem
      //
      this.handDrawnToolStripMenuItem.Name = "handDrawnToolStripMenuItem";
      this.handDrawnToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+H";
      this.handDrawnToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
      this.handDrawnToolStripMenuItem.Text = "Hand-Drawn";
      this.handDrawnToolStripMenuItem.Click += new System.EventHandler(this.handDrawnToolStripMenuItem_Click);
      //
      // ellipseToolStripMenuItem
      //
      this.ellipseToolStripMenuItem.Name = "ellipseToolStripMenuItem";
      this.ellipseToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+E";
      this.ellipseToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
      this.ellipseToolStripMenuItem.Text = "Ellipse";
      this.ellipseToolStripMenuItem.Click += new System.EventHandler(this.ellipseToolStripMenuItem_Click);
      //
      // roundedEdgesToolStripMenuItem
      //
      this.roundedEdgesToolStripMenuItem.Name = "roundedEdgesToolStripMenuItem";
      this.roundedEdgesToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+R";
      this.roundedEdgesToolStripMenuItem.Size = new System.Drawing.Size(197, 22);
      this.roundedEdgesToolStripMenuItem.Text = "Rounded Edges";
      this.roundedEdgesToolStripMenuItem.Click += new System.EventHandler(this.roundedEdgesToolStripMenuItem_Click);
      //
      // joinRoomsToolStripMenuItem
      //
      this.joinRoomsToolStripMenuItem.Name = "joinRoomsToolStripMenuItem";
      this.joinRoomsToolStripMenuItem.ShortcutKeyDisplayString = "J";
      this.joinRoomsToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.joinRoomsToolStripMenuItem.Text = "&Join Rooms";
      this.joinRoomsToolStripMenuItem.Visible = false;
      this.joinRoomsToolStripMenuItem.Click += new System.EventHandler(this.joinRoomsToolStripMenuItem_Click);
      //
      // swapObjectsToolStripMenuItem
      //
      this.swapObjectsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.objectsToolStripMenuItem,
            this.namesToolStripMenuItem,
            this.formatsFillsToolStripMenuItem,
            this.regionsToolStripMenuItem});
      this.swapObjectsToolStripMenuItem.Name = "swapObjectsToolStripMenuItem";
      this.swapObjectsToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.swapObjectsToolStripMenuItem.Text = "S&wap";
      this.swapObjectsToolStripMenuItem.Visible = false;
      //
      // objectsToolStripMenuItem
      //
      this.objectsToolStripMenuItem.Name = "objectsToolStripMenuItem";
      this.objectsToolStripMenuItem.ShortcutKeyDisplayString = "W";
      this.objectsToolStripMenuItem.Size = new System.Drawing.Size(198, 22);
      this.objectsToolStripMenuItem.Text = "Objects";
      this.objectsToolStripMenuItem.Click += new System.EventHandler(this.objectsToolStripMenuItem_Click);
      //
      // namesToolStripMenuItem
      //
      this.namesToolStripMenuItem.Name = "namesToolStripMenuItem";
      this.namesToolStripMenuItem.ShortcutKeyDisplayString = "Ctrl+W";
      this.namesToolStripMenuItem.Size = new System.Drawing.Size(198, 22);
      this.namesToolStripMenuItem.Text = "Names";
      this.namesToolStripMenuItem.Click += new System.EventHandler(this.namesToolStripMenuItem_Click);
      //
      // formatsFillsToolStripMenuItem
      //
      this.formatsFillsToolStripMenuItem.Name = "formatsFillsToolStripMenuItem";
      this.formatsFillsToolStripMenuItem.ShortcutKeyDisplayString = "Shift+W";
      this.formatsFillsToolStripMenuItem.Size = new System.Drawing.Size(198, 22);
      this.formatsFillsToolStripMenuItem.Text = "Formats / Fills";
      this.formatsFillsToolStripMenuItem.Click += new System.EventHandler(this.formatsFillsToolStripMenuItem_Click);
      //
      // regionsToolStripMenuItem
      //
      this.regionsToolStripMenuItem.Name = "regionsToolStripMenuItem";
      this.regionsToolStripMenuItem.ShortcutKeyDisplayString = "Alt+W";
      this.regionsToolStripMenuItem.Size = new System.Drawing.Size(198, 22);
      this.regionsToolStripMenuItem.Text = "Regions";
      this.regionsToolStripMenuItem.Click += new System.EventHandler(this.regionsToolStripMenuItem_Click);
      //
      // toolStripSeparator1
      //
      this.toolStripSeparator1.Name = "toolStripSeparator1";
      this.toolStripSeparator1.Size = new System.Drawing.Size(186, 6);
      this.toolStripSeparator1.Visible = false;
      //
      // roomPropertiesToolStripMenuItem
      //
      this.roomPropertiesToolStripMenuItem.Name = "roomPropertiesToolStripMenuItem";
      this.roomPropertiesToolStripMenuItem.ShortcutKeyDisplayString = "Enter";
      this.roomPropertiesToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.roomPropertiesToolStripMenuItem.Text = "&Properties...";
      this.roomPropertiesToolStripMenuItem.Visible = false;
      this.roomPropertiesToolStripMenuItem.Click += new System.EventHandler(this.roomPropertiesToolStripMenuItem_Click);
      //
      // toolStripSeparator2
      //
      this.toolStripSeparator2.Name = "toolStripSeparator2";
      this.toolStripSeparator2.Size = new System.Drawing.Size(186, 6);
      this.toolStripSeparator2.Visible = false;
      //
      // mapSettingsToolStripMenuItem
      //
      this.mapSettingsToolStripMenuItem.Name = "mapSettingsToolStripMenuItem";
      this.mapSettingsToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.mapSettingsToolStripMenuItem.Text = "&Map Settings...";
      this.mapSettingsToolStripMenuItem.Click += new System.EventHandler(this.mapSettingsToolStripMenuItem_Click);
      //
      // applicationSettingsToolStripMenuItem
      //
      this.applicationSettingsToolStripMenuItem.Name = "applicationSettingsToolStripMenuItem";
      this.applicationSettingsToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
      this.applicationSettingsToolStripMenuItem.Text = "&Application Settings...";
      this.applicationSettingsToolStripMenuItem.Click += new System.EventHandler(this.applicationSettingsToolStripMenuItem_Click);
      //
      // lblZoom
      //
      this.lblZoom.AutoSize = true;
      this.lblZoom.BackColor = System.Drawing.Color.Transparent;
      this.lblZoom.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
      this.lblZoom.ForeColor = System.Drawing.SystemColors.GrayText;
      this.lblZoom.Location = new System.Drawing.Point(4, 4);
      this.lblZoom.Name = "lblZoom";
      this.lblZoom.Size = new System.Drawing.Size(50, 20);
      this.lblZoom.TabIndex = 7;
      this.lblZoom.Text = "Zoom";
      //
      // roomTooltip
      //
      this.roomTooltip.CheckTooltipPosition = false;
      this.roomTooltip.LicenseKey = "F962CEC7-CD8F-4911-A9E9-CAB39962FC1F";
      this.roomTooltip.PositionBelowControl = false;
      //
      // m_minimap
      //
      this.m_minimap.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
      this.m_minimap.BackColor = System.Drawing.Color.White;
      this.m_minimap.Canvas = null;
      this.m_minimap.Location = new System.Drawing.Point(222, 0);
      this.m_minimap.Name = "m_minimap";
      this.m_minimap.Size = new System.Drawing.Size(197, 128);
      this.m_minimap.TabIndex = 6;
      this.m_minimap.TabStop = false;
      //
      // Canvas
      //
      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
      this.ContextMenuStrip = this.ctxCanvasMenu;
      this.Controls.Add(this.lblZoom);
      this.Controls.Add(this.m_minimap);
      this.Controls.Add(this.m_cornerPanel);
      this.Controls.Add(this.m_hScrollBar);
      this.Controls.Add(this.m_vScrollBar);
      this.Name = "Canvas";
      this.Size = new System.Drawing.Size(419, 335);
      this.ctxCanvasMenu.ResumeLayout(false);
      this.ResumeLayout(false);
      this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.VScrollBar m_vScrollBar;
        private System.Windows.Forms.HScrollBar m_hScrollBar;
        private System.Windows.Forms.Panel m_cornerPanel;
        private Minimap m_minimap;
        private System.Windows.Forms.ContextMenuStrip ctxCanvasMenu;
        private System.Windows.Forms.ToolStripMenuItem regionToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem darkToolStripMenuItem;
        private System.Windows.Forms.Label lblZoom;
        private DevComponents.DotNetBar.SuperTooltip roomTooltip;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripMenuItem roomPropertiesToolStripMenuItem;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
        private System.Windows.Forms.ToolStripMenuItem mapSettingsToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem applicationSettingsToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem joinRoomsToolStripMenuItem;
        private System.Windows.Forms.ToolStripMenuItem swapObjectsToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem objectsToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem namesToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem formatsFillsToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem regionsToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem roomShapeToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem renameToolStripMenuItem;
    private System.Windows.Forms.ToolStripSeparator toolStripMenuItem1;
    private System.Windows.Forms.ToolStripSeparator toolStripMenuItem2;
    private System.Windows.Forms.ToolStripMenuItem handDrawnToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem ellipseToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem roundedEdgesToolStripMenuItem;
    private System.Windows.Forms.ToolStripMenuItem addRoomToolStripMenuItem;
    private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
    private System.Windows.Forms.ToolStripMenuItem m_lineStylesMenuItem;
    private System.Windows.Forms.ToolStripMenuItem m_plainLinesMenuItem;
    private System.Windows.Forms.ToolStripSeparator toolStripMenuItem3;
    private System.Windows.Forms.ToolStripMenuItem m_toggleDottedLinesMenuItem;
    private System.Windows.Forms.ToolStripMenuItem m_toggleDirectionalLinesMenuItem;
    private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
    private System.Windows.Forms.ToolStripMenuItem m_upLinesMenuItem;
    private System.Windows.Forms.ToolStripMenuItem m_downLinesMenuItem;
    private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
    private System.Windows.Forms.ToolStripMenuItem m_inLinesMenuItem;
    private System.Windows.Forms.ToolStripMenuItem m_outLinesMenuItem;
    private System.Windows.Forms.ToolStripMenuItem m_reverseLineMenuItem;
  }
}


text:
{% extends "base.html" %}
{% load crispy_forms_tags %}

{% block content %}

<form  class="form-vertical" method="post"> {% csrf_token %}

{{ form.as_p }}

<input type="submit" class="btn btn-info" name="submit" value="Add New Contact">
</form>

{% endblock %}