Пример #1
0
        public CustomCommands()
        {
            InitializeComponent();

            _repo = new CommandRepository(Global.ConnectionString);

            //Added to support default instance behavour in C#
            if (defaultInstance == null)
                defaultInstance = this;
        }
Пример #2
0
 static void defaultInstance_FormClosed(object sender, FormClosedEventArgs e)
 {
     defaultInstance = null;
 }