예제 #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            TaskTrayIcon.Icon = Properties.Resources.Icon; // タスクトレイのアイコンを設定

            webServiceHost = new WebServiceHost(typeof(IWcfWebServer), new Uri(webBaseAddress));
            webServiceHost.AddServiceEndpoint(typeof(IWcfWebInterface), new WebHttpBinding(), "");
            webServiceHost.Open(); // WCFサービスの開始

            var settingWindow = new SettingWindow();

            settingWindow.ShowDialog(); // 設定画面を開く
        }
예제 #2
0
        private void OpenSettingWindow(object sender, EventArgs e)
        {
            var settingWindow = new SettingWindow();

            settingWindow.ShowDialog(); // 設定画面を開く
        }