コード例 #1
0
        public WindowMain()
        {
            //string[] dll_path = new string[] { @"bin\EntityFramework.dll"
            //									,@"bin\EntityFramework.SqlServer.dll"
            //									,@"bin\MahApps.Metro.dll"
            //									,@"bin\MahApps.Metro.IconPacks.dll"
            //									,@"bin\Newtonsoft.Json.dll"
            //									,@"bin\Renci.SshNet.dll"
            //									,@"bin\System.Data.SQLite.dll"
            //									,@"bin\System.Data.SQLite.EF6.dll"
            //									,@"bin\System.Data.SQLite.Linq.dll"
            //									,@"bin\System.Windows.Interactivity.dll"};

            current = this;
            InitializeComponent();
            this.Closed += test4_Closed;

            this.PreviewKeyDown    += WindowMain_PreviewKeyDown;
            this.PreviewMouseDown  += WindowMain_PreviewMouseDown;
            this.PreviewMouseWheel += WindowMain_PreviewMouseWheel;
            DispatcherTimer DisconnectTimeout = new DispatcherTimer();

            DisconnectTimeout.Interval = new TimeSpan(0, 0, 0, 5);
            DisconnectTimeout.Tick    += DisconnectTimeout_Tick;
            DisconnectTimeout.Start();
        }
コード例 #2
0
ファイル: WindowMain.xaml.cs プロジェクト: imjihun/CofileUI
        public WindowMain()
        {
            //string[] dll_path = new string[] { @"bin\EntityFramework.dll"
            //									,@"bin\EntityFramework.SqlServer.dll"
            //									,@"bin\MahApps.Metro.dll"
            //									,@"bin\MahApps.Metro.IconPacks.dll"
            //									,@"bin\Newtonsoft.Json.dll"
            //									,@"bin\Renci.SshNet.dll"
            //									,@"bin\System.Data.SQLite.dll"
            //									,@"bin\System.Data.SQLite.EF6.dll"
            //									,@"bin\System.Data.SQLite.Linq.dll"
            //									,@"bin\System.Windows.Interactivity.dll"};

            current = this;
            InitializeComponent();
            this.Closed += test4_Closed;

            this.PreviewKeyDown    += WindowMain_PreviewKeyDown;
            this.PreviewMouseDown  += WindowMain_PreviewMouseDown;
            this.PreviewMouseWheel += WindowMain_PreviewMouseWheel;
        }