コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: mortezasoft/Yams
        private void OnVersionAddDeployment(object sender, RoutedEventArgs e)
        {
            StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
            string appId   = GetSelectedAppId();
            string version = GetSelectedVersion();
            AddNewDeploymentDialog dialog = new AddNewDeploymentDialog(appId, version);

            if (dialog.ShowDialog() == true)
            {
                AppIdentity appIdentity = new AppIdentity(appId, new Version(version));
                _deploymentConfig = _deploymentConfig.AddApplication(appIdentity, dialog.DeploymentId);
                SaveLocalDeploymentConfig(connectionInfo);
            }
        }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: Microsoft/Yams
 private void OnVersionAddDeployment(object sender, RoutedEventArgs e)
 {
     StorageAccountConnectionInfo connectionInfo = GetCurrentConnection();
     string appId = GetSelectedAppId();
     string version = GetSelectedVersion();
     AddNewDeploymentDialog dialog = new AddNewDeploymentDialog(appId, version);
     if (dialog.ShowDialog() == true)
     {
         AppIdentity appIdentity = new AppIdentity(appId, SemVersion.Parse(version));
         _deploymentConfig = _deploymentConfig.AddApplication(appIdentity, dialog.DeploymentId);
         SaveLocalDeploymentConfig(connectionInfo);
     }
 }